Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Viewer code: LLViewerObject and hover text

Penny Edman
Registered User
Join date: 20 Mar 2009
Posts: 2
03-20-2009 22:53
I hope this is the right place to put this question. If someone can suggest a better place, please let me know.

I'm trying to understand the viewer source code a bit better, and I'm stumped trying to figure something out. Objects rendered by the viewer seem to be of type LLViewerObject, and objects can have hover text set on them. So, I assume there's probably some way that the text is connected to the LLViewerObject, but I can't figure out how. Could someone give me an example of referencing an object's hover text using an instance of LLViewerObject object?

Something like:

LLViewerObject obj;
obj->mText????
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
03-21-2009 00:35
From what I can tell, mText is the text, but it's an instance of LLHUDText, which doesn't have a public accessor or whatever for the text string. You can find mText being set in LLViewerObject::processUpdateMessage, but the same text is reused as debug text (LLViewerObject::setDebugText) if you turn on something like Info Displays > Texture Priority.

The best place I know for this question is SLDev (https://lists.secondlife.com/cgi-bin/mailman/listinfo/sldev), it would be awesome if there were more questions about stuff like this there :)
_____________________
Penny Edman
Registered User
Join date: 20 Mar 2009
Posts: 2
03-22-2009 21:09
I posted my question to the dev mailing list. Hopefully someone there can help. Thanks for the suggestion.