From b3a9d6b10732f3f65ca0a24aa2a66275e24f8cd7 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 18 Apr 2014 20:23:52 +1000 Subject: Trying to add widget actions, but it's broken somehow. Think maybe Keyed is screwing it up? I need sleep. --- ClientHamr/GuiLua/test.skang | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ClientHamr/GuiLua/test.skang') diff --git a/ClientHamr/GuiLua/test.skang b/ClientHamr/GuiLua/test.skang index a8ca105..340bb08 100644 --- a/ClientHamr/GuiLua/test.skang +++ b/ClientHamr/GuiLua/test.skang @@ -5,12 +5,12 @@ -- local other = require 'otherPackageName' -skang.clear() +-- 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', required=true} ---quitter:action('quit') -- 'quit' is looked up in ThingSpace.commands, and translated into the Lua 'skang.quit()'. +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()'. --other.foo = 'stuff' this.bar = 'things' -- cgit v1.1