From: Neil Date: Wed, 14 May 2014 22:23:11 +0000 (+0200) Subject: Tweak hint position and add padding X-Git-Tag: 0.1~292 X-Git-Url: https://git.ctpug.org.za/?p=naja.git;a=commitdiff_plain;h=d9cad773caf1bfdf75bebc44909f8aebc9dbd96c Tweak hint position and add padding --- 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: