From e5e0aa07366a8d5e9fd15c2d2597da2985d15c72 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 19 Mar 2014 21:10:02 +1000 Subject: Jiggle the requires a bit. --- ClientHamr/GuiLua/test.skang | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'ClientHamr') diff --git a/ClientHamr/GuiLua/test.skang b/ClientHamr/GuiLua/test.skang index ba40f1f..ea53a26 100644 --- a/ClientHamr/GuiLua/test.skang +++ b/ClientHamr/GuiLua/test.skang @@ -1,12 +1,17 @@ #!skang test.skang -- This is Lua, so this might not work. --- There's an implied local this = require('test') --- There's an implied local skang = require('skang') -local widget = require('widget') --- local other = require('otherPackageName') + +-- There's an implied local this = require 'test' +-- There's an implied local skang = require 'skang' + +local widget = require 'widget' +-- local other = require 'otherPackageName' + skang.clear skang.window(200, 200, "G'day planet.") + quitter = widget.button('Quit', 0.5, 0.5, 0.5, 0.5) quitter:action('quit') -- 'quit' is looked up in ThingSpcae.commands, and translated into the Lua 'skang.quit()'. + --other.foo = 'stuff' this.bar = 'things' this.func(1, 'two') -- cgit v1.1