diff options
author | David Walter Seikel | 2014-03-19 12:39:35 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-03-19 12:39:35 +1000 |
commit | 524473f881d6b89bf85f7d5e2bd7b19a5a8ab18a (patch) | |
tree | 659efe693807166b7ed774f3b7a7e476b6617efd /ClientHamr/GuiLua/test.lua | |
parent | More design notes. (diff) | |
download | SledjHamr-524473f881d6b89bf85f7d5e2bd7b19a5a8ab18a.zip SledjHamr-524473f881d6b89bf85f7d5e2bd7b19a5a8ab18a.tar.gz SledjHamr-524473f881d6b89bf85f7d5e2bd7b19a5a8ab18a.tar.bz2 SledjHamr-524473f881d6b89bf85f7d5e2bd7b19a5a8ab18a.tar.xz |
Added some GuiLua test source files, and lots of comments in GuiLua.c.
Diffstat (limited to 'ClientHamr/GuiLua/test.lua')
-rw-r--r-- | ClientHamr/GuiLua/test.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua new file mode 100644 index 0000000..7e668d2 --- /dev/null +++ b/ClientHamr/GuiLua/test.lua | |||
@@ -0,0 +1,15 @@ | |||
1 | local skang = require('skang') | ||
2 | local result = {}; | ||
3 | result.author = 'onefang' | ||
4 | result.version = '0.72 alpha 2004-11-19 16:28:00' | ||
5 | local bar | ||
6 | -- The first argument would be the name of a local variable / method. Which could be accessed via _G? | ||
7 | -- Not sure if we could use a global bar, AND use it directly. | ||
8 | result.bar = skang.newParam('bar', "Required", "Shortcut", "Default", "Help text") | ||
9 | result.func = skang.newCommand('number,data', 'Help Text', function (arg1, arg2) | ||
10 | -- do something here | ||
11 | end) | ||
12 | |||
13 | -- do something here | ||
14 | |||
15 | return result; | ||