aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.lua
blob: 7e668d2898ab8aa9dea79e5f0c0581d34f2fbb56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;