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.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'ClientHamr/GuiLua/test.lua') diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua index 65e686f..705f7ad 100644 --- a/ClientHamr/GuiLua/test.lua +++ b/ClientHamr/GuiLua/test.lua @@ -4,11 +4,9 @@ do -- Only I'm not gonna indent this. local skang = require 'skang' local _M = skang.moduleBegin('test', nil, 'Copyright 2014 David Seikel', '0.1', '2014-03-27 03:57:00', [[ - - skang.clear - skang.window(200, 200, "G'day planet.") - quitter = skang.button('Quit', 0.5, 0.5, 0.5, 0.5) - quitter:action('quit') + local win = skang.window(500, 500, "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 translat 'quit' into the Lua 'skang.quit()'? ]]) print('code') -- cgit v1.1