aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.skang
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-04-20 05:24:24 +1000
committerDavid Walter Seikel2014-04-20 05:24:24 +1000
commite101059595b6003d42cbc033675a24c7f2a387a2 (patch)
treea1c19f41da3e6de5cbf498b98f1acf132cee7325 /ClientHamr/GuiLua/test.skang
parentFor the module command, make the loaded module global. (diff)
downloadSledjHamr-e101059595b6003d42cbc033675a24c7f2a387a2.zip
SledjHamr-e101059595b6003d42cbc033675a24c7f2a387a2.tar.gz
SledjHamr-e101059595b6003d42cbc033675a24c7f2a387a2.tar.bz2
SledjHamr-e101059595b6003d42cbc033675a24c7f2a387a2.tar.xz
Have the skin loader add the correct require line, and fix up test to suit.
Diffstat (limited to 'ClientHamr/GuiLua/test.skang')
-rw-r--r--ClientHamr/GuiLua/test.skang9
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
9local win = skang.window(500, 500, "G'day planet.", 'testWindow') 7local 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
13skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button", "ffunc()", 10, 40, 100, 30', action='test.ffunc(3, 4)'} 11skang.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' 13test.bar = 'things'
16this.bar = 'things' 14test.ffunc(1, 'two')
17this.ffunc(1, 'two')