diff options
author | David Walter Seikel | 2014-04-20 04:51:19 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-04-20 04:51:19 +1000 |
commit | 407dee6650c6fbb8506146eda91428155890c623 (patch) | |
tree | 13a63b74a71f5edb67c4c453d59111edb3a6f4fc /ClientHamr/GuiLua/test.skang | |
parent | Trying to add widget actions, but it's broken somehow. Think maybe Keyed is ... (diff) | |
download | SledjHamr-407dee6650c6fbb8506146eda91428155890c623.zip SledjHamr-407dee6650c6fbb8506146eda91428155890c623.tar.gz SledjHamr-407dee6650c6fbb8506146eda91428155890c623.tar.bz2 SledjHamr-407dee6650c6fbb8506146eda91428155890c623.tar.xz |
Fix up widget action stuff.
Diffstat (limited to '')
-rw-r--r-- | ClientHamr/GuiLua/test.skang | 4 |
1 files changed, 1 insertions, 3 deletions
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 @@ | |||
8 | -- This is a bit more verbose than I wanted. lol | 8 | -- This is a bit more verbose than I wanted. lol |
9 | local win = skang.window(500, 500, "G'day planet.", 'testWindow') | 9 | local win = skang.window(500, 500, "G'day planet.", 'testWindow') |
10 | skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 50'} | 10 | skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 50'} |
11 | skang.printTableStart(win.W.quitter, '', 'quitter') | 11 | win.W.quitter.action = 'skang.quit()' -- TODO Should look it up in ThingSpace.commands, and translat 'quit' into the Lua 'skang.quit()'? |
12 | win.W.quitter.action = 1 | ||
13 | win.W.quitter.action = 'quit' -- 'quit' is looked up in ThingSpace.commands, and translated into the Lua 'skang.quit()'. | ||
14 | 12 | ||
15 | --other.foo = 'stuff' | 13 | --other.foo = 'stuff' |
16 | this.bar = 'things' | 14 | this.bar = 'things' |