guitextctrl: members
5 implemented, 0 reserved. Entries are sorted by name.
Implemented
Section titled “Implemented”gettext
Section titled “gettext”guitextctrl.gettext() -> string
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
The text of a text edit or markup text control, as stored.
echo(Edit.getText());Specification: gui.md§3.
maxchars
Section titled “maxchars”guitextctrl.maxchars: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Longest text the player can type; 255 by default and 0 for no limit.
new GuiTextCtrl("MyControl") { maxchars = 20; }Specification: gui.md§3.11.
settext
Section titled “settext”guitextctrl.settext(text: string) -> number
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
Replaces the text of a text edit; the caret goes to the end.
Edit.setText("hello");Specification: gui.md§3.
stylesection
Section titled “stylesection”guitextctrl.stylesection: string
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Name of the part of the GUI style the text color comes from; kept without GUI styles.
new GuiTextCtrl("MyControl") { stylesection = "Clock"; }Specification: gui.md§3.11.
guitextctrl.text: string
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
The text the control shows.
new GuiTextCtrl("MyControl") { text = "Hello"; }Specification: gui.md§3.
Engine version 0.1.0. Built 2026-11-18.