aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-04-20 05:02:22 +1000
committerDavid Walter Seikel2014-04-20 05:02:22 +1000
commitb973e0798dd085e5270eb1f0107852b035576eb0 (patch)
tree8e576134bc2baace788cfe12bc17ad4ad629c675
parentFix up widget action stuff. (diff)
downloadSledjHamr-b973e0798dd085e5270eb1f0107852b035576eb0.zip
SledjHamr-b973e0798dd085e5270eb1f0107852b035576eb0.tar.gz
SledjHamr-b973e0798dd085e5270eb1f0107852b035576eb0.tar.bz2
SledjHamr-b973e0798dd085e5270eb1f0107852b035576eb0.tar.xz
Add the next broken test.
-rw-r--r--ClientHamr/GuiLua/test.skang5
1 files changed, 4 insertions, 1 deletions
diff --git a/ClientHamr/GuiLua/test.skang b/ClientHamr/GuiLua/test.skang
index 0c37f92..432ab71 100644
--- a/ClientHamr/GuiLua/test.skang
+++ b/ClientHamr/GuiLua/test.skang
@@ -7,9 +7,12 @@
7 7
8-- This is a bit more verbose than I wanted. lol 8-- This is a bit more verbose than I wanted. lol
9local win = skang.window(500, 500, "G'day planet.", 'testWindow') 9local win = skang.window(500, 500, "G'day planet.", 'testWindow')
10skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 50'} 10skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 30'}
11win.W.quitter.action = 'skang.quit()' -- TODO Should look it up in ThingSpace.commands, and translat 'quit' into the Lua 'skang.quit()'? 11win.W.quitter.action = 'skang.quit()' -- TODO Should look it up in ThingSpace.commands, and translat 'quit' into the Lua 'skang.quit()'?
12 12
13skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button", "ffunc()", 10, 40, 100, 30', action='test.ffunc(3, 4)'}
14win.W.ffuncer.action = 'test.ffunc(3, 4)'
15
13--other.foo = 'stuff' 16--other.foo = 'stuff'
14this.bar = 'things' 17this.bar = 'things'
15this.ffunc(1, 'two') 18this.ffunc(1, 'two')