I am implementing a simple multiplayer game and I tried to add the “typical-one-line-chat” funtionality:
- player hits TAB -> text field appears to the bottom
- player enters text and hits RETURN -> text field disappears
At the same time player can still look around with mouse.
I tried to do this by attaching Lemur TextField to GuiNode when player presses the TAB. The problem is that don’t know how to automatically give it focus. Now it requires player to select the TextField with mouse pointer, which is a problem as mouse pointer is disabled.
All tips on how to solve this are welcome!