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.skang | |
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 'ClientHamr/GuiLua/test.skang')
-rw-r--r-- | ClientHamr/GuiLua/test.skang | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ClientHamr/GuiLua/test.skang b/ClientHamr/GuiLua/test.skang index 6d7aab7..99d27e2 100644 --- a/ClientHamr/GuiLua/test.skang +++ b/ClientHamr/GuiLua/test.skang | |||
@@ -3,13 +3,12 @@ | |||
3 | -- There's an implied local this = require 'test' | 3 | -- There's an implied local this = require 'test' |
4 | -- There's an implied local skang = require 'skang' | 4 | -- There's an implied local skang = require 'skang' |
5 | 5 | ||
6 | local widget = require 'widget' | ||
7 | -- local other = require 'otherPackageName' | 6 | -- local other = require 'otherPackageName' |
8 | 7 | ||
9 | skang.clear() | 8 | skang.clear() |
10 | widget.window(500, 500, "G'day planet.") | 9 | skang.window(500, 500, "G'day planet.") |
11 | 10 | ||
12 | --quitter = widget.button('Quit', 0.5, 0.5, 0.5, 0.5) | 11 | --quitter = skang.button('Quit', 0.5, 0.5, 0.5, 0.5) |
13 | --quitter:action('quit') -- 'quit' is looked up in ThingSpace.commands, and translated into the Lua 'skang.quit()'. | 12 | --quitter:action('quit') -- 'quit' is looked up in ThingSpace.commands, and translated into the Lua 'skang.quit()'. |
14 | 13 | ||
15 | --other.foo = 'stuff' | 14 | --other.foo = 'stuff' |