Tweak hint position and add padding
authorNeil <neil@dip.sun.ac.za>
Wed, 14 May 2014 22:23:11 +0000 (00:23 +0200)
committerNeil <neil@dip.sun.ac.za>
Wed, 14 May 2014 22:23:11 +0000 (00:23 +0200)
naja/widgets/info_area.py

index d7ad07de421d41a5879ee26322ed2d10dd0fd87e..a89e96533dfee3b7773aeb21c7876bb6e4963c6c 100644 (file)
@@ -61,11 +61,12 @@ class InfoAreaWidget(Widget):
         for choice, action in enumerate(self.card.actions):
             y_offset = self.prepare_action(choice, action, y_offset)
         # We cheat horribly for layout reasons
         for choice, action in enumerate(self.card.actions):
             y_offset = self.prepare_action(choice, action, y_offset)
         # We cheat horribly for layout reasons
-        hint = TextBoxWidget((0, 0), HINTS[self.state.gameboard.player_mode],
-                             box_width=INFO_SIZE[0] // EIGHT_BIT_SCALE)
+        hint = TextBoxWidget((4, 0), HINTS[self.state.gameboard.player_mode],
+                             padding=2,
+                             box_width=(INFO_SIZE[0] - 4) // EIGHT_BIT_SCALE)
         hint.prepare()
         y_offset = INFO_SIZE[1] - hint.surface.get_rect().height
         hint.prepare()
         y_offset = INFO_SIZE[1] - hint.surface.get_rect().height
-        self.surface.blit(hint.surface, (0, y_offset))
+        self.surface.blit(hint.surface, (4, y_offset))
 
     def prepare_action(self, choice, action, y_offset):
         if action.required_bits:
 
     def prepare_action(self, choice, action, y_offset):
         if action.required_bits: