Unexpected alpha behaviour #1042


Closed
  • Booveh created this issue Sep 3, 2021

    What version of Grid2 and game type (classic or retail) are you using ?

    Retail

     

    What game client version (windows or mac) and language are you using ?

    Windows - English

     

    What steps will reproduce the problem?

    - Full white 'current-health' colour

    - Full red 'background' colour

    - 'alpha' set to anything lower than 1

      
    Did you try having Grid2 as the only enabled addon and everything else disabled?

    Yes. However in my example i have another SharedMedia addon added because it has a perfectly flat bar texture that makes things easier to see.

      

    Was it working in a previous version? If yes, which was the last good one?

    Not sure, only started using Grid2 recently.

     

     

    I've noticed a strange behaviour when the alpha of a unit frame is lowered (regardless of how it is lowered, simply setting the default alpha to anything lower than 1 has the same effect).

     

    With a simple set up as above, where a full health unit, with a full white 'current-health' bar colour, on a bright red 'background', whenever the alpha is lowered, I start to see pink (white+red) instead of what i would have expected which is just a white unit frame still, but with the game background appearing through.

     

     

    The above is the basic setup. Its a 100x100 unit frame, with a 10px white solid border, 10px inner solid border and a white 'current-health' status. I'm in a cave so the background is black.

     

    However when the alpha gets lowered (in the example to 0.5), this is the result

     

     

    The border and inner border behave as I would expected, turning grey; but the 'current-health' goes pink.

     

    Not sure if this is the expected behaviour? Seems like the alpha is being applied to both the 'indicators' area and the unitframe at the same time.

     

    Any help greatly apprecaited.

     

    Cheers

  • michaelsp posted a comment Sep 3, 2021

    This is the normal behaviour of the graphics framework implemented by the game. When the frame alpha is semitransparent, child frames become visible.

    To avoid this behavior:

    1. Setup a transparent or black background for the frame.

    2. Goto the layout tab of the health bar configuration and enable the background in the background section (and assign a red color for this background).

    Example:


    Edited Sep 3, 2021
  • Booveh posted a comment Sep 4, 2021

    Thanks for the reply and the tip; i'll give it a go!

     

    Cheers

     

    Matt

  • Booveh closed issue Sep 4, 2021

To post a comment, please login or register a new account.