Skip to content

Commit 7031a13

Browse files
committed
skin: mainline/worldmap
1 parent 148cb69 commit 7031a13

File tree

1 file changed

+27
-13
lines changed

1 file changed

+27
-13
lines changed

ElvUI/Mainline/Modules/Skins/WorldMap.lua

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -191,20 +191,34 @@ function S:WorldMapFrame()
191191
WorldMapFrame.backdrop:Point('BOTTOMRIGHT', WorldMapFrame, 'BOTTOMRIGHT', 6, -8)
192192

193193
local MapNavBar = WorldMapFrame.NavBar
194-
MapNavBar:StripTextures()
195-
MapNavBar.overlay:StripTextures()
196-
MapNavBar:Point('TOPLEFT', 1, -40)
197-
S:HandleButton(MapNavBar.homeButton)
198-
MapNavBar.homeButton.text:FontTemplate()
199-
S:HandleButton(MapNavBar.overflowButton)
200-
for _, tex in next, { MapNavBar.overflowButton:GetNormalTexture(), MapNavBar.overflowButton:GetPushedTexture() } do
201-
S:SetupArrow(tex, 'left')
202-
tex:SetTexCoord(0, 1, 0, 1)
203-
tex:Size(14)
204-
tex:ClearAllPoints()
205-
tex:Point('CENTER')
194+
if MapNavBar then
195+
MapNavBar:StripTextures()
196+
MapNavBar.overlay:StripTextures()
197+
MapNavBar:Point('TOPLEFT', 1, -40)
198+
199+
S.HandleNavBarButtons(MapNavBar)
200+
201+
local HomeButton = MapNavBar.homeButton
202+
if HomeButton then
203+
S:HandleButton(HomeButton)
204+
205+
HomeButton.text:FontTemplate()
206+
end
207+
208+
local OverflowButton = MapNavBar.overflowButton
209+
if OverflowButton then
210+
S:HandleButton(OverflowButton)
211+
212+
for _, tex in next, { OverflowButton:GetNormalTexture(), OverflowButton:GetPushedTexture() } do
213+
S:SetupArrow(tex, 'left')
214+
215+
tex:SetTexCoord(0, 1, 0, 1)
216+
tex:ClearAllPoints()
217+
tex:Point('CENTER')
218+
tex:Size(14)
219+
end
220+
end
206221
end
207-
S.HandleNavBarButtons(WorldMapFrame.NavBar)
208222

209223
-- Quest Frames
210224
local QuestMapFrame = _G.QuestMapFrame

0 commit comments

Comments
 (0)