One-click Text Input
Extrude Ragu
I propose adding a new click action, CLICK_ACTION_TEXT_INPUT
When an object with this attribute is clicked,
A floating textbox will appear in the center of the user's screen.
The textbox will be focused so the user can begin typing immediately.
The contents of the textbox will be whatever hovertext (ie. llSetText) for that link is set to.
Once the user presses enter to submit, we will get a CHANGED_TEXT event. The text will be stored in Hovertext in whatever color/alpha was previously set (default transparent). We will retrieve the text with the existing llGetText function
This solves a few problems at once:-
- The existing llTextBox is too clunky to use for frequent text inputs, requiring the user to focus the box each time, which appears in an unintuitive location.
- Gets rid of the need for listeners and timers to close listeners for text input which often lead to user frustration
- Gets rid of the need to bring user input immediately into memory
It makes it practical to do huds that take text input like
- Live Product/Community search huds
- HEX inputs
- Noticeboard Systems
With SLua's release getting closer I think this feature would also pair particularly well with
Martin Pitts NexiiText - Which can do proper text rendering on a prim with proper kerning etc.
My personal desire is to make a mini editable wiki directly in SL using this feature request combined with NexiiText 😊
Log In