Bar Invert Color option seems incorrect #1530


  • Defect
Open
  • Ali1331 created this issue Oct 24, 2020

    I've been trying to get my health bars where the health statusbar is a static colour and the deficit is the class colour, but it seems that when I enable "Invert color" to flip the static background with the class coloured health bar for the desired effect, the entire frame ends up class coloured. 

     

    I've narrowed this down to an issue with the alpha calculation for the status bar when invert is selected. Line 207 of modules\units.lua (SetBlockColor) is where the colour inversion happens but it seems to reverse the alpha value of the background. This turns a solid background colour (to be used as a solid health bar colour under the invert mode) into a fully transparent colour, meaning just the class coloured background remains.

     

    I'm not sure of the reason for reversing the alpha value, maybe it's a leftover bug from a time when alpha was handled dffferently?

     

    Thanks

  • Ali1331 added a tag Defect Oct 24, 2020
  • Ali1331 posted a comment Oct 24, 2020

    There is a workaround for this btw, where you can set the 'override' bar colour to fully transparent, and the code described will reverse that to fully solid :)


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