• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[JASS] Mouse Selection Question

Status
Not open for further replies.
Level 1
Joined
Aug 16, 2004
Messages
1
Is there a way to disable the user from being able to drag a box and selecting a group of units? I also want to be able to remove the single selection ring that appears around units when the user has one selected.

Thanks for info

-David G.
 
Level 3
Joined
Mar 27, 2004
Messages
70
I think you can remove the selection circle by setting Selection Size (or something like that) to 0.00 in the Object Editor for all units. If course, if you want to turn it on and off again, that wouldn't be an ideal solution.

There is an object called a trackable, which was never used by blizzard or implemented in GUI and it has a very limited API available.
Nevertheless, its main function is to detect mouse clicks and mouse movement, but one of its side-effects is that it actually prevents one from drawing a selection box on top of it.
It may be the solution, or it may not - you can read in detail about it here: Trackables.
 
Status
Not open for further replies.
Top