Dynamic hotspot tooltip text

Posted by Twisol on Tue 14 Apr 2009 05:25 AM — 3 posts, 12,144 views.

USA #0
I have a simple question: Is it possible to set a hotspot's text sometime after it was created, possibly even when it's rolled over? For example, I have a plugin that creates a map, and each character is at a certain location on a 'grid'. Each cell has its own hotspot, and if the cell contains a room symbol ( # ), the tooltip should contain that room's area coordinates. The problem is, when the character moves, the map changes and the tooltip text is probably very wrong. I'd like to be able to set the hotspot text without having to recreate all of them.

(Note: I'd also rather be spared the pain of creating my own tooltip-style window to do this, since tooltips are already implemented for me)

Thanks in advance for any advice you can give me!


EDIT: Also, is there any sort of dedicated MUSHclient IRC channel? If there isn't, I'd definitely be interested in starting one...
Amended on Tue 14 Apr 2009 05:46 AM by Twisol
Australia Forum Administrator #1
You might want to consider not using the tooltip text, but instead use windows as described here:

http://www.gammon.com.au/forum/?id=8947


I used that in an inventory plugin I wrote, see this thread:

http://www.gammon.com.au/forum/?id=8936

In that, the inventory items could change dynamically, so rather than changing the hotspot information, the mouseover event popped up a new information window. This lets you dynamically update, and also have different colours, multiple lines, etc.
Australia Forum Administrator #2
Added the ability to change the tooltip text to version 4.41.