aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-22 17:07:11 +1000
committerDavid Walter Seikel2014-03-22 17:07:11 +1000
commit761aa35447343b80e97fb5ec0c1d98ab4e56cae4 (patch)
tree53f97d2884f469e93063bd5e19cc0c13fab32eba /ClientHamr/GuiLua/test.lua
parentRemove the excess moduleBegin crap. (diff)
downloadSledjHamr-761aa35447343b80e97fb5ec0c1d98ab4e56cae4.zip
SledjHamr-761aa35447343b80e97fb5ec0c1d98ab4e56cae4.tar.gz
SledjHamr-761aa35447343b80e97fb5ec0c1d98ab4e56cae4.tar.bz2
SledjHamr-761aa35447343b80e97fb5ec0c1d98ab4e56cae4.tar.xz
Fix up Thing inheritance again, remove get/set, and remove ThingSpace function calling.
Diffstat (limited to 'ClientHamr/GuiLua/test.lua')
-rw-r--r--ClientHamr/GuiLua/test.lua12
1 files changed, 7 insertions, 5 deletions
diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua
index 470fe23..6c48ca6 100644
--- a/ClientHamr/GuiLua/test.lua
+++ b/ClientHamr/GuiLua/test.lua
@@ -34,8 +34,8 @@ skang.thing(_M, 'fooble,f', 'Help text goes here', 1, nil, '"edit", "The fooble:
34skang.thing(_M, 'bar', 'Help text', "Default") 34skang.thing(_M, 'bar', 'Help text', "Default")
35 35
36-- 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.
37skang.thing(_M, 'func', 'Help Text', function (arg1, arg2) 37skang.thing(_M, 'ffunc', 'Help Text', function (arg1, arg2)
38 print('Inside test.func ' .. arg1 .. ', ' .. arg2) 38 print('Inside test.ffunc ' .. arg1 .. ', ' .. arg2)
39end, 'number,string') 39end, 'number,string')
40 40
41print('Ending soon') 41print('Ending soon')
@@ -47,6 +47,8 @@ end
47-- Test it. 47-- Test it.
48local skang = require 'skang' 48local skang = require 'skang'
49local test = require 'test' 49local test = require 'test'
50print('End ' .. test.bar .. ' ' .. test.VERSION .. ' ' .. skang.things.func.help .. ' ->> ' .. skang.things.f.action) 50print('End ' .. test.bar .. ' ' .. test.VERSION .. ' ' .. skang.things.ffunc.help .. ' ->> ' .. skang.things.f.action)
51test.func('one', 2) 51test.ffunc('one', 2)
52skang.things.func('seven', 'aight') 52--skang.things.ffunc('seven', 'aight')
53test.f = 42
54print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help)