HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

ARGB Problem.

10-08-2009, 08:28 PM#1
Anachron
Hi.. Somehow I can'T manage to let this work:

Collapse JASS:
set color = ARGB.mix(.Color, .FadeColor, .FadeState)
call SetTextTagColor(.handle, color.red, color.green, color.blue, color.alpha)
                    
call BJDebugMsg("Alpha: " + color.str(I2S(color.alpha)))
The text tag and text will never be hidden, even if alpha is 0.

Edit: Ok, here are some informations about the TextTag:
Expand JASS:
10-09-2009, 06:02 PM#2
TheSpanishInquisition
Alpha channel doesn't work on texttags unless it is under these specific settings:
Collapse JASS:
        call SetTextTagPermanent(tt.mTextTag, true)
        call SetTextTagSuspended(tt.mTextTag, true)
10-09-2009, 08:17 PM#3
Anachron
Cool, thanks! I did a workaround with Permanent = false and faded it out by setting age and lifespan.
10-09-2009, 09:05 PM#4
TheSpanishInquisition
It might also be worth mentioning that texttags won't fade if they are more than 10,000 away from the camera.

If you've worked with aligning texttags to the screen you'll understand how this applies. Normally my screen aligned texttags are 999999 away from the camera eye, when they fade they must be adjusted to be only 10000 away or they just disappear. The shorter distance makes their update jumpy, can't really explain why.
10-09-2009, 09:23 PM#5
Anachron
I will check this too...