summaryrefslogtreecommitdiff
path: root/src/mapdata.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-11-18 05:44:40 +0100
committerTreeki <treeki@gmail.com>2011-11-18 05:44:40 +0100
commit4f66270b810b5889744f949d6b38d6f5e8e43e8c (patch)
tree9d5295f1c157225f58d799481223a4a01cf61b06 /src/mapdata.py
parent2d7b674eec9adc106d3bf237aac84cc0f261006c (diff)
downloadkoopatlas-4f66270b810b5889744f949d6b38d6f5e8e43e8c.tar.gz
koopatlas-4f66270b810b5889744f949d6b38d6f5e8e43e8c.zip
broken but I'm committing it anyway
Diffstat (limited to '')
-rw-r--r--src/mapdata.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mapdata.py b/src/mapdata.py
index 3c60e53..8671430 100644
--- a/src/mapdata.py
+++ b/src/mapdata.py
@@ -114,9 +114,15 @@ class KPTileLayer(KPLayer):
class KPDoodad(object):
def __init__(self):
self.position = (0,0)
+ self.size = (0,0)
self.angle = 0
- self.scale = 1.0
self.index = 0
+
+ def setDefaultSize(self):
+ source = KP.mainWindow.doodadSelector.getDoodad(self.index)
+ pixmap = source.icon().pixmap(source.icon().availableSizes()[0])
+ self.size = pixmap.width(), pixmap.height()
+
class KPDoodadLayer(KPLayer):