You
could use:
PHP Code:
new GuiTextEditCtrl("Test") {
profile = GuiBlueTextEditProfile;
x = 10;
y = 10;
width = 100;
height = 20;
}
function Test.onAction() {
player.chat = Test.gettext();
}
/* .onAction() gets called once the Enter key is pressed inside the GuiTextEditCtrl, .gettext() gets the Text inside it. */
Hope it helped, you may want to check the Wiki, it has a nice documentation about GUIs, wiki.graal.net