| 10-08-2009, 08:28 PM | #1 |
Hi.. Somehow I can'T manage to let this work: 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))) Edit: Ok, here are some informations about the TextTag: JASS:
private constant real TT_DEFAULT_AGE = 0.
private ARGB TT_DEFAULT_COLOR
private constant real TT_DEFAULT_FADEPOINT = 0.
private constant boolean TT_DEFAULT_FADES = true
private ARGB TT_DEFAULT_FADE_COLOR
private constant real TT_DEFAULT_FADE_STATE = FADE_MIN
private constant real TT_DEFAULT_FADE_STRENGH = 0.75
private constant string TT_DEFAULT_FADE_TYPE = FADE_TYPE_OUT
private constant boolean TT_DEFAULT_FADING = false
private constant texttag TT_DEFAULT_HANDLE = null
private constant real TT_DEFAULT_LIFESPAN = 0.
private constant boolean TT_DEFAULT_PERMANENT = true
private constant real TT_DEFAULT_OFFSETX = 0.
private constant real TT_DEFAULT_OFFSETY = 0.
private constant real TT_DEFAULT_OFFSETZ = 0.
private constant real TT_DEFAULT_POSX = 0.
private constant real TT_DEFAULT_POSY = 0.
private constant real TT_DEFAULT_POSZ = 0.
private constant real TT_DEFAULT_SIZE = 7.5 * 0.023 / 10
private constant boolean TT_DEFAULT_SUSPENDED = false
private constant string TT_DEFAULT_TEXT = ""
private constant real TT_DEFAULT_VELX = 0.
private constant real TT_DEFAULT_VELY = 0.
private constant boolean TT_DEFAULT_VISIBILITY = true
|
| 10-09-2009, 06:02 PM | #2 |
Alpha channel doesn't work on texttags unless it is under these specific settings: JASS:call SetTextTagPermanent(tt.mTextTag, true) call SetTextTagSuspended(tt.mTextTag, true) |
| 10-09-2009, 08:17 PM | #3 |
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 |
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 |
I will check this too... |
