diff options
author | David Walter Seikel | 2014-03-22 17:07:11 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-03-22 17:07:11 +1000 |
commit | 761aa35447343b80e97fb5ec0c1d98ab4e56cae4 (patch) | |
tree | 53f97d2884f469e93063bd5e19cc0c13fab32eba /ClientHamr/GuiLua/test.lua | |
parent | Remove the excess moduleBegin crap. (diff) | |
download | SledjHamr-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.lua | 12 |
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: | |||
34 | skang.thing(_M, 'bar', 'Help text', "Default") | 34 | skang.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. |
37 | skang.thing(_M, 'func', 'Help Text', function (arg1, arg2) | 37 | skang.thing(_M, 'ffunc', 'Help Text', function (arg1, arg2) |
38 | print('Inside test.func ' .. arg1 .. ', ' .. arg2) | 38 | print('Inside test.ffunc ' .. arg1 .. ', ' .. arg2) |
39 | end, 'number,string') | 39 | end, 'number,string') |
40 | 40 | ||
41 | print('Ending soon') | 41 | print('Ending soon') |
@@ -47,6 +47,8 @@ end | |||
47 | -- Test it. | 47 | -- Test it. |
48 | local skang = require 'skang' | 48 | local skang = require 'skang' |
49 | local test = require 'test' | 49 | local test = require 'test' |
50 | print('End ' .. test.bar .. ' ' .. test.VERSION .. ' ' .. skang.things.func.help .. ' ->> ' .. skang.things.f.action) | 50 | print('End ' .. test.bar .. ' ' .. test.VERSION .. ' ' .. skang.things.ffunc.help .. ' ->> ' .. skang.things.f.action) |
51 | test.func('one', 2) | 51 | test.ffunc('one', 2) |
52 | skang.things.func('seven', 'aight') | 52 | --skang.things.ffunc('seven', 'aight') |
53 | test.f = 42 | ||
54 | print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help) | ||