SCED/objects/PhaseTracker.d0c8fa.ttslua

17 lines
365 B
Plaintext
Raw Normal View History

2022-11-11 02:59:55 -05:00
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()
for _, tracker in ipairs(getObjectsWithTag("LinkedPhaseTracker")) do
tracker.setState(2)
end
end