diff options
Diffstat (limited to 'ClientHamr/GuiLua/test.skang')
-rw-r--r-- | ClientHamr/GuiLua/test.skang | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/test.skang b/ClientHamr/GuiLua/test.skang new file mode 100644 index 0000000..ba40f1f --- /dev/null +++ b/ClientHamr/GuiLua/test.skang | |||
@@ -0,0 +1,12 @@ | |||
1 | #!skang test.skang -- This is Lua, so this might not work. | ||
2 | -- There's an implied local this = require('test') | ||
3 | -- There's an implied local skang = require('skang') | ||
4 | local widget = require('widget') | ||
5 | -- local other = require('otherPackageName') | ||
6 | skang.clear | ||
7 | skang.window(200, 200, "G'day planet.") | ||
8 | quitter = widget.button('Quit', 0.5, 0.5, 0.5, 0.5) | ||
9 | quitter:action('quit') -- 'quit' is looked up in ThingSpcae.commands, and translated into the Lua 'skang.quit()'. | ||
10 | --other.foo = 'stuff' | ||
11 | this.bar = 'things' | ||
12 | this.func(1, 'two') | ||