aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-27 02:24:25 +1000
committerDavid Walter Seikel2014-03-27 02:24:25 +1000
commit2830fe489465297ce369cff8a1b86e16217d184a (patch)
tree70f933c7c20a50eef5394ac7490536440e557e1a /ClientHamr
parentTODO++ (diff)
downloadSledjHamr-2830fe489465297ce369cff8a1b86e16217d184a.zip
SledjHamr-2830fe489465297ce369cff8a1b86e16217d184a.tar.gz
SledjHamr-2830fe489465297ce369cff8a1b86e16217d184a.tar.bz2
SledjHamr-2830fe489465297ce369cff8a1b86e16217d184a.tar.xz
Have a default default.
Diffstat (limited to 'ClientHamr')
-rw-r--r--ClientHamr/GuiLua/skang.lua1
-rw-r--r--ClientHamr/GuiLua/test.lua2
2 files changed, 3 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua
index bc59f85..29b62a9 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -234,6 +234,7 @@ __newindex could catch a table being assigned - test.foo = {widget = '...', acl=
234 234
235-- Default things values. 235-- Default things values.
236Thing.help = 'No description supplied.' 236Thing.help = 'No description supplied.'
237Thing.default = ''
237Thing.types = {'string'} 238Thing.types = {'string'}
238Thing.required = false 239Thing.required = false
239--Thing.acl = '' 240--Thing.acl = ''
diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua
index 5a5fda1..96d46e6 100644
--- a/ClientHamr/GuiLua/test.lua
+++ b/ClientHamr/GuiLua/test.lua
@@ -48,6 +48,8 @@ end
48-- Test it. 48-- Test it.
49local skang = require 'skang' 49local skang = require 'skang'
50local test = require 'test' 50local test = require 'test'
51
52print('foo = ' .. test.foo .. ' ->> ' .. skang.things.foo.help)
51print('End ' .. test.bar .. ' ' .. test.VERSION .. ' ' .. skang.things.ffunc.help .. ' ->> ' .. skang.things.f.action) 53print('End ' .. test.bar .. ' ' .. test.VERSION .. ' ' .. skang.things.ffunc.help .. ' ->> ' .. skang.things.f.action)
52test.ffunc('one', 2) 54test.ffunc('one', 2)
53--skang.things.ffunc('seven', 'aight') 55--skang.things.ffunc('seven', 'aight')