aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.skang
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.skang
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.skang12
1 files changed, 12 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/test.skang b/ClientHamr/GuiLua/test.skang
new file mode 100644
index 0000000..ba40f1f
--- /dev/null
+++ b/ClientHamr/GuiLua/test.skang
@@ -0,0 +1,12 @@
1#!skang test.skang -- This is Lua, so this might not work.
2-- There's an implied local this = require('test')
3-- There's an implied local skang = require('skang')
4local widget = require('widget')
5-- local other = require('otherPackageName')
6skang.clear
7skang.window(200, 200, "G'day planet.")
8quitter = widget.button('Quit', 0.5, 0.5, 0.5, 0.5)
9quitter:action('quit') -- 'quit' is looked up in ThingSpcae.commands, and translated into the Lua 'skang.quit()'.
10--other.foo = 'stuff'
11this.bar = 'things'
12this.func(1, 'two')