changeset 245:c39599854a2d

Better 'You've Won' Screen
author Neil Muller <drnlmuller@gmail.com>
date Sun, 13 May 2012 00:43:30 +0200
parents 330a63dc176e
children 235b1faf590e
files gamelib/gamegui.py
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/gamegui.py	Sun May 13 00:43:09 2012 +0200
+++ b/gamelib/gamegui.py	Sun May 13 00:43:30 2012 +0200
@@ -433,15 +433,19 @@
         # Clear existing widgets, and turn this into a won screen
         for child in self.children[:]:
             self.remove_child(child)
+        # Replace background
+        self.background_image = load_image('images/main_background.jpg')
         exitbut = ExitGameButton()
+        # FIXME: 1:20 minutes to hackery here
+        exitbut.rect.topleft = (500, 350)
         self.add_child(exitbut)
-        title = TextLabel((200, 20, 400, 50), "Results for turn %d" % turn,
+        title = TextLabel((500, 20, 200, 50), "Results for turn %d" % turn,
                 font_medium, (255, 255, 255))
         self.add_child(title)
-        won = TextBox((200, 200, 400, 50), "You've succeeded in your quest",
+        won = TextBox((400, 200, 400, 50), "You've succeeded in your quest",
                 font_large, (255, 255, 255))
         self.add_child(won)
-        won = TextBox((200, 250, 400, 50), msg, font_large,
+        won = TextBox((450, 250, 400, 50), msg, font_large,
                 (255, 255, 255))
         self.add_child(won)