diff options
author | David Walter Seikel | 2014-04-18 18:39:38 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-04-18 18:39:38 +1000 |
commit | fc03f11c0e59515d4b467f8288f5dc7b962ec0bc (patch) | |
tree | 2df1e3381e9a3cd92afb9ab4a59afa12529d475c /ClientHamr/GuiLua/test.skang | |
parent | Not sure why I had parent in there, it's not used anywhere. (diff) | |
download | SledjHamr-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.skang | 5 |
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 | ||
8 | skang.clear() | 8 | skang.clear() |
9 | skang.window(500, 500, "G'day planet.") | 9 | local 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 | |
12 | skang.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' |