818 B
818 B
changeText
Changes the text while animation is running
Parameters:
tablemultiple text strings - example: {"i", "am", "groot"}numberduration in secondsnumbertime - time when this part should begin (offset to when the animation starts - default 0)...multiple text strings - example: "i", "am", "groot"
Returns:
animationAnimation in use
Usage:
local mainFrame = basalt.createFrame()
local testButton = mainFrame:addButton("buttonToAnimate")
local aAnimation = mainFrame:addAnimation():setObject(testButton):changeText(2, 0, "i", "am", "groot"):play()
<animation object="buttonToAnimate" play="true">
<text>
<text>i</text>
<text>am</text>
<text>groot</text>
<duration>2</duration>
</text>
</animation>