1 - Coloring the durability
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
| User | When | Change |
|---|---|---|
| Skully | Wed, 11 Mar 2009 11:22:55 | Create |