changeset 587:2899ddc4d92c

Display top floors on top.
author Simon Cross <hodgestar@gmail.com>
date Sat, 28 Nov 2009 23:16:08 +0000
parents 30a581e63a3a
children b6f42a09945d
files gamelib/gameboard.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/gameboard.py	Sat Nov 28 23:08:44 2009 +0000
+++ b/gamelib/gameboard.py	Sat Nov 28 23:16:08 2009 +0000
@@ -715,7 +715,7 @@
         tbl = gui.Table()
         columns = building.max_floor_width()
         kwargs = { 'style': { 'padding_left': 10, 'padding_bottom': 10 }}
-        for floor in building.floors():
+        for floor in reversed(building.floors()):
             tbl.tr()
             tbl.td(gui.Button(floor.title), colspan=columns, align=-1, **kwargs)
             tbl.tr()