From f7343261e6c9fd8b794bb8391ae0cf2d625667bb Mon Sep 17 00:00:00 2001 From: adrianna Date: Sat, 17 May 2014 20:39:03 +0200 Subject: [PATCH] tweaked spacing on win and lose screens --- naja/scenes/lose.py | 8 +++++--- naja/scenes/win.py | 9 ++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/naja/scenes/lose.py b/naja/scenes/lose.py index 7455fdf..be9b603 100644 --- a/naja/scenes/lose.py +++ b/naja/scenes/lose.py @@ -24,15 +24,17 @@ class LoseScene(Scene): (0, 0), "screens/you_lost.png") self.add(background) + y_offset = 250 + if self.state.gameboard.has_cheated: self.add(TextWidget( - (50, 250), 'Even with cheats on.', colour=PALETTE.ORANGE)) + (50, y_offset), 'Even with cheats on.', colour=PALETTE.ORANGE)) + y_offset += 50 self.add(TextBoxWidget( - (50, 300), '\n\n'.join([ + (50, y_offset), '\n\n'.join([ "Something went terribly wrong.", "You should re-evaluate your life choices.", - "", "Press ESC to return to the menu", ]), fontsize=32, colour='white', padding=1, border=1, diff --git a/naja/scenes/win.py b/naja/scenes/win.py index 82437d0..5acff6e 100644 --- a/naja/scenes/win.py +++ b/naja/scenes/win.py @@ -24,15 +24,18 @@ class WinScene(Scene): (0, 0), "screens/you_won.png") self.add(background) + y_offset = 250 + if self.state.gameboard.has_cheated: self.add(TextWidget( - (50, 250), 'But you\'re a CHEATER!', colour=PALETTE.ORANGE)) + (50, y_offset), 'But you\'re a CHEATER!', colour=PALETTE.ORANGE)) + y_offset += 50 + self.add(TextBoxWidget( - (50, 300), '\n\n'.join([ + (50, y_offset), '\n\n'.join([ "You're great.", "You did well.", "You should be proud of yourself.", - "", "Press ESC to return to the menu", ]), colour=PALETTE.WHITE, padding=1, border=1, -- 2.34.1