diff options
Diffstat (limited to 'ClientHamr/GuiLua/test.skang')
-rw-r--r-- | ClientHamr/GuiLua/test.skang | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/ClientHamr/GuiLua/test.skang b/ClientHamr/GuiLua/test.skang deleted file mode 100644 index 10382b5..0000000 --- a/ClientHamr/GuiLua/test.skang +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | #!/usr/bin/env skang -l test -- Lua allows this shell hack. | ||
2 | |||
3 | -- There's an implied local skang = require 'skang' | ||
4 | -- There's an implied local test = require 'test' | ||
5 | |||
6 | -- This is a bit more verbose than I wanted. lol | ||
7 | local win = skang.window(500, 500, "G'day planet.", 'testWindow') | ||
8 | skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 30'} | ||
9 | win.W.quitter.action = 'skang.quit()' -- TODO Should look it up in ThingSpace.commands, and translate 'quit' into the Lua 'skang.quit()'? | ||
10 | |||
11 | skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button", "ffunc()", 10, 40, 100, 30', action='test.ffunc(3, 4)'} | ||
12 | |||
13 | test.bar = 'things' | ||
14 | test.ffunc(1, 'two') | ||