Size detail window based on the Scene background image.
author |
Jeremy Thurgood <firxen@gmail.com> |
date |
Tue, 24 Aug 2010 18:11:53 +0200 |
parents |
f125bb60d7de |
children |
a2f6e975af67 |
files |
Resources/images/cryo/cryo_unit_detail.png gamelib/scenes/cryo.py gamelib/state.py |
diffstat |
3 files changed, 2 insertions(+), 2 deletions(-)
[+]
|
line diff
Binary file Resources/images/cryo/cryo_unit_detail.png has changed
--- a/gamelib/scenes/cryo.py Tue Aug 24 18:05:27 2010 +0200
+++ b/gamelib/scenes/cryo.py Tue Aug 24 18:11:53 2010 +0200
@@ -180,7 +180,7 @@
class CryoUnitWithCorpse(Scene):
FOLDER = "cryo"
- BACKGROUND = "cryo_room.png"
+ BACKGROUND = "cryo_unit_detail.png"
NAME = "cryo_detail"
SIZE = (300, 300)
--- a/gamelib/state.py Tue Aug 24 18:05:27 2010 +0200
+++ b/gamelib/state.py Tue Aug 24 18:11:53 2010 +0200
@@ -305,7 +305,7 @@
break
def get_detail_size(self):
- return self.SIZE
+ return self._background.get_size()
class Interact(object):