diff options
Diffstat (limited to 'ClientHamr/GuiLua/test.lua')
-rw-r--r-- | ClientHamr/GuiLua/test.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua index 6518de8..525e66b 100644 --- a/ClientHamr/GuiLua/test.lua +++ b/ClientHamr/GuiLua/test.lua | |||
@@ -30,16 +30,15 @@ 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.newParam(_M, 'bar', "Required", "Shortcut", "Default", "Help text") | 33 | skang.thing(_M, 'fooble,f', 'Help text goes here', 1, nil, '"edit", "The fooble:", 1, 1, 10, 50') |
34 | skang.thing(_M, 'bar', 'Help text', "Default") | ||
34 | 35 | ||
35 | -- We can use inline functions if we don't need the function internally. | 36 | -- We can use inline functions if we don't need the function internally. |
36 | skang.newCommand(_M, 'func', 'number,data', 'Help Text', function (arg1, arg2) | 37 | skang.thing(_M, 'func', 'Help Text', function (arg1, arg2) |
37 | print('Inside test.func ' .. arg1 .. ', ' .. arg2) | 38 | print('Inside test.func ' .. arg1 .. ', ' .. arg2) |
38 | end) | 39 | end, 'number,string') |
39 | |||
40 | 40 | ||
41 | print('Ending soon') | 41 | print('Ending soon') |
42 | |||
43 | skang.moduleEnd(_M) | 42 | skang.moduleEnd(_M) |
44 | 43 | ||
45 | end | 44 | end |
@@ -50,5 +49,6 @@ local skang = require 'skang' | |||
50 | local test = require 'test' | 49 | local test = require 'test' |
51 | print('End ' .. test.bar .. ' ' .. test.VERSION .. ' ' .. skang.ThingSpace.commands.func.help) | 50 | print('End ' .. test.bar .. ' ' .. test.VERSION .. ' ' .. skang.ThingSpace.commands.func.help) |
52 | test.func('one', 2) | 51 | test.func('one', 2) |
52 | skang.ThingSpace.things.func('seven', 'aight') | ||
53 | skang.ThingSpace.commands.func.func(3, 'four') | 53 | skang.ThingSpace.commands.func.func(3, 'four') |
54 | skang.ThingSpace.commands.func('five', 'six') | 54 | skang.ThingSpace.commands.func('five', 'six') |