Broker_Durability

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

You must login to post a comment. Don't have an account? Register to get one!

Facts

Last updated on
11 Mar 2009
Reported on
11 Mar 2009
Status
New - Issue has not had initial review yet.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.

Reported by

Possible assignees