aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.skang
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-04-18 20:23:52 +1000
committerDavid Walter Seikel2014-04-18 20:23:52 +1000
commitb3a9d6b10732f3f65ca0a24aa2a66275e24f8cd7 (patch)
tree50363eeef17eef1785571ee6325828a8dce3c8cc /ClientHamr/GuiLua/test.skang
parentHalf arsed window and button implementation. (diff)
downloadSledjHamr-b3a9d6b10732f3f65ca0a24aa2a66275e24f8cd7.zip
SledjHamr-b3a9d6b10732f3f65ca0a24aa2a66275e24f8cd7.tar.gz
SledjHamr-b3a9d6b10732f3f65ca0a24aa2a66275e24f8cd7.tar.bz2
SledjHamr-b3a9d6b10732f3f65ca0a24aa2a66275e24f8cd7.tar.xz
Trying to add widget actions, but it's broken somehow. Think maybe Keyed is screwing it up?
I need sleep.
Diffstat (limited to 'ClientHamr/GuiLua/test.skang')
-rw-r--r--ClientHamr/GuiLua/test.skang10
1 files changed, 5 insertions, 5 deletions
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 @@
5 5
6-- local other = require 'otherPackageName' 6-- local other = require 'otherPackageName'
7 7
8skang.clear() 8-- This is a bit more verbose than I wanted. lol
9local win = skang.window(500, 500, "G'day planet.", 'testWindow') 9local win = skang.window(500, 500, "G'day planet.", 'testWindow')
10 10skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 50'}
11 11skang.printTableStart(win.W.quitter, '', 'quitter')
12skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 50', required=true} 12win.W.quitter.action = 1
13--quitter:action('quit') -- 'quit' is looked up in ThingSpace.commands, and translated into the Lua 'skang.quit()'. 13win.W.quitter.action = 'quit' -- 'quit' is looked up in ThingSpace.commands, and translated into the Lua 'skang.quit()'.
14 14
15--other.foo = 'stuff' 15--other.foo = 'stuff'
16this.bar = 'things' 16this.bar = 'things'