mouse cursor over object displays non-blocking message that is removed when mous

Started by ggss, Mon 29/11/2004 23:10:36

Previous topic - Next topic

ggss

When the mouse cursor moves over a hotspot or other object of some sort, I want to display a NON-BLOCKING message that disappears when the mouse is moved away from the hotspot or object.Ã,  I have tried various different ways, but nothing that is perfect, yet.Ã,  I thought that maybe RawPrint works ok, and then when the mouse moves away, I replace that area with a RawDrawImage that covers the RawPrint message, but the problem with doing it that way, is that I have to have a different sprite image for every on-mouse-over I want to do. This is very time consuming and tedious. Can anyone help. It must be NON-BLOCKING.
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Thank you

Radiant

Easiest way is to create a (non-clickable) GUI that is transparent and has just a single label to it, and set that label's text accordingly.

Ashen

Just to add to what Radiant said (since I'd already typed this out):
1) What would the message say? Would it just be the name of the object / hotspot?
2) Where do you want it to pop up?

If I'm right about 1), the easiest way is to use a GUI label set to @OVERHOTSPOT@. Provided you set the GUI background & foreground colours to transparent (colour = 0), it will be invisible the rest of the time. Now, if you want the message to always appear at the same place on the screen, just set the GUI co-ordinates and you're good to go. If you want it to move (e.g. to appear above the object/hotspot, or follow the mouse) you'll need to do some scripting - what exactly, depends on what you want to happen.

If I'm wrong about 1) - what should it say?

Either way, if you need more help, you'll have to be more specific about what you want to happen.
I know what you're thinking ... Don't think that.

gggss

Thanks Ashen and Radiant. Don't know why I couldn't think of that myself. Transparent Gui's are a good idea. I used the @OVERHOTSPOT@ and it works good. It displays the object names Ã, and the character names too. Sorry about the delay in thanking you, but I use public access terminals here in Canada. Thanks again.

SMF spam blocked by CleanTalk