comparison gamelib/gamegui.py @ 225:f8c05e6dc0e2

tweak layout again
author Neil Muller <drnlmuller@gmail.com>
date Sat, 12 May 2012 22:33:59 +0200
parents e4f9513c9dd0
children 0478c8b44acf
comparison
equal deleted inserted replaced
224:e4f9513c9dd0 225:f8c05e6dc0e2
297 self.description = TextBox((10, 60, 790, 20), 297 self.description = TextBox((10, 60, 790, 20),
298 mission.get_description(), font_medium, (255, 255, 255)) 298 mission.get_description(), font_medium, (255, 255, 255))
299 self.add_child(self.description) 299 self.add_child(self.description)
300 self.parent = parent 300 self.parent = parent
301 self.game = game 301 self.game = game
302 self.money = ValueLabel((10, self.description.rect.height + 57), 302 self.money = ValueLabel((10, self.description.rect.height + 58),
303 'Money') 303 'Money')
304 self.money.set_value(self.game.money) 304 self.money.set_value(self.game.money)
305 self.minions = ValueLabel((310, self.description.rect.height + 57), 305 self.minions = ValueLabel((310, self.description.rect.height + 58),
306 'Minions Assigned') 306 'Minions Assigned')
307 self.minions.set_value(self.parent.minions) 307 self.minions.set_value(self.parent.minions)
308 self.add_child(self.money) 308 self.add_child(self.money)
309 self.add_child(self.minions) 309 self.add_child(self.minions)
310 inventory = TextLabel((10, self.description.rect.height + 75, 400, 20), 310 inventory = TextLabel((10, self.description.rect.height + 75, 400, 20),