From 40ed7bc326c8a3194ed0217fb00ce52582fea124 Mon Sep 17 00:00:00 2001 From: samuele3hu Date: Tue, 17 Sep 2013 12:59:38 +0800 Subject: [PATCH] Add a deprecated function --- scripting/lua/script/Deprecated.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripting/lua/script/Deprecated.lua b/scripting/lua/script/Deprecated.lua index a2d6ac9878..82be56c5c6 100644 --- a/scripting/lua/script/Deprecated.lua +++ b/scripting/lua/script/Deprecated.lua @@ -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