From b75e596af61da88aa705491778a5fd6845ab43ba Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 22 Mar 2015 17:35:10 +1000 Subject: Add internal reference for skang modules, so they can find themselves. --- src/GuiLua/test.skang | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/GuiLua/test.skang') diff --git a/src/GuiLua/test.skang b/src/GuiLua/test.skang index e3b303b..6346a4a 100644 --- a/src/GuiLua/test.skang +++ b/src/GuiLua/test.skang @@ -1,14 +1,14 @@ #!/usr/bin/env skang -l test -- Lua allows this shell hack. --- There's an implied local skang = require 'skang' --- There's an implied local test = require 'test' +-- There's an implied skang = require 'skang' +-- There's an implied test = require 'test' -- This is a bit more verbose than I wanted. lol local win = skang.window(200, 100, "G'day planet.", 'testWindow') skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 30'} win.W.quitter.action = 'skang.quit()' -- TODO Should look it up in ThingSpace.commands, and translate 'quit' into the Lua 'skang.quit()'? -skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button", "ffunc()", 10, 40, 100, 30', action='test.ffunc(3, 4)'} +skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button", "ffunc()", 10, 40, 100, 30', action='ffunc(3, 4)'} test.bar = 'things' test.ffunc(1, 'two') -- cgit v1.1