• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Need assistance i can't figure out how to make text appear when hovering over something

Status
Not open for further replies.
Level 3
Joined
Aug 5, 2017
Messages
20
Hi, I'm trying to create signs that will display text to the one hovering over the sign with their mouse. A good example of what i'm talking about is how floor signs work in Origin Z. I only want the text to show for the one hovering over the sign as this will be used for teleporters and having it display constantly doesn't look very good. If anyone knows how you can do this i'd very much appreciate any help you can give me <3.

 
Last edited:
By the picture of it, it seems that the unit is selected and then the text appears?

If this is the case, it is pretty easy to make.

Also I think you can abuse some destructibles and change the name from Cage to something like "Hatchery access level 1".

I think that the easiest way to do this is create destructibles and change their name, make them invulnerable and then when you hover with your mouse it shows the name =)

Hope I helped
 

Attachments

  • WC3ScrnShot_120521_024129_001.png
    WC3ScrnShot_120521_024129_001.png
    3.4 MB · Views: 60
There's a way to get which unit the mouse is focused on but there's no GUI function for it:
vJASS:
BlzGetMouseFocusUnit()
If you need to use GUI you can use Custom script:
  • Custom script: set udg_SomeUnit = BlzGetMouseFocusUnit()
I'm assuming you need to use GetLocalPlayer() to make it work for specific players.

Probably worth reading:
 
Status
Not open for further replies.
Back
Top