aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-27 00:00:54 +1000
committerDavid Walter Seikel2014-03-27 00:00:54 +1000
commit67f822eeb04229c06b42297675cfa53bdcb414de (patch)
tree6b32a4cf4df1791ea13d2e5b9522c01bb48d12c8 /ClientHamr/GuiLua/test.lua
parentMore Stuff notes. (diff)
downloadSledjHamr-67f822eeb04229c06b42297675cfa53bdcb414de.zip
SledjHamr-67f822eeb04229c06b42297675cfa53bdcb414de.tar.gz
SledjHamr-67f822eeb04229c06b42297675cfa53bdcb414de.tar.bz2
SledjHamr-67f822eeb04229c06b42297675cfa53bdcb414de.tar.xz
No need to pass module to skang.thing(), it can work it out.
Diffstat (limited to 'ClientHamr/GuiLua/test.lua')
-rw-r--r--ClientHamr/GuiLua/test.lua7
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.
31local foo 31local foo
32 32
33skang.thing(_M, 'fooble,f', 'Help text goes here', 1, 'number', '"edit", "The fooble:", 1, 1, 10, 50', true) 33skang.thing('fooble,f', 'Help text goes here', 1, 'number', '"edit", "The fooble:", 1, 1, 10, 50', true)
34skang.thing(_M, 'bar', 'Help text', "Default") 34skang.thing('bar', 'Help text', "Default")
35skang.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.
37skang.thing(_M, 'ffunc', 'Help Text', function (arg1, arg2) 38skang.thing('ffunc', 'Help Text', function (arg1, arg2)
38 print('Inside test.ffunc ' .. arg1 .. ', ' .. arg2) 39 print('Inside test.ffunc ' .. arg1 .. ', ' .. arg2)
39end, 'number,string') 40end, 'number,string')
40 41