Commits

featheredmelody  committed 68eeda9

Added directions to the party screen

  • Participants
  • Parent commits d053490
  • Tags v0.9.0 Final

Comments (0)

Files changed (1)

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

             if update:
                 update = False
                 self.draw_units_screen(units)
+                self.draw_party_directions()
 
                 # Draw the cursor
                 x_spacing = 150
             self.engine.clock.tick(60)
 
 
+
+
+    def draw_party_directions(self):
+        """
+        function name: draw_party_directions
+
+        Desc: Draw basic interaction directions on the world map
+        """
+
+        text_enter = self.engine.message_font.render("Z - Select Unit", True, (0, 0, 0))
+        text_sort = self.engine.message_font.render("A - Sort Units", True, (0, 0, 0))
+        text_stats = self.engine.message_font.render("C - Show Stats", True, (0, 0, 0))
+
+        panel = get_ui_panel((180, 35), border_color, panel_color)
+        big_panel = get_ui_panel((280, 35), border_color, panel_color)
+
+        self.engine.surface.blit(panel, (630 - panel.get_width() - 5, 520))
+        self.engine.surface.blit(text_enter, (630 - panel.get_width()/2 - text_enter.get_width()/2 - 5 ,
+                                              520 + panel.get_height()/2 - text_enter.get_height()/2))
+
+        self.engine.surface.blit(panel, (635, 520))
+        self.engine.surface.blit(text_sort, (635 + panel.get_width()/2 - text_sort.get_width()/2 ,
+                                              520 + panel.get_height()/2 - text_sort.get_height()/2))
+
+        self.engine.surface.blit(big_panel, (630 - big_panel.get_width()/2, 565))
+        self.engine.surface.blit(text_stats, (630 - text_stats.get_width()/2 ,
+                                              565 + panel.get_height()/2 - text_stats.get_height()/2))
+
+
     def draw_units_screen(self, units):
 
         """