From fc03f11c0e59515d4b467f8288f5dc7b962ec0bc Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 18 Apr 2014 18:39:38 +1000 Subject: Half arsed window and button implementation. --- ClientHamr/GuiLua/test.skang | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ClientHamr/GuiLua/test.skang') diff --git a/ClientHamr/GuiLua/test.skang b/ClientHamr/GuiLua/test.skang index ebf5b53..a8ca105 100644 --- a/ClientHamr/GuiLua/test.skang +++ b/ClientHamr/GuiLua/test.skang @@ -6,9 +6,10 @@ -- local other = require 'otherPackageName' skang.clear() -skang.window(500, 500, "G'day planet.") +local win = skang.window(500, 500, "G'day planet.", 'testWindow') ---quitter = skang.widget('button', 'Quit', 0.5, 0.5, 0.5, 0.5) + +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()'. --other.foo = 'stuff' -- cgit v1.1