Thanks, the world coords being in real and the UI being int was why I couldn't find it.
Anyhow it's too laggy online so I'm going to do something else. There just doesn't seem to be a non-laggy way to have something following the mouse cursor online.
The mouse already does this; you can get both it's world and UI coordinates
Really? Can you suggest how to get the mouse UI coordinates when I am using a mouse move event? I must be missing something, I couldn't find anything built in for this.
All I want to do is move a dialogue around attached to the mouse cursor while the mouse move event is active,
Out of interest, if you already have the Mouse World Coordinate (from mouse tracking), what is the minimum code required to project this world coordinate to the UI?
I have a dummy unit moving with the mouse, but can't think of a simple way to translate that to the UI.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
No worries thanks, I thought as much just wanted to make sure incase I was doing something wrong :).
If they eventually give us the ability to initiate targetted abilities from triggers it will solve most of my problems.
Does it make a difference online though? I tried it online and it had the same lagginess that using the mousemove event did ;(
Thanks, the world coords being in real and the UI being int was why I couldn't find it.
Anyhow it's too laggy online so I'm going to do something else. There just doesn't seem to be a non-laggy way to have something following the mouse cursor online.
Really? Can you suggest how to get the mouse UI coordinates when I am using a mouse move event? I must be missing something, I couldn't find anything built in for this.
All I want to do is move a dialogue around attached to the mouse cursor while the mouse move event is active,
Out of interest, if you already have the Mouse World Coordinate (from mouse tracking), what is the minimum code required to project this world coordinate to the UI?
I have a dummy unit moving with the mouse, but can't think of a simple way to translate that to the UI.