new scripting functionality

* dofiles functions to run all scripts inside a directory
* new style option ! that evaluates its value from a lua code
This commit is contained in:
Eduardo Bart
2012-04-26 12:11:03 -03:00
parent 243bd3a930
commit fae2cc6481
5 changed files with 44 additions and 28 deletions

View File

@@ -8,14 +8,8 @@ Module
reloadable: false
@onLoad: |
dofile 'ext/table'
dofile 'ext/string'
dofile 'ext/os'
dofile 'math/point'
dofile 'math/size'
dofile 'math/color'
dofile 'math/rect'
dofiles 'ext'
dofiles 'math'
dofile 'const'
dofile 'util'
@@ -25,23 +19,6 @@ Module
dofile 'mouse'
dofile 'string'
dofile 'ui/effects'
dofile 'ui/radiogroup'
dofile 'ui/tooltip'
dofile 'widgets/uiwidget'
dofile 'widgets/uibutton'
dofile 'widgets/uilabel'
dofile 'widgets/uicheckbox'
dofile 'widgets/uicombobox'
dofile 'widgets/uispinbox'
dofile 'widgets/uiprogressbar'
dofile 'widgets/uitabbar'
dofile 'widgets/uipopupmenu'
dofile 'widgets/uiwindow'
dofile 'widgets/uimessagebox'
dofile 'widgets/uisplitter'
dofile 'widgets/uiscrollbar'
dofile 'widgets/uiscrollarea'
dofile 'widgets/uiresizeborder'
dofiles 'ui'
dofiles 'widgets'

View File

@@ -1,3 +1,5 @@
if not UIWindow then dofile 'uiwindow' end
UIMessageBox = extends(UIWindow)
MessageBoxOk = 1