Skip to content

Commit

Permalink
Update for 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Phanx committed Jul 23, 2016
1 parent c136c2d commit 0c78ab2
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 31 deletions.
4 changes: 2 additions & 2 deletions !ClassColors.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 60200
## Interface: 70000
## Version: @project-version@

## Title: Class Colors
Expand All @@ -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
Expand Down
13 changes: 0 additions & 13 deletions .gitignore

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
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
Expand Down
4 changes: 2 additions & 2 deletions ClassColors.lua
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
----------------------------------------------------------------------]]
Expand Down Expand Up @@ -488,4 +488,4 @@ do
end
end

------------------------------------------------------------------------
------------------------------------------------------------------------
22 changes: 11 additions & 11 deletions ClassColorsBlizz.lua
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
----------------------------------------------------------------------]]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -706,4 +706,4 @@ if numAddons > 0 then
self:SetScript("OnEvent", nil)
end
end)
end
end
3 changes: 1 addition & 2 deletions LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ Permission is granted for anyone to aggregate this software with other works
not derived from this software for the purpose of creating a user interface
replacement (commonly referred to as a "compilation" or "addon pack") for the
"World of Warcraft" game client, and to distribute such collective works on
websites operated by Curse Inc or ZAM Network LLC (including curse.com,
curseforge.com, wowace.com and wowinterface.com) as long as the software is
the websites at Curse.com and WoWInterface.com, as long as the software is
not modified in any way, including by modifying or removing any files.

This software may not be redistributed by itself or in any other way, in whole
Expand Down
2 changes: 1 addition & 1 deletion Localization.lua
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
----------------------------------------------------------------------]]
Expand Down

0 comments on commit 0c78ab2

Please sign in to comment.