Skip to content

Commit

Permalink
huh
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Apr 13, 2024
1 parent 19906ae commit e3a1d2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ElvUI/Cata/Modules/Skins/Character.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ local function TitleManagerPane_Update(frame)
end

local function PaperDollItemSlotButtonUpdate(frame)
local id = frame.characterSlot and frame:GetID()
if not frame.SetBackdropBorderColor then return end

local id = frame:GetID()
local rarity = id and GetInventoryItemQuality('player', id)
if rarity and rarity > 1 then
local r, g, b = GetItemQualityColor(rarity)
Expand Down Expand Up @@ -245,8 +247,6 @@ function S:CharacterFrame()
slot:SetTemplate(nil, true, true)
slot:StyleButton()

slot.characterSlot = true -- for color function

S:HandleIcon(icon)
icon:SetInside()

Expand Down
6 changes: 3 additions & 3 deletions ElvUI/Classic/Modules/Skins/Character.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ local function ReputationFrameUpdate()
end

local function PaperDollItemSlotButtonUpdate(frame)
local id = frame.characterSlot and frame:GetID()
if not frame.SetBackdropBorderColor then return end

local id = frame:GetID()
local rarity = id and GetInventoryItemQuality('player', id)
if rarity and rarity > 1 then
local r, g, b = GetItemQualityColor(rarity)
Expand Down Expand Up @@ -156,8 +158,6 @@ function S:CharacterFrame()
slot:SetTemplate(nil, true, true)
slot:StyleButton()

slot.characterSlot = true -- for color function

S:HandleIcon(icon)
icon:SetInside()

Expand Down

0 comments on commit e3a1d2b

Please sign in to comment.