aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-04-18 14:15:24 +1000
committerDavid Walter Seikel2014-04-18 14:15:24 +1000
commit047ae907c21f19ff5a7b59e19f4b9d3061f611d8 (patch)
tree8915bdde3ab25f55926468c958dd56d270b0f927 /ClientHamr
parentMove clear() and quit() to GuiLua.c, and actually implement quit(). (diff)
downloadSledjHamr-047ae907c21f19ff5a7b59e19f4b9d3061f611d8.zip
SledjHamr-047ae907c21f19ff5a7b59e19f4b9d3061f611d8.tar.gz
SledjHamr-047ae907c21f19ff5a7b59e19f4b9d3061f611d8.tar.bz2
SledjHamr-047ae907c21f19ff5a7b59e19f4b9d3061f611d8.tar.xz
Clean up test.skang a little.
Diffstat (limited to 'ClientHamr')
-rw-r--r--ClientHamr/GuiLua/test.skang4
1 files changed, 2 insertions, 2 deletions
diff --git a/ClientHamr/GuiLua/test.skang b/ClientHamr/GuiLua/test.skang
index 99d27e2..ebf5b53 100644
--- a/ClientHamr/GuiLua/test.skang
+++ b/ClientHamr/GuiLua/test.skang
@@ -1,4 +1,4 @@
1#!/usr/bin/env skang -- 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' 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'
@@ -8,7 +8,7 @@
8skang.clear() 8skang.clear()
9skang.window(500, 500, "G'day planet.") 9skang.window(500, 500, "G'day planet.")
10 10
11--quitter = skang.button('Quit', 0.5, 0.5, 0.5, 0.5) 11--quitter = skang.widget('button', 'Quit', 0.5, 0.5, 0.5, 0.5)
12--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()'.
13 13
14--other.foo = 'stuff' 14--other.foo = 'stuff'