diff options
Diffstat (limited to 'ClientHamr/GuiLua/test.skang')
-rw-r--r-- | ClientHamr/GuiLua/test.skang | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ClientHamr/GuiLua/test.skang b/ClientHamr/GuiLua/test.skang index 518207b..de417da 100644 --- a/ClientHamr/GuiLua/test.skang +++ b/ClientHamr/GuiLua/test.skang | |||
@@ -1,9 +1,7 @@ | |||
1 | #!/usr/bin/env skang -l test -- Lua allows this shell hack. | 1 | #!/usr/bin/env skang -l test -- Lua allows this shell hack. |
2 | 2 | ||
3 | -- There's an implied local this = require 'test' | ||
4 | -- There's an implied local skang = require 'skang' | 3 | -- There's an implied local skang = require 'skang' |
5 | 4 | -- There's an implied local test = require 'test' | |
6 | -- local other = require 'otherPackageName' | ||
7 | 5 | ||
8 | -- This is a bit more verbose than I wanted. lol | 6 | -- This is a bit more verbose than I wanted. lol |
9 | local win = skang.window(500, 500, "G'day planet.", 'testWindow') | 7 | local win = skang.window(500, 500, "G'day planet.", 'testWindow') |
@@ -12,6 +10,5 @@ win.W.quitter.action = 'skang.quit()' -- TODO Should look it up in ThingSpace.c | |||
12 | 10 | ||
13 | skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button", "ffunc()", 10, 40, 100, 30', action='test.ffunc(3, 4)'} | 11 | skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button", "ffunc()", 10, 40, 100, 30', action='test.ffunc(3, 4)'} |
14 | 12 | ||
15 | --other.foo = 'stuff' | 13 | test.bar = 'things' |
16 | this.bar = 'things' | 14 | test.ffunc(1, 'two') |
17 | this.ffunc(1, 'two') | ||