diff options
author | David Walter Seikel | 2014-04-20 05:24:24 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-04-20 05:24:24 +1000 |
commit | e101059595b6003d42cbc033675a24c7f2a387a2 (patch) | |
tree | a1c19f41da3e6de5cbf498b98f1acf132cee7325 /ClientHamr/GuiLua/test.lua | |
parent | For the module command, make the loaded module global. (diff) | |
download | SledjHamr-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.lua')
-rw-r--r-- | ClientHamr/GuiLua/test.lua | 8 |
1 files changed, 3 insertions, 5 deletions
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. | |||
4 | 4 | ||
5 | local skang = require 'skang' | 5 | local skang = require 'skang' |
6 | local _M = skang.moduleBegin('test', nil, 'Copyright 2014 David Seikel', '0.1', '2014-03-27 03:57:00', [[ | 6 | local _M = skang.moduleBegin('test', nil, 'Copyright 2014 David Seikel', '0.1', '2014-03-27 03:57:00', [[ |
7 | 7 | local win = skang.window(500, 500, "G'day planet.", 'testWindow') | |
8 | skang.clear | 8 | skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 30'} |
9 | skang.window(200, 200, "G'day planet.") | 9 | win.W.quitter.action = 'skang.quit()' -- TODO Should look it up in ThingSpace.commands, and translat 'quit' into the Lua 'skang.quit()'? |
10 | quitter = skang.button('Quit', 0.5, 0.5, 0.5, 0.5) | ||
11 | quitter:action('quit') | ||
12 | ]]) | 10 | ]]) |
13 | 11 | ||
14 | print('code') | 12 | print('code') |