Skip to content

Commit

Permalink
Remove debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
Phanx committed Apr 28, 2018
1 parent 32545b9 commit 77294cf
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions !ClassColorsBlizz/ClassColorsBlizz.lua
Original file line number Diff line number Diff line change
Expand Up @@ -781,21 +781,6 @@ end)
-- --> self:GetMap():SetPinTemplateType("GroupMembersPinTemplate", "UnitPositionFrame")
-- --> WorldMapUnitPositionFrame (FrameXML/WorldMapFrame.xml)

local function UnitPositionFrameMixin_AddUnitInternal(self, timeNow, unit, appearanceData, callAtlasAPI)
--if unit ~= "player" then
ChatFrame3:AddMessage(string.join(tostringall(" ", "AddUnitInternal", self:GetName():gsub("UnitPositionFrame", ""),
unit, appearanceData.shouldShow, appearanceData.useClassColor)))
--end
local isValid, r, g, b = self:GetUnitColor(timeNow, unit, appearanceData);
if isValid then
if callAtlasAPI then
self:AddUnitAtlas(unit, appearanceData.texture, appearanceData.size, appearanceData.size, r, g, b, 1);
else
self:AddUnit(unit, appearanceData.texture, appearanceData.size, appearanceData.size, r, g, b, 1, appearanceData.sublevel, appearanceData.showRotation);
end
end
end

local function UnitPositionFrameMixin_GetUnitColor(self, timeNow, unit, appearanceData)
if appearanceData.shouldShow then
local r, g, b = 1, 1, 1
Expand All @@ -805,7 +790,7 @@ local function UnitPositionFrameMixin_GetUnitColor(self, timeNow, unit, appearan
local color = class and CUSTOM_CLASS_COLORS[class]
if color then
r, g, b = color.r, color.g, color.b
ChatFrame3:AddMessage(string.join(' ', tostringall('GetUnitColor', unit, class)))
--ChatFrame3:AddMessage(string.join(' ', tostringall('GetUnitColor', unit, class)))
end
end

Expand All @@ -816,11 +801,9 @@ local function UnitPositionFrameMixin_GetUnitColor(self, timeNow, unit, appearan
end

addonFuncs["Blizzard_BattlefieldMinimap"] = function()
--BattlefieldMinimapUnitPositionFrame.AddUnitInternal = UnitPositionFrameMixin_AddUnitInternal
BattlefieldMinimapUnitPositionFrame.GetUnitColor = UnitPositionFrameMixin_GetUnitColor
end

--WorldMapUnitPositionFrame.AddUnitInternal = UnitPositionFrameMixin_AddUnitInternal
WorldMapUnitPositionFrame.GetUnitColor = UnitPositionFrameMixin_GetUnitColor

------------------------------------------------------------------------
Expand Down

0 comments on commit 77294cf

Please sign in to comment.