- Joined
- Sep 9, 2007
- Messages
- 6,759
Hey, even if I change the TexTag alpha, I can not hide it!
here are the texttag values:
here are the ARGBS:
And here is the thing that doesn'T work.
Even if the color.alpha is 0, the texttag is still displayed.
here are the texttag values:
JASS:
private constant real TT_DEFAULT_AGE = 0.
private constant real TT_DEFAULT_ANGLE = 90.
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 real TT_DEFAULT_SPEED = 10 * (0.071 / 128)
private constant boolean TT_DEFAULT_SUSPENDED = false
private constant string TT_DEFAULT_TEXT = ""
private constant real TT_DEFAULT_VELX = TT_DEFAULT_SPEED * Cos(TT_DEFAULT_ANGLE * bj_DEGTORAD)
private constant real TT_DEFAULT_VELY = TT_DEFAULT_SPEED * Sin(TT_DEFAULT_ANGLE * bj_DEGTORAD)
private constant boolean TT_DEFAULT_VISIBILITY = true
here are the ARGBS:
JASS:
set TT_DEFAULT_COLOR = ARGB.create(255, 255, 255, 255)
set TT_DEFAULT_FADE_COLOR = ARGB.create(0, 255, 255, 255)
And here is the thing that doesn'T work.
JASS:
//: Lets actually fade the texttag now!
set color = ARGB.mix(.Color, .FadeColor, .FadeState)
call SetTextTagColor(.Handle, color.red, color.green, color.blue, color.alpha)