[los-cocos] r1359 committed - removing Scrolling from tiles.py, was long time deprecated

0 views
Skip to first unread message

los-...@googlecode.com

unread,
Mar 24, 2014, 7:59:06 AM3/24/14
to cocos-...@googlegroups.com
Revision: 1359
Author: ccanepacc
Date: Mon Mar 24 11:58:58 2014 UTC
Log: removing Scrolling from tiles.py, was long time deprecated
http://code.google.com/p/los-cocos/source/detail?r=1359

Modified:
/trunk/cocos/tiles.py

=======================================
--- /trunk/cocos/tiles.py Thu Mar 20 18:23:25 2014 UTC
+++ /trunk/cocos/tiles.py Mon Mar 24 11:58:58 2014 UTC
@@ -58,22 +58,6 @@

unicode = six.text_type

-# Implement these classes for backwards compatibility; some older code
-# expects ScrollableLayer and ScrollingManager to be in the tiles module.
-from cocos import layer
-class ScrollableLayer(layer.ScrollableLayer):
- def __init__(self, parallax=1):
- import warnings
- warnings.warn('ScrollableLayer been has moved to cocos.layer',
- DeprecationWarning, stacklevel=2)
- super(ScrollableLayer, self).__init__(parallax=parallax)
-class ScrollingManager(layer.ScrollingManager):
- def __init__(self, viewport=None):
- import warnings
- warnings.warn('ScrollingManager been has moved to cocos.layer',
- DeprecationWarning, stacklevel=2)
- super(ScrollingManager, self).__init__(viewport=viewport)
-

class ResourceError(Exception):
pass
@@ -644,7 +628,7 @@
return int(height / sqrt(3) * 2)


-class MapLayer(layer.ScrollableLayer):
+class MapLayer(cocos.layer.ScrollableLayer):
'''Base class for Maps.

Maps are comprised of tiles and can figure out which tiles are
required to
Reply all
Reply to author
Forward
0 new messages