Coloring the durability #1


  • New
  • Enhancment
Open
Assigned to _ForgeUser127388
  • _ForgeUser12531 created this issue Mar 11, 2009

    Here some code for myself to add coloring. (0% = red, 100% = green)

    self.text = format( "|cff%.2x%.2x00%i%%|r",
            total < .5 and 255 or 510 - total*510,
            total < .5 and total*510 or 255,
            total*100)
        self.value = self.text

  • _ForgeUser12531 added the tags New Enhancment Mar 11, 2009

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