@@ -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