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"
}