aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.skang
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-04-17 11:58:53 +1000
committerDavid Walter Seikel2014-04-17 11:58:53 +1000
commitb2b7232d1ad246c7534296d88f0b8f71c0a33d07 (patch)
tree053f2f8e6168d27c084f284372317fd54247be30 /ClientHamr/GuiLua/test.skang
parentFigure out which is the main skin and run it. (diff)
downloadSledjHamr-b2b7232d1ad246c7534296d88f0b8f71c0a33d07.zip
SledjHamr-b2b7232d1ad246c7534296d88f0b8f71c0a33d07.tar.gz
SledjHamr-b2b7232d1ad246c7534296d88f0b8f71c0a33d07.tar.bz2
SledjHamr-b2b7232d1ad246c7534296d88f0b8f71c0a33d07.tar.xz
Actually get skin running to work.
Diffstat (limited to 'ClientHamr/GuiLua/test.skang')
-rw-r--r--ClientHamr/GuiLua/test.skang8
1 files changed, 4 insertions, 4 deletions
diff --git a/ClientHamr/GuiLua/test.skang b/ClientHamr/GuiLua/test.skang
index 20430e1..015b3b9 100644
--- a/ClientHamr/GuiLua/test.skang
+++ b/ClientHamr/GuiLua/test.skang
@@ -6,12 +6,12 @@
6local widget = require 'widget' 6local widget = require 'widget'
7-- local other = require 'otherPackageName' 7-- local other = require 'otherPackageName'
8 8
9skang.clear 9skang.clear()
10skang.window(200, 200, "G'day planet.") 10skang.window(200, 200, "G'day planet.")
11 11
12quitter = widget.button('Quit', 0.5, 0.5, 0.5, 0.5) 12--quitter = widget.button('Quit', 0.5, 0.5, 0.5, 0.5)
13quitter: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()'.
14 14
15--other.foo = 'stuff' 15--other.foo = 'stuff'
16this.bar = 'things' 16this.bar = 'things'
17this.func(1, 'two') 17this.ffunc(1, 'two')