File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ local function TitleManagerPane_Update(frame)
4747end
4848
4949local function PaperDollItemSlotButtonUpdate (frame )
50- local id = frame .characterSlot and frame :GetID ()
50+ if not frame .SetBackdropBorderColor then return end
51+
52+ local id = frame :GetID ()
5153 local rarity = id and GetInventoryItemQuality (' player' , id )
5254 if rarity and rarity > 1 then
5355 local r , g , b = GetItemQualityColor (rarity )
@@ -245,8 +247,6 @@ function S:CharacterFrame()
245247 slot :SetTemplate (nil , true , true )
246248 slot :StyleButton ()
247249
248- slot .characterSlot = true -- for color function
249-
250250 S :HandleIcon (icon )
251251 icon :SetInside ()
252252
Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ local function ReputationFrameUpdate()
4242end
4343
4444local function PaperDollItemSlotButtonUpdate (frame )
45- local id = frame .characterSlot and frame :GetID ()
45+ if not frame .SetBackdropBorderColor then return end
46+
47+ local id = frame :GetID ()
4648 local rarity = id and GetInventoryItemQuality (' player' , id )
4749 if rarity and rarity > 1 then
4850 local r , g , b = GetItemQualityColor (rarity )
@@ -156,8 +158,6 @@ function S:CharacterFrame()
156158 slot :SetTemplate (nil , true , true )
157159 slot :StyleButton ()
158160
159- slot .characterSlot = true -- for color function
160-
161161 S :HandleIcon (icon )
162162 icon :SetInside ()
163163
You can’t perform that action at this time.
0 commit comments