This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
[BUG-100720] Feature Request: New function, llSetLinkMouseoverText() applies a prim property that triggers a tooltip popup when hovering mouse over a prim link that contains a touch event. #250
Labels
Information
This feature request is for a new prim property and a the following function:
llSetLinkMouseoverText(integer link_num, string text, string face_delimiter);
This applies the text and face_delimiter values as prim properties to link, link_num.
When you mouse over a prim that has a touchevent and the mouse icon changes to a clicking hand, 0.5 - 1.0 seconds later, mouseover text is read and delimited. The list element corresponding to the link face number you are mousing over will show in a popup unless the text is a null string.
example:
When mousing over a link with mouseover text, "0,1,2,3,4" and a face_delimiter of ",", a popup will occur containing the text, "2" if you are hovering over face 2. No popup will occur if you are hovering over an unknown face, if the face number exceeds the list length or if the delimited text is a null string.
A delimiter is necessary so we have link face mouseover feedback capability with mesh objects and in case commas are needed in the actual popup text and to prevent implementing a function that forces set text lengths per face. This way an overall string can be used and divided up as necessary.
A delimited string is also preferred instead of a list in case we get more than 9 face capability with prims in the future.
If delimiter is nullstring, the full text shows no matter which face is hovered over.
Benefits:
HUDs on in-world touch objects can have tooltips for buttons that use icons instead of settext or to give a brief description of what a button does or how it is used.
Other Information
Function can alternatively be named llSetLinkTooltipText().
The text parameter should have a minimum 255 byte limit, with a preferred limit of 1023 bytes.
The face_delimiter parameter can have a 9 byte limit.
There could also be an additional "delay" parameter that allows the creator to tailor how long before the mouseover text displays in case the text is large or intuitive which in both cases could be deemed annoying to the end user with shorter times with repeated or accidental mouseovers.
This feature should also support global use of texture_UUID or equivalent so non-localized(viewer only) textures can be shown in the popup for help aid purposes. Currently only localized textures are supported.
Related to https://jira.secondlife.com/browse/BUG-9916 but that feature requests dedicated start, intermediate and end events which I feel are unnecessary and traffic intensive.
Comments welcome. Thanks in advance for any consideration.
Links
Related
Duplicates
Original Jira Fields
The text was updated successfully, but these errors were encountered: