Originally Posted by defkon
is there anyway to turn the whole button red when a spell target is out of range. if so how do you do it? also, how do you make a UF dim when someone is out of healing range?
|
You'll want to use a 'conditional alpha' flag for the dimming of the unit frame. You set the alpha values for true/false, along with the variable you want to use to determine the true/false state, and then apply that conditional alpha to the frame.
Healing spells all have a range of 40yrds. If you look in the 'Builtin' folder, you will see a number of range based flags that you can use.
For the button, you could put a border around the button, and then use the same type of conditional alpha flag to color the border. You could also put in a background shader and do the same type of thing with the background. (assuming the button is smaller than the background so that you can see the background changing color)
= F