aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.skang
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-04-18 18:39:38 +1000
committerDavid Walter Seikel2014-04-18 18:39:38 +1000
commitfc03f11c0e59515d4b467f8288f5dc7b962ec0bc (patch)
tree2df1e3381e9a3cd92afb9ab4a59afa12529d475c /ClientHamr/GuiLua/test.skang
parentNot sure why I had parent in there, it's not used anywhere. (diff)
downloadSledjHamr-fc03f11c0e59515d4b467f8288f5dc7b962ec0bc.zip
SledjHamr-fc03f11c0e59515d4b467f8288f5dc7b962ec0bc.tar.gz
SledjHamr-fc03f11c0e59515d4b467f8288f5dc7b962ec0bc.tar.bz2
SledjHamr-fc03f11c0e59515d4b467f8288f5dc7b962ec0bc.tar.xz
Half arsed window and button implementation.
Diffstat (limited to '')
-rw-r--r--ClientHamr/GuiLua/test.skang5
1 files changed, 3 insertions, 2 deletions
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 @@
6-- local other = require 'otherPackageName' 6-- local other = require 'otherPackageName'
7 7
8skang.clear() 8skang.clear()
9skang.window(500, 500, "G'day planet.") 9local win = skang.window(500, 500, "G'day planet.", 'testWindow')
10 10
11--quitter = skang.widget('button', 'Quit', 0.5, 0.5, 0.5, 0.5) 11
12skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 50', required=true}
12--quitter:action('quit') -- 'quit' is looked up in ThingSpace.commands, and translated into the Lua 'skang.quit()'. 13--quitter:action('quit') -- 'quit' is looked up in ThingSpace.commands, and translated into the Lua 'skang.quit()'.
13 14
14--other.foo = 'stuff' 15--other.foo = 'stuff'