aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ClientHamr/GuiLua/test.lua')
-rw-r--r--ClientHamr/GuiLua/test.lua15
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 @@
1local skang = require('skang')
2local result = {};
3result.author = 'onefang'
4result.version = '0.72 alpha 2004-11-19 16:28:00'
5local 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.
8result.bar = skang.newParam('bar', "Required", "Shortcut", "Default", "Help text")
9result.func = skang.newCommand('number,data', 'Help Text', function (arg1, arg2)
10-- do something here
11end)
12
13-- do something here
14
15return result;