Changeset 296:010ab166c582


Ignore:
Timestamp:
Sep 5, 2009, 4:27:31 PM (11 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@297
Message:

Add killed fox count to gameover. Tweak spacing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/gameover.py

    r295 r296  
    9595        self.td(gui.Label(message, color=constants.FG_COLOR),
    9696                colspan=3)
     97        self.add_spacer()
    9798        # show the scoreboard
    9899
     
    109110        self.td(gui.Label("   Eggs : %d" % gameboard.eggs,
    110111            color=constants.FG_COLOR))
     112        self.add_spacer()
     113        self.tr()
     114        self.td(gui.Label("You killed %d foxes" % gameboard.killed_foxes,
     115            color=constants.FG_COLOR), colspan=3)
     116        self.add_spacer()
    111117        self.tr()
    112118        self.td(gui.Label("Final score : %d" % score,
     
    121127                    color=constants.FG_COLOR), colspan=3)
    122128
    123         self.tr()
    124         self.td(gui.Spacer(0, 50), colspan=3)
     129        self.add_spacer(50)
    125130
    126131        return_button = gui.Button("Return to Main Menu")
     
    144149        self.tr()
    145150        self.td(quit_button, **td_kwargs)
     151
     152    def add_spacer(self, height=5):
     153        self.tr()
     154        self.td(gui.Spacer(0, height), colspan=3)
Note: See TracChangeset for help on using the changeset viewer.