Mercurial > sypikslang
comparison gamelib/gamegui.py @ 252:05c89ce70ac4
updated win screen
author | Rizmari Versfeld <rizziepit@gmail.com> |
---|---|
date | Sun, 13 May 2012 01:05:07 +0200 |
parents | c5fdfa96cfb2 |
children | c949ac17cfd9 |
comparison
equal
deleted
inserted
replaced
251:73a1f8d322c5 | 252:05c89ce70ac4 |
---|---|
432 def _make_win_screen(self, turn, msg): | 432 def _make_win_screen(self, turn, msg): |
433 # Clear existing widgets, and turn this into a won screen | 433 # Clear existing widgets, and turn this into a won screen |
434 for child in self.children[:]: | 434 for child in self.children[:]: |
435 self.remove_child(child) | 435 self.remove_child(child) |
436 # Replace background | 436 # Replace background |
437 self.background_image = load_image('images/main_background.jpg') | 437 self.background_image = load_image('images/win_background.jpg') |
438 exitbut = ExitGameButton() | 438 exitbut = ExitGameButton() |
439 # FIXME: 1:20 minutes to hackery here | 439 # FIXME: 1:20 minutes to hackery here |
440 exitbut.rect.topleft = (500, 350) | 440 exitbut.rect.topleft = (500, 350) |
441 self.add_child(exitbut) | 441 self.add_child(exitbut) |
442 title = TextLabel((500, 20, 200, 50), "Results for turn %d" % turn, | 442 title = TextLabel((500, 20, 200, 50), "Results for turn %d" % turn, |