From 524473f881d6b89bf85f7d5e2bd7b19a5a8ab18a Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 19 Mar 2014 12:39:35 +1000 Subject: Added some GuiLua test source files, and lots of comments in GuiLua.c. --- ClientHamr/GuiLua/test.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ClientHamr/GuiLua/test.lua (limited to 'ClientHamr/GuiLua/test.lua') 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 @@ +local skang = require('skang') +local result = {}; +result.author = 'onefang' +result.version = '0.72 alpha 2004-11-19 16:28:00' +local bar +-- The first argument would be the name of a local variable / method. Which could be accessed via _G? +-- Not sure if we could use a global bar, AND use it directly. +result.bar = skang.newParam('bar', "Required", "Shortcut", "Default", "Help text") +result.func = skang.newCommand('number,data', 'Help Text', function (arg1, arg2) +-- do something here +end) + +-- do something here + +return result; -- cgit v1.1