diff gamelib/gamegui.py @ 240:af86a207d8d2

more layout tweaking
author Neil Muller <drnlmuller@gmail.com>
date Sun, 13 May 2012 00:13:46 +0200
parents 212bfbb96055
children 0bc8592ee28c
line wrap: on
line diff
--- 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):