• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Texttag problem with alpha Colour.

Status
Not open for further replies.
Hey, even if I change the TexTag alpha, I can not hide it!

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)
Even if the color.alpha is 0, the texttag is still displayed.
 
Level 6
Joined
Oct 31, 2008
Messages
229
I'm not sure but i think that expects a valule in percentage. Try to use the BJ, maybe it works this way. I also hade a problem, where native didnt work, but bj did good (sound rare but...)

BTW in most cases, alpha is the last after rgb i think
 
Status
Not open for further replies.
Top