Code optimization and issue with hyperlinks in chat
View Single Post
10-24-18, 01:37 PM
A Flamescale Wyrmkin
Join Date: Dec 2009
You might find some of the code in Blizzard's Util.lua handy. Notably there is a ColorMixin that converts to Hex, a Clamp function, and a WrapTextInColorCode function.
RAID_CLASS_COLORS also already has the color in hex format as the .colorStr so you can save some computation by using that rather than clamping multiple values and reformatting the result.
View Public Profile
Send a private message to MuffinManKen
Find More Posts by MuffinManKen