File tree 2 files changed +6
-6
lines changed
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)
47
47
end
48
48
49
49
local 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 ()
51
53
local rarity = id and GetInventoryItemQuality (' player' , id )
52
54
if rarity and rarity > 1 then
53
55
local r , g , b = GetItemQualityColor (rarity )
@@ -245,8 +247,6 @@ function S:CharacterFrame()
245
247
slot :SetTemplate (nil , true , true )
246
248
slot :StyleButton ()
247
249
248
- slot .characterSlot = true -- for color function
249
-
250
250
S :HandleIcon (icon )
251
251
icon :SetInside ()
252
252
Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ local function ReputationFrameUpdate()
42
42
end
43
43
44
44
local 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 ()
46
48
local rarity = id and GetInventoryItemQuality (' player' , id )
47
49
if rarity and rarity > 1 then
48
50
local r , g , b = GetItemQualityColor (rarity )
@@ -156,8 +158,6 @@ function S:CharacterFrame()
156
158
slot :SetTemplate (nil , true , true )
157
159
slot :StyleButton ()
158
160
159
- slot .characterSlot = true -- for color function
160
-
161
161
S :HandleIcon (icon )
162
162
icon :SetInside ()
163
163
You can’t perform that action at this time.
0 commit comments