Since 1.5 came out I noticed that now the mouse click event is triggered by clicking on the minimap too.
It will fire like if the mouse was clicked at the location where the minimap points to.
if someone is using the minimap just for moving this is a total nonsense because it could cause unwanted triggers to fire.
That's what I wrote down in the last 2 rows.
I can get coordinates with my resolution and prevent that, however I don't know if it will work on any resolution.
You could try detecting the actual target of what ever is being kicked off
for example.... is the position of the click on the map the same as where the triggered ability is being trargeted at.
Say i have a mouse click trigger that just issues an order to my selected unit.
the trigger just does a ... order unit to move to point
now are the x,y click coords the same as the target point of order coords......
In the past Ive found that the mouse click will only give coords where valid terrain exists... This prevents me from using mouse x,y's in one of my maps....
Since 1.5 came out I noticed that now the mouse click event is triggered by clicking on the minimap too.
It will fire like if the mouse was clicked at the location where the minimap points to.
if someone is using the minimap just for moving this is a total nonsense because it could cause unwanted triggers to fire.
My question is: how do I disable this shit?
Looking at this thread where someone tried to do the opposite
http://www.sc2mapster.com/forums/development/triggers/19738-solved-detect-mouse-clicks-through-minimap/#p1
I disabled the UI mouseclick by editing the layout but it disables minimap movements by click (and I don't want to)
I tought to use the UI click position but I'm not sure if I can get the correct minimap UI position through all kind of screen resolutions.
Can you get coordinates of where minimap is located + mouse position on screen.
Sounds like a deal what can be solved with couple conditions that prevent it from running if its clicked where mouse position is.
(not too sure though, since I havent used mouse events that much)
@zenx1: Go
That's what I wrote down in the last 2 rows.
I can get coordinates with my resolution and prevent that, however I don't know if it will work on any resolution.
bump?
@Bibendus: Go
You could try detecting the actual target of what ever is being kicked off
for example.... is the position of the click on the map the same as where the triggered ability is being trargeted at.
Say i have a mouse click trigger that just issues an order to my selected unit.
the trigger just does a ... order unit to move to point
now are the x,y click coords the same as the target point of order coords......
In the past Ive found that the mouse click will only give coords where valid terrain exists... This prevents me from using mouse x,y's in one of my maps....