15 lines
283 B
Plaintext
15 lines
283 B
Plaintext
function onLoad()
|
|
-- Add a button to the object
|
|
local params = {}
|
|
params.click_function = 'toPhaseTwo'
|
|
params.function_owner = self
|
|
params.tooltip = ''
|
|
params.width = 600
|
|
params.height = 600
|
|
self.createButton(params)
|
|
end
|
|
|
|
function toPhaseTwo()
|
|
self.setState(2)
|
|
end
|