Mercurial > MadButterfly
comparison pyink/MBScene.py @ 1233:7f17a7e70d82
Integrate MBScene.entrGroup()
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 10 Jan 2011 11:45:12 +0800 |
parents | 6d4de488389e |
children | 0f597a2073eb |
comparison
equal
deleted
inserted
replaced
1232:6d4de488389e | 1233:7f17a7e70d82 |
---|---|
1307 pass | 1307 pass |
1308 pass | 1308 pass |
1309 pass | 1309 pass |
1310 pass | 1310 pass |
1311 | 1311 |
1312 def enterGroup(self, obj): | 1312 def enterGroup(self, scene_group): |
1313 for l in self._layers: | 1313 self.desktop.setCurrentLayer(scene_group.spitem) |
1314 for s in l.group.childList(): | |
1315 if s.getAttribute('id') == obj.getAttribute("id"): | |
1316 self.desktop.setCurrentLayer(s.spitem) | |
1317 pass | |
1318 pass | |
1319 pass | |
1320 pass | 1314 pass |
1321 | 1315 |
1322 def setTweenType(self, tween_type): | 1316 def setTweenType(self, tween_type): |
1323 tween_type_name = self._tween_type_names[tween_type] | 1317 tween_type_name = self._tween_type_names[tween_type] |
1324 | 1318 |