aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-19 12:39:35 +1000
committerDavid Walter Seikel2014-03-19 12:39:35 +1000
commit524473f881d6b89bf85f7d5e2bd7b19a5a8ab18a (patch)
tree659efe693807166b7ed774f3b7a7e476b6617efd /ClientHamr/GuiLua/test.c
parentMore design notes. (diff)
downloadSledjHamr-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 '')
-rw-r--r--ClientHamr/GuiLua/test.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/test.c b/ClientHamr/GuiLua/test.c
new file mode 100644
index 0000000..12b5901
--- /dev/null
+++ b/ClientHamr/GuiLua/test.c
@@ -0,0 +1,19 @@
1/* Should be a Lua module, roughly the same as -
2
3local skang = require('skang')
4local result = {};
5result.author = 'onefang'
6result.version = '0.72 alpha 2004-11-19 16:28:00'
7local bar
8-- The first argument would be the name of a local variable / method. Which could be accessed via _G?
9-- Not sure if we could use a global bar, AND use it directly.
10result.bar = skang.newParam('bar', "Required", "Shortcut", "Default", "Help text")
11result.func = skang.newCommand('number,data', 'Help Text', function (arg1, arg2)
12-- do something here
13end)
14
15-- do something here
16
17return result;
18
19*/