@@ -20,6 +20,12 @@ local C_ChallengeMode_GetMapUIInfo = C_ChallengeMode.GetMapUIInfo
20
20
21
21
local LE_PARTY_CATEGORY_HOME = LE_PARTY_CATEGORY_HOME
22
22
23
+ local groupButtonIcons = {
24
+ 133076 , -- interface\icons\inv_helmet_08.blp
25
+ 133074 , -- interface\icons\inv_helmet_06.blp
26
+ 464820 -- interface\icons\achievement_general_stayclassy.blp
27
+ }
28
+
23
29
local function LFDQueueFrameRoleButtonIconOnShow (self )
24
30
LCG .ShowOverlayGlow (self :GetParent ().checkButton )
25
31
end
@@ -128,10 +134,6 @@ function S:LookingForGroupFrames()
128
134
S :HandleButton (_G .LFDQueueFramePartyBackfillBackfillButton )
129
135
S :HandleButton (_G .LFDQueueFramePartyBackfillNoBackfillButton )
130
136
131
- _G .GroupFinderFrame .groupButton1 .icon :SetTexture (133076 ) -- interface\icons\inv_helmet_08.blp
132
- _G .GroupFinderFrame .groupButton2 .icon :SetTexture (133074 ) -- interface\icons\inv_helmet_06.blp
133
- _G .GroupFinderFrame .groupButton3 .icon :SetTexture (464820 ) -- interface\icons\achievement_general_stayclassy.blp
134
-
135
137
_G .LFGDungeonReadyStatus :StripTextures ()
136
138
_G .LFGDungeonReadyStatus :SetTemplate (' Transparent' )
137
139
@@ -261,18 +263,26 @@ function S:LookingForGroupFrames()
261
263
end
262
264
end )
263
265
264
- for i = 1 , 4 do
265
- local bu = _G .GroupFinderFrame [' groupButton' .. i ]
266
+ do
267
+ local index = 1
268
+ local button = _G .GroupFinderFrame [' groupButton' .. index ]
269
+ while button do
270
+ button .ring :Hide ()
271
+ button .bg :Kill ()
272
+ S :HandleButton (button )
273
+
274
+ local texture = groupButtonIcons [index ]
275
+ if texture then
276
+ button .icon :SetTexture (texture )
277
+ end
266
278
267
- if bu then
268
- bu . ring : Hide ()
269
- bu . bg : Kill ( )
270
- S :HandleButton ( bu )
279
+ button . icon : Size ( 45 )
280
+ button . icon : ClearAllPoints ()
281
+ button . icon : Point ( ' LEFT ' , 10 , 0 )
282
+ S :HandleIcon ( button . icon , true )
271
283
272
- bu .icon :Size (45 )
273
- bu .icon :ClearAllPoints ()
274
- bu .icon :Point (' LEFT' , 10 , 0 )
275
- S :HandleIcon (bu .icon , true )
284
+ index = index + 1
285
+ button = _G .GroupFinderFrame [' groupButton' .. index ]
276
286
end
277
287
end
278
288
@@ -295,11 +305,12 @@ function S:LookingForGroupFrames()
295
305
_G .ScenarioFinderFrameInset :StripTextures ()
296
306
_G .ScenarioQueueFrameBackground :SetAlpha (0 )
297
307
S :HandleDropDownBox (_G .ScenarioQueueFrameTypeDropDown )
298
- if ScenarioQueueFrameRandomScrollFrameScrollBar then
299
- ScenarioQueueFrameRandomScrollFrameScrollBar :SetAlpha (0 )
300
- end
301
308
S :HandleTrimScrollBar (_G .ScenarioQueueFrameRandomScrollFrame .ScrollBar )
302
309
S :HandleButton (_G .ScenarioQueueFrameFindGroupButton )
310
+
311
+ if _G .ScenarioQueueFrameRandomScrollFrameScrollBar then
312
+ _G .ScenarioQueueFrameRandomScrollFrameScrollBar :SetAlpha (0 )
313
+ end
303
314
end
304
315
305
316
-- Raid finder
0 commit comments