mirror of https://github.com/axmolengine/axmol.git
Add a deprecated function
This commit is contained in:
parent
5907e56601
commit
40ed7bc326
|
@ -28,6 +28,12 @@ function CCTextureCacheDeprecated.purgeSharedTextureCache()
|
|||
return cc.TextureCache:destroyInstance()
|
||||
end
|
||||
rawset(CCTextureCache,"purgeSharedTextureCache",CCTextureCacheDeprecated.purgeSharedTextureCache)
|
||||
|
||||
function CCTextureCacheDeprecated.addUIImage(self, image, key)
|
||||
deprecatedTip("CCTextureCache:addUIImage","CCTextureCache:addImage")
|
||||
return self:addImage(image,key)
|
||||
end
|
||||
rawset(CCTextureCache,"addUIImage",CCTextureCacheDeprecated.addUIImage)
|
||||
--functions of CCTextureCache will be deprecated end
|
||||
|
||||
--functions of CCAnimation will be deprecated begin
|
||||
|
|
Loading…
Reference in New Issue