Untitled
unknown
plain_text
a year ago
758 B
12
Indexable
local test_counter = 0
local function testvalfunc(TestValuee, controller) -- loop until condition met( tf defined )
if CoD and CoD.TFOptionIndexes and CoD.TFOptionIndexes then
-- Safe now, set text
TestValuee:setText( Engine.Localize("YEEAAAHHH BBOOIIIIIIIII") )
else
test_counter = test_counter + 1
TestValuee:setText( Engine.Localize("CoD.TFOptionIndexes NOT DEFINED FOR: " .. test_counter) )
-- Try again on the next frame
TestValuee:registerEventHandler( "transition_complete_keyframe", function(element, event)
testvalfunc(TestValuee, controller)
end)
TestValuee:beginAnimation("keyframe", 1000, false, false, CoD.TweenType.Linear) -- 1000ms = 1s
end
endEditor is loading...
Leave a Comment