To do that I tried this:
Code: Select all
gui.center.add{type = "textfield", name = "texboxname", text = {"gui.placeholder-text"}}
Code: Select all
gui.center.add{type = "textfield", name = "texboxname", text = "placeholder"}
it does add the string "placeholder" in the textbox.
I also tried this:
Code: Select all
d.gui.center.add{type = "textfield", name = "textboxname"}
placeholder = {"gui.placeholder-text"}
d.gui.center.textboxname.text = placeholder
any ideas?