comparison gamelib/gameboard.py @ 588:e13f9380242b 1.5.x

Merge r592 from trunk.
author Simon Cross <hodgestar@gmail.com>
date Sat, 28 Nov 2009 23:16:47 +0000
parents ffdaac5d6cf8
children 460b06ac7d99
comparison
equal deleted inserted replaced
586:36e1939c732a 588:e13f9380242b
713 update_button(self.selected_chickens[0]) 713 update_button(self.selected_chickens[0])
714 714
715 tbl = gui.Table() 715 tbl = gui.Table()
716 columns = building.max_floor_width() 716 columns = building.max_floor_width()
717 kwargs = { 'style': { 'padding_left': 10, 'padding_bottom': 10 }} 717 kwargs = { 'style': { 'padding_left': 10, 'padding_bottom': 10 }}
718 for floor in building.floors(): 718 for floor in reversed(building.floors()):
719 tbl.tr() 719 tbl.tr()
720 tbl.td(gui.Button(floor.title), colspan=columns, align=-1, **kwargs) 720 tbl.td(gui.Button(floor.title), colspan=columns, align=-1, **kwargs)
721 tbl.tr() 721 tbl.tr()
722 for row in floor.rows(): 722 for row in floor.rows():
723 tbl.tr() 723 tbl.tr()