From e101059595b6003d42cbc033675a24c7f2a387a2 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 20 Apr 2014 05:24:24 +1000 Subject: Have the skin loader add the correct require line, and fix up test to suit. --- ClientHamr/GuiLua/test.skang | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'ClientHamr/GuiLua/test.skang') 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 @@ #!/usr/bin/env skang -l test -- Lua allows this shell hack. --- There's an implied local this = require 'test' -- There's an implied local skang = require 'skang' - --- local other = require 'otherPackageName' +-- There's an implied local test = require 'test' -- This is a bit more verbose than I wanted. lol local 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 skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button", "ffunc()", 10, 40, 100, 30', action='test.ffunc(3, 4)'} ---other.foo = 'stuff' -this.bar = 'things' -this.ffunc(1, 'two') +test.bar = 'things' +test.ffunc(1, 'two') -- cgit v1.1