Quantcast

Re-wrote addon:hexcolor() to use a table, with its values prepended by "|cff", instead of a large if-else chain.

Author torhal <torhal@dummy.example.com>
Author date 2010-02-14 07:19:24
Author local date 2010-02-14 07:19:24 +0000
Committer torhal <torhal@dummy.example.com>
Committer date 2010-02-14 07:19:24
Committer local date 2010-02-14 07:19:24 +0000
Commit 461a1bee39c35b1c8f742bc45a08869551704abb
Tree 76d61e962b25389ff932c7a753da997f02a4ade5
Parent 522ae8cee1f645e4424aa07f3dbc5c13fbe37929
Re-wrote addon:hexcolor() to use a table, with its values prepended by "|cff", instead of a large if-else chain.
In ttAdd(): Removed "|cff" since it's now automatically included in the color codes which are passed to it.
In GenerateTooltipContent() and MainPanel.scroll_frame:Update() - in the WORLD_DROP acquire type section - replaced colorizing by the acquire ID with colorizing by the recipe's quality. The acquire ID in this case was also the rarity, and should be replaced by something more useful. This also fixes an inconsistency between how the two functions handled the colorizing.