aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.skang
blob: ba40f1f105592f2bf207365b5bb82a6ca61ba38f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!skang test.skang     -- This is Lua, so this might not work.
-- There's an implied local this = require('test')
-- There's an implied local skang = require('skang')
local widget = require('widget')
-- local other = require('otherPackageName')
skang.clear
skang.window(200, 200, "G'day planet.")
quitter = widget.button('Quit', 0.5, 0.5, 0.5, 0.5)
quitter:action('quit')   -- 'quit' is looked up in ThingSpcae.commands, and translated into the Lua 'skang.quit()'.
--other.foo = 'stuff'
this.bar = 'things'
this.func(1, 'two')