Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Miniwindows ➜ Dynamic hotspot tooltip text

Dynamic hotspot tooltip text

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Twisol   USA  (2,257 posts)  Bio
Date Tue 14 Apr 2009 05:25 AM (UTC)

Amended on Tue 14 Apr 2009 05:46 AM (UTC) by Twisol

Message
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...

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 14 Apr 2009 09:37 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #2 on Tue 23 Jun 2009 10:54 PM (UTC)
Message
Added the ability to change the tooltip text to version 4.41.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,808 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.