Skip to content

Commit 93d314b

Browse files
committed
Rename this :)
1 parent 949febb commit 93d314b

File tree

1 file changed

+20
-22
lines changed
  • ElvUI/Mainline/Modules/Skins

1 file changed

+20
-22
lines changed

ElvUI/Mainline/Modules/Skins/LFG.lua

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ function S:LookingForGroupFrames()
378378
S:HandleButton(LFGListFrame.CategorySelection.FindGroupButton)
379379
LFGListFrame.CategorySelection.FindGroupButton:ClearAllPoints()
380380
LFGListFrame.CategorySelection.FindGroupButton:Point('BOTTOMRIGHT', -6, 3)
381-
382381

383382
local EntryCreation = LFGListFrame.EntryCreation
384383
EntryCreation.Inset:StripTextures()
@@ -434,30 +433,29 @@ function S:LookingForGroupFrames()
434433
S:HandleButton(LFGListFrame.SearchPanel.BackButton)
435434
S:HandleButton(LFGListFrame.SearchPanel.SignUpButton)
436435

437-
local dumbbutton = LFGListFrame.SearchPanel.ScrollBox.StartGroupButton
438-
local fu = CreateFrame("Frame", "DumbButton", E.UIParent)
439-
fu:SetFrameLevel(10)
440-
fu:SetFrameStrata("HIGH")
441-
fu:Size(135,22)
442-
fu:SetTemplate()
443-
fu:SetPoint(dumbbutton:GetPoint())
444-
fu.biatch = fu:CreateFontString(nil, "OVERLAY", "GameFontHighlight")
445-
fu.biatch:SetPoint("CENTER")
446-
fu.biatch:FontTemplate()
447-
fu.biatch:SetText(_G.START_A_GROUP)
448-
fu:Hide()
449-
450-
dumbbutton:HookScript("OnHide", function()
451-
fu:Hide()
436+
-- Monitor this button, this seems NOT to taint. But who knows
437+
local StartGroupButton = LFGListFrame.SearchPanel.ScrollBox.StartGroupButton
438+
local bu = CreateFrame("Frame", "StartGroupButton", E.UIParent)
439+
bu:SetFrameLevel(10)
440+
bu:SetFrameStrata("HIGH")
441+
bu:Size(135,22)
442+
bu:SetTemplate()
443+
bu:SetPoint(StartGroupButton:GetPoint())
444+
bu.text = bu:CreateFontString(nil, "OVERLAY", "GameFontHighlight")
445+
bu.text:SetPoint("CENTER")
446+
bu.text:FontTemplate()
447+
bu.text:SetText(_G.START_A_GROUP)
448+
bu:Hide()
449+
450+
StartGroupButton:HookScript("OnHide", function()
451+
bu:Hide()
452452
end)
453-
dumbbutton:HookScript("OnShow", function()
454-
fu:ClearAllPoints()
455-
fu:SetPoint(dumbbutton:GetPoint())
456-
fu:Show()
453+
StartGroupButton:HookScript("OnShow", function()
454+
bu:ClearAllPoints()
455+
bu:SetPoint(StartGroupButton:GetPoint())
456+
bu:Show()
457457
end)
458458

459-
460-
461459
LFGListFrame.SearchPanel.BackButton:ClearAllPoints()
462460
LFGListFrame.SearchPanel.BackButton:Point('BOTTOMLEFT', -1, 3)
463461
LFGListFrame.SearchPanel.SignUpButton:ClearAllPoints()

0 commit comments

Comments
 (0)