A text box is a simple device that allows the player to type information into
your game. Adding a text box works like adding the other types of control.
If a text box is on a currently displayed GUI, all standard keypresses (ie.
letter keys, return and backspace) are diverted to the textbox instead of
being passed to the on_key_press function. When the player presses Return in
the text box, the OnActivate event is called. You can then use the TextBox.Text
property to retrieve what they typed in.
|