Mercurial > sypikslang
changeset 187:4f5de85fd1af
UI tweaks
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 12 May 2012 14:14:50 +0200 |
parents | b94a38129da8 |
children | f78468bba66e |
files | data/images/science_down.png data/images/science_normal.png gamelib/gamegui.py |
diffstat | 3 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/gamelib/gamegui.py Sat May 12 14:01:09 2012 +0200 +++ b/gamelib/gamegui.py Sat May 12 14:14:50 2012 +0200 @@ -165,7 +165,7 @@ class MissionWidget(BigButton): - WIDTH = 200 + WIDTH = 260 BG_IMAGE_NORMAL = image.load(filepath('images/science_normal.png')) BG_IMAGE_DOWN = image.load(filepath('images/science_down.png')) @@ -233,7 +233,7 @@ class EquipWidget(BigButton): - WIDTH = 200 + WIDTH = 260 BG_IMAGE_NORMAL = image.load(filepath('images/science_normal.png')) BG_IMAGE_DOWN = image.load(filepath('images/science_down.png')) @@ -288,7 +288,7 @@ self.add_child(cancel) reset = ResetButton(self, 'Clear inventory') self.add_child(reset) - title = TextLabel((200, 20, 400, 50), "Choose equipment for %s" + title = TextBox((170, 20, 370, 50), "Choose equipment for %s" % mission.NAME, font_medium, (255, 255, 255)) self.add_child(title) self.description = TextBox((10, 70, 790, 20), @@ -352,10 +352,10 @@ equip in available) self._equip.append(widget) self.add_child(widget) - x += 200 + x += widget.WIDTH + 10 if x >= WIDTH: x = 0 - y += 50 + y += 65 def buy(self, equip): self.game.money -= equip.COST @@ -502,7 +502,7 @@ widget = MissionWidget(mission, (x, y), self) self._missions.append(widget) self.add_child(widget) - x += 200 + x += widget.WIDTH + 10 if x >= WIDTH: x = 0 y += 65