# HG changeset patch # User Neil Muller # Date 1336860826 -7200 # Node ID af86a207d8d22c220b29c6e0b50c11ff59f00bed # Parent 3731b3ca3b48865b35ab4f33deb9ded0dd8ef564 more layout tweaking diff -r 3731b3ca3b48 -r af86a207d8d2 gamelib/gamegui.py --- a/gamelib/gamegui.py Sun May 13 00:07:40 2012 +0200 +++ b/gamelib/gamegui.py Sun May 13 00:13:46 2012 +0200 @@ -330,7 +330,7 @@ self.remove_child(widget) self._inventory = [] x = 10 - y = 110 + self.description.rect.height + y = 100 + self.description.rect.height # collections.Counter is python 2.7. This is a bother equipment = sorted(set(self.parent.equipment), key=lambda x: x.NAME) for equip in equipment: @@ -349,8 +349,8 @@ self.remove_child(widget) self._equip = [] x = 0 - y = max(250, 130 + self.description.rect.height + - 18 * len(self._inventory) // 3) + y = max(240, 100 + self.description.rect.height + + 18 * (len(self._inventory) // 3 + 1)) available = self.game.get_available_equipment() for equip in sorted(self.game.get_all_equipment(), key=lambda x: x.NAME):