From 407dee6650c6fbb8506146eda91428155890c623 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 20 Apr 2014 04:51:19 +1000 Subject: Fix up widget action stuff. --- ClientHamr/GuiLua/test.skang | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ClientHamr/GuiLua/test.skang') diff --git a/ClientHamr/GuiLua/test.skang b/ClientHamr/GuiLua/test.skang index 340bb08..0c37f92 100644 --- a/ClientHamr/GuiLua/test.skang +++ b/ClientHamr/GuiLua/test.skang @@ -8,9 +8,7 @@ -- 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.printTableStart(win.W.quitter, '', 'quitter') -win.W.quitter.action = 1 -win.W.quitter.action = 'quit' -- 'quit' is looked up in ThingSpace.commands, and translated into the Lua 'skang.quit()'. +win.W.quitter.action = 'skang.quit()' -- TODO Should look it up in ThingSpace.commands, and translat 'quit' into the Lua 'skang.quit()'? --other.foo = 'stuff' this.bar = 'things' -- cgit v1.1