From d9cad773caf1bfdf75bebc44909f8aebc9dbd96c Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 15 May 2014 00:23:11 +0200 Subject: [PATCH] Tweak hint position and add padding --- naja/widgets/info_area.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/naja/widgets/info_area.py b/naja/widgets/info_area.py index d7ad07d..a89e965 100644 --- a/naja/widgets/info_area.py +++ b/naja/widgets/info_area.py @@ -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 - 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 - 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: -- 2.34.1