aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.skang
diff options
context:
space:
mode:
Diffstat (limited to 'ClientHamr/GuiLua/test.skang')
-rw-r--r--ClientHamr/GuiLua/test.skang5
1 files changed, 2 insertions, 3 deletions
diff --git a/ClientHamr/GuiLua/test.skang b/ClientHamr/GuiLua/test.skang
index 6d7aab7..99d27e2 100644
--- a/ClientHamr/GuiLua/test.skang
+++ b/ClientHamr/GuiLua/test.skang
@@ -3,13 +3,12 @@
3-- There's an implied local this = require 'test' 3-- There's an implied local this = require 'test'
4-- There's an implied local skang = require 'skang' 4-- There's an implied local skang = require 'skang'
5 5
6local widget = require 'widget'
7-- local other = require 'otherPackageName' 6-- local other = require 'otherPackageName'
8 7
9skang.clear() 8skang.clear()
10widget.window(500, 500, "G'day planet.") 9skang.window(500, 500, "G'day planet.")
11 10
12--quitter = widget.button('Quit', 0.5, 0.5, 0.5, 0.5) 11--quitter = skang.button('Quit', 0.5, 0.5, 0.5, 0.5)
13--quitter:action('quit') -- 'quit' is looked up in ThingSpace.commands, and translated into the Lua 'skang.quit()'. 12--quitter:action('quit') -- 'quit' is looked up in ThingSpace.commands, and translated into the Lua 'skang.quit()'.
14 13
15--other.foo = 'stuff' 14--other.foo = 'stuff'