diff options
Diffstat (limited to 'ClientHamr/GuiLua/test.lua')
-rw-r--r-- | ClientHamr/GuiLua/test.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua index 6a38cde..5a5fda1 100644 --- a/ClientHamr/GuiLua/test.lua +++ b/ClientHamr/GuiLua/test.lua | |||
@@ -30,11 +30,12 @@ print('code') | |||
30 | -- A variable that is private to this module. | 30 | -- A variable that is private to this module. |
31 | local foo | 31 | local foo |
32 | 32 | ||
33 | skang.thing(_M, 'fooble,f', 'Help text goes here', 1, 'number', '"edit", "The fooble:", 1, 1, 10, 50', true) | 33 | skang.thing('fooble,f', 'Help text goes here', 1, 'number', '"edit", "The fooble:", 1, 1, 10, 50', true) |
34 | skang.thing(_M, 'bar', 'Help text', "Default") | 34 | skang.thing('bar', 'Help text', "Default") |
35 | skang.thing('foo') | ||
35 | 36 | ||
36 | -- We can use inline functions if we don't need the function internally. | 37 | -- We can use inline functions if we don't need the function internally. |
37 | skang.thing(_M, 'ffunc', 'Help Text', function (arg1, arg2) | 38 | skang.thing('ffunc', 'Help Text', function (arg1, arg2) |
38 | print('Inside test.ffunc ' .. arg1 .. ', ' .. arg2) | 39 | print('Inside test.ffunc ' .. arg1 .. ', ' .. arg2) |
39 | end, 'number,string') | 40 | end, 'number,string') |
40 | 41 | ||