diff options
author | David Walter Seikel | 2014-04-18 00:37:17 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-04-18 00:37:17 +1000 |
commit | 8e06e56e16183c18b01bf6941fde8c35b5562655 (patch) | |
tree | be350cd2d49bb52fbf9442ba9e70cfedab848b94 /ClientHamr/GuiLua/test.lua | |
parent | Convert test_c to use GuiLua. (diff) | |
download | SledjHamr-8e06e56e16183c18b01bf6941fde8c35b5562655.zip SledjHamr-8e06e56e16183c18b01bf6941fde8c35b5562655.tar.gz SledjHamr-8e06e56e16183c18b01bf6941fde8c35b5562655.tar.bz2 SledjHamr-8e06e56e16183c18b01bf6941fde8c35b5562655.tar.xz |
Merge the widget module into the skang module, and some related clean ups.
So now the skang module is a mix of C and Lua.
Diffstat (limited to '')
-rw-r--r-- | ClientHamr/GuiLua/test.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua index 6799154..a7e3b7f 100644 --- a/ClientHamr/GuiLua/test.lua +++ b/ClientHamr/GuiLua/test.lua | |||
@@ -4,11 +4,10 @@ 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 | local widget = require 'widget' | ||
8 | 7 | ||
9 | skang.clear | 8 | skang.clear |
10 | skang.window(200, 200, "G'day planet.") | 9 | skang.window(200, 200, "G'day planet.") |
11 | quitter = widget.button('Quit', 0.5, 0.5, 0.5, 0.5) | 10 | quitter = skang.button('Quit', 0.5, 0.5, 0.5, 0.5) |
12 | quitter:action('quit') | 11 | quitter:action('quit') |
13 | ]]) | 12 | ]]) |
14 | 13 | ||