comparison gamelib/gameboard.py @ 587:2899ddc4d92c

Display top floors on top.
author Simon Cross <hodgestar@gmail.com>
date Sat, 28 Nov 2009 23:16:08 +0000
parents ffdaac5d6cf8
children 460b06ac7d99
comparison
equal deleted inserted replaced
585:30a581e63a3a 587:2899ddc4d92c
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()