diff options
Diffstat (limited to 'ClientHamr/GuiLua/skang.lua')
-rw-r--r-- | ClientHamr/GuiLua/skang.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua index 2957fcc..e738a50 100644 --- a/ClientHamr/GuiLua/skang.lua +++ b/ClientHamr/GuiLua/skang.lua | |||
@@ -282,6 +282,8 @@ parseType = function (module, thingy, v, value) | |||
282 | else | 282 | else |
283 | module[v[2] ]() | 283 | module[v[2] ]() |
284 | end | 284 | end |
285 | end | ||
286 | |||
285 | if 'boolean' == thingy.types[1] then | 287 | if 'boolean' == thingy.types[1] then |
286 | if value then | 288 | if value then |
287 | -- Only parse the next value as a boolean if it doesn't have an introducer. | 289 | -- Only parse the next value as a boolean if it doesn't have an introducer. |
@@ -967,6 +969,7 @@ window = function (width, height, title) | |||
967 | end | 969 | end |
968 | 970 | ||
969 | module = function (name) | 971 | module = function (name) |
972 | return require(name) | ||
970 | end | 973 | end |
971 | 974 | ||
972 | skang = function (name) | 975 | skang = function (name) |
@@ -976,7 +979,7 @@ end | |||
976 | 979 | ||
977 | thingasm('clear', 'The current skin is cleared of all widgets.', clear) | 980 | thingasm('clear', 'The current skin is cleared of all widgets.', clear) |
978 | thingasm{'window', 'The size and title of the application Frame.', window, 'x,y,name', acl='GGG'} | 981 | thingasm{'window', 'The size and title of the application Frame.', window, 'x,y,name', acl='GGG'} |
979 | thingasm('module', 'Load a module.', module, 'file,acl') | 982 | thingasm('module,l', 'Load a module.', module, 'file') |
980 | thingasm('skang', 'Parse the contents of a skang file or URL.', skang, 'URL') | 983 | thingasm('skang', 'Parse the contents of a skang file or URL.', skang, 'URL') |
981 | thingasm('quit', 'Quit, exit, remove thyself.', quit) | 984 | thingasm('quit', 'Quit, exit, remove thyself.', quit) |
982 | 985 | ||