[0.12.26] [kovarex] textfield.text not used when adding element
Posted: Sat Mar 12, 2016 2:20 pm
Hey,
during some modding I found the issue that, when I add a textfield to a GUI with the text-attribute set to a string value, the value will not be shown in-game when the GUI is created. The textfield stays empty. If I change the text-attribute then via console command, the new value is instantly displayed in the textfield.
Code to add textfield:
during some modding I found the issue that, when I add a textfield to a GUI with the text-attribute set to a string value, the value will not be shown in-game when the GUI is created. The textfield stays empty. If I change the text-attribute then via console command, the new value is instantly displayed in the textfield.
Code to add textfield:
Code: Select all
table_element.add{
type = "textfield",
name = "rosc-settings-name",
text = "example value"
}