-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
21 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## Interface: 60200 | ||
## Interface: 70000 | ||
## Version: @project-version@ | ||
|
||
## Title: Class Colors | ||
|
@@ -11,7 +11,7 @@ | |
|
||
## Author: Phanx | ||
## X-Email: [email protected] | ||
## X-Copyright: Copyright (c) 2009-2015 Phanx. All rights reserved. | ||
## X-Copyright: Copyright (c) 2009-2016 Phanx. All rights reserved. | ||
## X-CompatibleLocales: enUS, deDE, esES, esMX, frFR, itIT, koKR, ptBR, ruRU, zhCN, zhTW | ||
## X-Localizations: enUS, deDE, esES, esMX, ptBR, ruRU | ||
## X-Website: https://github.com/Phanx/ClassColors | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
### Version 7.0.3.0 | ||
|
||
* Updated for WoW 7.0 (Legion) | ||
|
||
### Version 6.2.2.0 | ||
|
||
* Updated for WoW 6.2.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--[[-------------------------------------------------------------------- | ||
!ClassColors | ||
Change class colors without breaking the Blizzard UI. | ||
Copyright (c) 2009-2015 Phanx <[email protected]>. All rights reserved. | ||
Copyright (c) 2009-2016 Phanx <[email protected]>. All rights reserved. | ||
http://www.wowinterface.com/downloads/info12513-ClassColors.html | ||
http://www.curse.com/addons/wow/classcolors | ||
----------------------------------------------------------------------]] | ||
|
@@ -488,4 +488,4 @@ do | |
end | ||
end | ||
|
||
------------------------------------------------------------------------ | ||
------------------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--[[-------------------------------------------------------------------- | ||
!ClassColors | ||
Change class colors without breaking the Blizzard UI. | ||
Copyright (c) 2009-2015 Phanx <[email protected]>. All rights reserved. | ||
Copyright (c) 2009-2016 Phanx <[email protected]>. All rights reserved. | ||
http://www.wowinterface.com/downloads/info12513-ClassColors.html | ||
http://www.curse.com/addons/wow/classcolors | ||
----------------------------------------------------------------------]] | ||
|
@@ -656,22 +656,22 @@ end | |
-- Blizzard_TradeSkillUI.lua | ||
|
||
addonFuncs["Blizzard_TradeSkillUI"] = function() | ||
local TRADE_SKILL_GUILD_CRAFTERS_DISPLAYED = TRADE_SKILL_GUILD_CRAFTERS_DISPLAYED | ||
local FauxScrollFrame_GetOffset, TradeSkillGuildCraftersFrame = FauxScrollFrame_GetOffset, TradeSkillGuildCraftersFrame | ||
local GetGuildRecipeInfoPostQuery, GetGuildRecipeMember = GetGuildRecipeInfoPostQuery, GetGuildRecipeMember | ||
hooksecurefunc(TradeSkillFrame.DetailsFrame.GuildFrame, "Refresh", function(self) | ||
if self.waitingOnData then return end | ||
|
||
hooksecurefunc(TradeSkillGuilCraftersFrame_Update and "TradeSkillGuilCraftersFrame_Update" or "TradeSkillGuildCraftersFrame_Update", function() | ||
local _, _, numMembers = GetGuildRecipeInfoPostQuery() | ||
local offset = FauxScrollFrame_GetOffset(TradeSkillGuildCraftersFrame) | ||
for i = 1, TRADE_SKILL_GUILD_CRAFTERS_DISPLAYED do | ||
if i > numMembers then | ||
local offset = FauxScrollFrame_GetOffset(self.Container.ScrollFrame) | ||
for i, craftersButton in ipairs(self.Container.ScrollFrame.buttons) do | ||
local dataIndex = offset + i | ||
if dataIndex > numMembers then | ||
break | ||
end | ||
local _, class, online = GetGuildRecipeMember(i + offset) | ||
|
||
local _, _, class, online = GetGuildRecipeMember(i + offset) | ||
if class and online then | ||
local color = CUSTOM_CLASS_COLORS[class] | ||
if color then | ||
_G["TradeSkillGuildCrafter"..i.."Text"]:SetTextColor(color.r, color.g, color.b) | ||
craftersButton.Text:SetTextColor(color.r, color.g, color.b) | ||
end | ||
end | ||
end | ||
|
@@ -706,4 +706,4 @@ if numAddons > 0 then | |
self:SetScript("OnEvent", nil) | ||
end | ||
end) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--[[-------------------------------------------------------------------- | ||
!ClassColors | ||
Change class colors without breaking the Blizzard UI. | ||
Copyright (c) 2009-2015 Phanx <[email protected]>. All rights reserved. | ||
Copyright (c) 2009-2016 Phanx <[email protected]>. All rights reserved. | ||
http://www.wowinterface.com/downloads/info12513-ClassColors.html | ||
http://www.curse.com/addons/wow/classcolors | ||
----------------------------------------------------------------------]] | ||
|