diff options
Diffstat (limited to '')
-rw-r--r-- | ClientHamr/GuiLua/test.skang | 10 |
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 | ||
8 | skang.clear() | 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 | 10 | skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 50'} | |
11 | 11 | skang.printTableStart(win.W.quitter, '', 'quitter') | |
12 | skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 50', required=true} | 12 | win.W.quitter.action = 1 |
13 | --quitter:action('quit') -- 'quit' is looked up in ThingSpace.commands, and translated into the Lua 'skang.quit()'. | 13 | win.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' |
16 | this.bar = 'things' | 16 | this.bar = 'things' |