This is a quick little module I made for the AGS Awards client. It provides one-line text input fields, as a replacement for the AGS TextInput control.
Ways in which TextField is better than TextInput:-It has a blinking text cursor
-You can position the cursor anywhere in the text (using mouse or arrow keys), and edit at that point
-It has a notion of focus, so that you can have multiple TextFields displayed without all the text being entered into all the fields
-You can define a max string length the field will accept
-You can make the border partially transparent
-You can add more advanced logic to it, e.g. to only accept certain character types, or to *** out the display of the text
Ways in which TextField is worse than TextInput:-It's implemented in script, so on slow computers or in a resource-intensive game it could be less responsive than TextInput
-You have to do a little bit of setup to make it work
-You can't link the OnActivate event, so it's a little more complicated to respond when the player presses Return/Enter
The TextField module is available on
Github.
Download TextField v1.2.0You can also try it out in a demo game for the Clipboard plugin:
Download Clipboard DemoChangelog:1.2.0- Fixes crash if TextField initialized with non-empty String
- Adds support for
Clipboard plugin1.1.0- Initial release
- Fixes poor SHIFT-key detection
1.0.0
- Unreleased (used in AGS Awards 2017 client)