From b973e0798dd085e5270eb1f0107852b035576eb0 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 20 Apr 2014 05:02:22 +1000 Subject: Add the next broken test. --- ClientHamr/GuiLua/test.skang | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ClientHamr') 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 @@ -- This is a bit more verbose than I wanted. lol local win = skang.window(500, 500, "G'day planet.", 'testWindow') -skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 50'} +skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 30'} win.W.quitter.action = 'skang.quit()' -- TODO Should look it up in ThingSpace.commands, and translat 'quit' into the Lua 'skang.quit()'? +skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button", "ffunc()", 10, 40, 100, 30', action='test.ffunc(3, 4)'} +win.W.ffuncer.action = 'test.ffunc(3, 4)' + --other.foo = 'stuff' this.bar = 'things' this.ffunc(1, 'two') -- cgit v1.1