Mercurial > sypikslang
diff gamelib/gamegui.py @ 224:e4f9513c9dd0
Include mission name in the results
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 12 May 2012 22:33:05 +0200 |
parents | 19aae2b701d1 |
children | f8c05e6dc0e2 |
line wrap: on
line diff
--- a/gamelib/gamegui.py Sat May 12 21:28:43 2012 +0200 +++ b/gamelib/gamegui.py Sat May 12 22:33:05 2012 +0200 @@ -403,13 +403,15 @@ self.add_child(results) else: y = 200 - for msg_type, msg, loot in messages: + for mission, msg_type, msg, loot in messages: # FIXME: Better widgets if msg_type == GAME_WIN: self._make_win_screen(turn, msg) self.is_game_over = True break colour = self.message_colours.get(msg_type, (255, 255, 255)) + if mission: + msg = '%s: %s' % (mission, msg) y = self.display_message(y, msg, loot, colour) def display_message(self, y, msg, loot, colour, font=font_medium):