1. #1
    High Overlord Link Sunstrider's Avatar
    Join Date
    Apr 2013
    Location
    Venezuela
    Posts
    163

    Question Tidy Plates & !ClassColors

    Hello MMOChamp, I was wondering if there's any skilled coder here that could help me with the following, I'm trying to make Tidy Plates addon to read the CUSTOM_CLASS_COLOR table from ClassColors addon which is a class color changer for all the UI...

    Is there any what to achieve it? I'm asking to check into Tidy Plate's code (I think the clue is in TidyPlatesCore.lua file) to update or change whatever needs to be changed to achieve this.

    Here are the links to the addons
    Tidy Plates
    ClassColors

    Any help would be appreciated.
    Thanks in advance,
    Link

    - - - Updated - - -

    Anyone?
    Last edited by Link Sunstrider; Yesterday at 08:57 PM.
    "Before the curse I was a warrior, weak among my peers but swifter than everyone of them.
    The first time I woke up as a Worgen, Genn restored my honor, I knew I was finally free to join the shadows as a Rogue.
    I would follow Genn to the abyss of the Maelstrom and beyond, this time as a free beast."

  2. #2
    The Patient Ketho's Avatar
    Join Date
    Jan 2011
    Location
    The Netherlands
    Posts
    287
    Quote Originally Posted by Link Sunstrider View Post
    Is there any what to achieve it? I'm asking to check into Tidy Plate's code (I think the clue is in TidyPlatesCore.lua file) to update or change whatever needs to be changed to achieve this.
    Isn't Tidy Plates already supporting !ClassColors?...

    TidyPlatesHub\functions\Core.lua line 317
    Code:
    local function ApplyThemeCustomization(theme)
    	[...]
    	RaidClassColors = CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS
    end

    Otherwise change this in TidyPlates\TidyPlatesCore.lua line 572
    Code:
    	-- Class Color Lookup Table
    	local ClassReference = {}
    	do
    		for classname, color in pairs(CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS) do
    			local r, g, b = color.r, color.g, color.b
    			local colorstring = ColorToString(r, g, b)
    			ClassReference[colorstring] = classname
    		end
    		ClassReference["C010060"] = "MONK"
    	end

    You might need to do a /reload after changing anything in ClassColors, since it does not register a callback on CUSTOM_CLASS_COLORS
    Last edited by Ketho; Yesterday at 11:13 PM.

  3. #3
    High Overlord Link Sunstrider's Avatar
    Join Date
    Apr 2013
    Location
    Venezuela
    Posts
    163
    Quote Originally Posted by Ketho View Post
    Isn't Tidy Plates already supporting !ClassColors?...

    TidyPlatesHub\functions\Core.lua line 317
    Code:
    local function ApplyThemeCustomization(theme)
    	[...]
    	RaidClassColors = CUSTOM_CLASS_COLORS
    end

    Otherwise change this in TidyPlates\TidyPlatesCore.lua line 572
    Code:
    	-- Class Color Lookup Table
    	local ClassReference = {}
    	do
    		for classname, color in pairs(CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS) do
    			local r, g, b = color.r, color.g, color.b
    			local colorstring = ColorToString(r, g, b)
    			ClassReference[colorstring] = classname
    		end
    		ClassReference["C010060"] = "MONK"
    	end

    You might need to do a /reload after changing anything in ClassColors, since it does not register a callback on CUSTOM_CLASS_COLORS
    The trick was in the TidyPlatesHub\functions\Core.lua line 317

    Thank you very much, you helped me a lot. Love it!
    "Before the curse I was a warrior, weak among my peers but swifter than everyone of them.
    The first time I woke up as a Worgen, Genn restored my honor, I knew I was finally free to join the shadows as a Rogue.
    I would follow Genn to the abyss of the Maelstrom and beyond, this time as a free beast."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •