ah_sce_unpacked/unpacked/Custom_Tile Phase Tracker d...

16 lines
364 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()
for _, tracker in ipairs(getObjectsWithTag("LinkedPhaseTracker")) do
tracker.setState(2)
end
end