Commits

featheredmelody committed a8c04d6

Fixed vertical centering of event selection menu.

Comments (0)

Files changed (1)

Story of a Lost Sky/lostsky/worldmap/worldmap.py

         """
         # Function Name: Render map to background surface
         # Purpose: Draws the background map and the locations
-        # Input = draw_arrows = True if the arrows are to be drawn indicating direction of movement
-
         """
 
         self.background_surface.blit(self.engine.wm_bg, (0, 0))
     # Graphical Methods
     ############################################
 
-    def render_background(self):
+    def render_background(self, draw_directions = True):
 
         """
         # Function Name: Render background to the background surface
         draw_aligned_text(self.background_surface, self.all_locations[tuple(self.player_pos)].desc, self.engine.sfont,
                           (0, 0, 0), (30, 565), desc_panel.get_width()-20)
 
-        self.draw_directions()
+        if draw_directions:
+            self.draw_directions()
 
 
     def render_arrows(self):
         text_cancel = self.region.engine.section_font.render("Cancel", True, (0, 0, 0))
 
         text_event = self.get_text_all_events()
-        menu_y = 510
+        menu_y = 515
         for index, event in enumerate(self.all_events):
             self.region.background_surface.blit(options_panel, (450, menu_y + 50*index))
             self.region.background_surface.blit(self.region.engine.wm_icons[event.type], (460, menu_y + 2 + 50*index))
         Renders a full frame of the map and options menu
         """
 
-        self.region.render_background()
+        self.region.render_background(draw_directions = False)
         self.render_menu_options()
         self.region.engine.surface.blit(self.region.background_surface, (0, 0))
         self.region.player_sprite_group.draw(self.region.engine.surface)
 
                     self.render_updated_map()
                     padlib_rounded_rect(self.region.engine.surface, selected_color,
-                                        (448, 508 + 50*menu_pos, 364, 44), 6, 5)
+                                        (448, 513 + 50*menu_pos, 364, 44), 6, 5)
                     pygame.display.flip()
 
                 self.region.engine.clock.tick(60)