• Civilization 7 has been announced. For more info please check the forum here .

SetText() on a Radio Button

whoward69

DLL Minion
Joined
May 30, 2011
Messages
8,704
Location
Near Portsmouth, UK
Radio buttons have no SetText() method

Code:
<RadioButton ID="Radio" String="Some text" RadioGroup="RadioGroup"/>

Controls.Radio:SetText("New text")

gives an "attempt to call method 'SetText' (a nil value)" error

You need to use

Code:
Controls.Radio:GetTextButton():SetText("New text")

Also works for check boxes.
 
Top Bottom