aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/skang.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ClientHamr/GuiLua/skang.lua')
-rw-r--r--ClientHamr/GuiLua/skang.lua17
1 files changed, 10 insertions, 7 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua
index e81c598..adf4edf 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -304,7 +304,10 @@ end
304-- required - "boolean" to say if this thing is required. TODO - Maybe fold this into types somehow, or acl? 304-- required - "boolean" to say if this thing is required. TODO - Maybe fold this into types somehow, or acl?
305-- acl - Access Control List defining security restrains. 305-- acl - Access Control List defining security restrains.
306-- boss - the Thing or person that owns this Thing, otherwise it is self owned. 306-- boss - the Thing or person that owns this Thing, otherwise it is self owned.
307thing = function (module, names, help, default, types, widget, required, acl, boss) 307thing = function (names, help, default, types, widget, required, acl, boss)
308 -- Grad the environment of the calling function, so this new thing automatically becomes a global in it.
309 module = getfenv(2)
310
308 -- Break out the names. 311 -- Break out the names.
309 local n = {} 312 local n = {}
310 local i = 1 313 local i = 1
@@ -382,12 +385,12 @@ end
382quit = function () 385quit = function ()
383end 386end
384 387
385thing(_M, 'nada', 'Do nothing.', nada) 388thing('nada', 'Do nothing.', nada)
386thing(_M, 'clear', 'The current skin is cleared of all widgets.', clear) 389thing('clear', 'The current skin is cleared of all widgets.', clear)
387thing(_M, 'window', 'The size and title of the application Frame.', window, 'x,y,name', nil, nil, 'GGG') 390thing('window', 'The size and title of the application Frame.', window, 'x,y,name', nil, nil, 'GGG')
388thing(_M, 'module', 'Load a module.', module, 'file,acl') 391thing('module', 'Load a module.', module, 'file,acl')
389thing(_M, 'skang', 'Parse the contents of a skang file or URL.', skang, 'URL') 392thing('skang', 'Parse the contents of a skang file or URL.', skang, 'URL')
390thing(_M, 'quit', 'Quit, exit, remove thyself.', quit) 393thing('quit', 'Quit, exit, remove thyself.', quit)
391 394
392 395
393moduleEnd(_M) 396moduleEnd(_M)