@@ -36,36 +36,45 @@ function S:Blizzard_PVPUI()
36
36
37
37
for i = 1 , 4 do
38
38
local bu = _G [' PVPQueueFrameCategoryButton' .. i ]
39
- bu .Ring :Kill ()
40
- bu .Background :Kill ()
41
- S :HandleButton (bu )
42
-
43
- bu .Icon :Size (45 )
44
- bu .Icon :ClearAllPoints ()
45
- bu .Icon :Point (' LEFT' , 10 , 0 )
46
- S :HandleIcon (bu .Icon , true )
39
+ if bu then
40
+ bu .Ring :Kill ()
41
+ bu .Background :Kill ()
42
+ S :HandleButton (bu )
43
+
44
+ bu .Icon :Size (45 )
45
+ bu .Icon :ClearAllPoints ()
46
+ bu .Icon :Point (' LEFT' , 10 , 0 )
47
+ S :HandleIcon (bu .Icon , true )
48
+ end
47
49
end
48
50
49
51
local PVPQueueFrame = _G .PVPQueueFrame
50
- PVPQueueFrame .HonorInset .NineSlice :Hide ()
52
+ local HonorInset = PVPQueueFrame .HonorInset
53
+ HonorInset .NineSlice :Hide ()
54
+
55
+ -- Plunderstorm
56
+ local PlunderstormFrame = _G .PlunderstormFrame
57
+ if PlunderstormFrame then
58
+ PlunderstormFrame .Inset :StripTextures ()
59
+ S :HandleButton (PlunderstormFrame .StartQueue )
60
+ end
61
+
62
+ local PlunderstormPanel = HonorInset .PlunderstormPanel
63
+ if PlunderstormPanel then
64
+ S :HandleButton (PlunderstormPanel .PlunderstoreButton )
65
+ end
51
66
52
67
PVPQueueFrame .CategoryButton1 .Icon :SetTexture (236396 ) -- interface\icons\achievement_bg_winwsg.blp
53
68
PVPQueueFrame .CategoryButton2 .Icon :SetTexture (236368 ) -- interface\icons\achievement_bg_killxenemies_generalsroom.blp
54
69
PVPQueueFrame .CategoryButton3 .Icon :SetTexture (464820 ) -- interface\icons\achievement_general_stayclassy.blp
55
70
56
- local SeasonReward = PVPQueueFrame . HonorInset .RatedPanel .SeasonRewardFrame
71
+ local SeasonReward = HonorInset .RatedPanel .SeasonRewardFrame
57
72
SeasonReward :CreateBackdrop ()
58
73
SeasonReward .Icon :SetInside (SeasonReward .backdrop )
59
74
SeasonReward .Icon :SetTexCoord (unpack (E .TexCoords ))
60
75
SeasonReward .CircleMask :Hide ()
61
76
SeasonReward .Ring :Hide ()
62
77
63
- -- Plunderstorm
64
- local PlunderstormFrame = _G .PlunderstormFrame
65
- PlunderstormFrame .Inset :StripTextures ()
66
- S :HandleButton (PlunderstormFrame .StartQueue )
67
- S :HandleButton (_G .PVPQueueFrame .HonorInset .PlunderstormPanel .PlunderstoreButton )
68
-
69
78
-- Honor Frame
70
79
local HonorFrame = _G .HonorFrame
71
80
HonorFrame :StripTextures ()
0 commit comments