Skip to content

Commit

Permalink
Fix button name changes on classic era 1.15.5
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Nov 20, 2024
1 parent 2edf448 commit 1491461
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Buttons_Vanilla.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ local blizzButtons = {
SexyMapZoneTextButton = L["Zone Text"],
MinimapZoomIn = L["Zoom In Button"],
MinimapZoomOut = L["Zoom Out Button"],
MiniMapWorldMapButton = L["Map Button"],
--MiniMapWorldMapButton = L["Map Button"],
TimeManagerClockButton = L["Clock"],
}
local dynamicButtons = {
Expand All @@ -25,7 +25,7 @@ local dynamicButtons = {
MiniMapMailFrame = L["New Mail Indicator (When Available)"],
MiniMapBattlefieldFrame = L.classicPVPButton,
--GarrisonLandingPageMinimapButton = L["Garrison Button (When Available)"],
MiniMapLFGFrame = L.classicLFGButton,
LFGMinimapFrame = L.classicLFGButton,
}

local options = {
Expand Down Expand Up @@ -186,7 +186,7 @@ function mod:OnInitialize(profile)
TimeManagerClockButton = "always",
MiniMapMailFrame = "always",
MiniMapBattlefieldFrame = "always",
MiniMapLFGFrame = "always",
LFGMinimapFrame = "always",
GarrisonLandingPageMinimapButton = "always",
MiniMapTracking = "always",
},
Expand All @@ -207,8 +207,8 @@ function mod:OnInitialize(profile)
if not self.db.visibilitySettings.MiniMapBattlefieldFrame then
self.db.visibilitySettings.MiniMapBattlefieldFrame = "always"
end
if not self.db.visibilitySettings.MiniMapLFGFrame then
self.db.visibilitySettings.MiniMapLFGFrame = "always"
if not self.db.visibilitySettings.LFGMinimapFrame then
self.db.visibilitySettings.LFGMinimapFrame = "always"
end
if not self.db.visibilitySettings.GameTimeFrame then
self.db.visibilitySettings.GameTimeFrame = "never"
Expand Down Expand Up @@ -560,9 +560,12 @@ end
do
local tbl = {
Minimap, MiniMapTracking, TimeManagerClockButton, GameTimeFrame,
MinimapZoomIn, MinimapZoomOut, MiniMapWorldMapButton,
MiniMapMailFrame, MiniMapBattlefieldFrame, MiniMapLFGFrame
MinimapZoomIn, MinimapZoomOut, --MiniMapWorldMapButton,
MiniMapMailFrame, MiniMapBattlefieldFrame,
}
if LFGMinimapFrame then -- Classic era only
tbl[#tbl+1] = LFGMinimapFrame
end

function mod:AddButton(_, button)
self:NewFrame(button)
Expand Down

0 comments on commit 1491461

Please sign in to comment.