This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
I know that getText has been added.
--[[
Update action text of current language with new text
Written by AFRLme [Lee Clarke]
--]]
-- * function which updates the action text of an object for the current language * --
function setText(obj, txt)
local texts = obj.TextTextLanguages -- get all texts belonging to the object
-- + --
for i = 1, #texts do -- iterate through the stored texts
if texts[i].language == game.StandardLanguage:getId().id then
texts[i].text = txt; obj.TextTextLanguages = texts -- update old text with new text
break -- no need to keep iterating, cancel the loop
end
end
end
setText(Buttons["use"], "new text")
This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.
New threadDeponia, The Whispered World and more than 160 other games were made with Visionaire Studio. The free version covers up to 25 scenes. For more scenes there is Visionaire Studio PRO from €75, and to sell your game the Indie Bundle for €99.
Until December 1: the Indie Bundle is 30% off with the code BLACKFRIDAY, €69.30 instead of €99.