aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/GuiLua/test.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-05 20:04:08 +1000
committerDavid Walter Seikel2014-05-05 20:04:08 +1000
commit969f1968f2f74f8f09c4788bc7f7b1c9655ad354 (patch)
tree90d1d572f57c03b65c105cdcc47e9b79640a617d /src/GuiLua/test.lua
parentGuiLuaDo() now returns astructure, and has that structure in Lua's C registry... (diff)
downloadSledjHamr-969f1968f2f74f8f09c4788bc7f7b1c9655ad354.zip
SledjHamr-969f1968f2f74f8f09c4788bc7f7b1c9655ad354.tar.gz
SledjHamr-969f1968f2f74f8f09c4788bc7f7b1c9655ad354.tar.bz2
SledjHamr-969f1968f2f74f8f09c4788bc7f7b1c9655ad354.tar.xz
Call skang modules from extantz. Needs some clean up.
Diffstat (limited to 'src/GuiLua/test.lua')
-rw-r--r--src/GuiLua/test.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GuiLua/test.lua b/src/GuiLua/test.lua
index 705f7ad..aa7235a 100644
--- a/src/GuiLua/test.lua
+++ b/src/GuiLua/test.lua
@@ -4,9 +4,10 @@ do -- Only I'm not gonna indent this.
4 4
5local skang = require 'skang' 5local skang = require 'skang'
6local _M = skang.moduleBegin('test', nil, 'Copyright 2014 David Seikel', '0.1', '2014-03-27 03:57:00', [[ 6local _M = skang.moduleBegin('test', nil, 'Copyright 2014 David Seikel', '0.1', '2014-03-27 03:57:00', [[
7 local win = skang.window(500, 500, "G'day planet.", 'testWindow') 7 local win = skang.window(200, 100, "G'day planet.", 'testWindow')
8 skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 30'} 8 skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 30'}
9 win.W.quitter.action = 'skang.quit()' -- TODO Should look it up in ThingSpace.commands, and translat 'quit' into the Lua 'skang.quit()'? 9 win.W.quitter.action = 'skang.quit()' -- TODO Should look it up in ThingSpace.commands, and translate 'quit' into the Lua 'skang.quit()'?
10 skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button", "ffunc()", 10, 40, 100, 30', action='test.ffunc(3, 4)'}
10]]) 11]])
11 12
12print('code') 13print('code')