From 29d4e3209e20d00f21bf6c8da8fda530f350ad1d Mon Sep 17 00:00:00 2001 From: halx99 Date: Fri, 7 Oct 2022 21:24:11 +0800 Subject: [PATCH] Migrate lua scripts, remove deprecated files --- .../script/cocos2d/DeprecatedCocos2dClass.lua | 1767 ----------------- .../script/cocos2d/DeprecatedCocos2dEnum.lua | 81 - .../script/cocos2d/DeprecatedCocos2dFunc.lua | 1003 ---------- .../cocostudio/DeprecatedCocoStudioClass.lua | 307 --- .../cocostudio/DeprecatedCocoStudioFunc.lua | 81 - .../{cocos2d/Cocos2d.lua => core/Axmol.lua} | 0 .../Constants.lua} | 0 .../{cocos2d => core}/DrawPrimitives.lua | 0 .../script/{cocos2d => core}/bitExtend.lua | 0 .../script/{cocos2d => core}/deprecated.lua | 0 .../script/{cocos2d => core}/functions.lua | 0 .../script/{cocos2d => core}/luaj.lua | 0 .../script/{cocos2d => core}/luaoc.lua | 0 .../extension/DeprecatedExtensionClass.lua | 134 -- .../extension/DeprecatedExtensionEnum.lua | 26 - .../extension/DeprecatedExtensionFunc.lua | 32 - .../scripting/lua-bindings/script/init.lua | 37 +- .../script/network/DeprecatedNetworkClass.lua | 19 - .../script/network/DeprecatedNetworkEnum.lua | 13 - .../script/network/DeprecatedNetworkFunc.lua | 29 - 20 files changed, 4 insertions(+), 3525 deletions(-) delete mode 100644 extensions/scripting/lua-bindings/script/cocos2d/DeprecatedCocos2dClass.lua delete mode 100644 extensions/scripting/lua-bindings/script/cocos2d/DeprecatedCocos2dEnum.lua delete mode 100644 extensions/scripting/lua-bindings/script/cocos2d/DeprecatedCocos2dFunc.lua delete mode 100644 extensions/scripting/lua-bindings/script/cocostudio/DeprecatedCocoStudioClass.lua delete mode 100644 extensions/scripting/lua-bindings/script/cocostudio/DeprecatedCocoStudioFunc.lua rename extensions/scripting/lua-bindings/script/{cocos2d/Cocos2d.lua => core/Axmol.lua} (100%) rename extensions/scripting/lua-bindings/script/{cocos2d/Cocos2dConstants.lua => core/Constants.lua} (100%) rename extensions/scripting/lua-bindings/script/{cocos2d => core}/DrawPrimitives.lua (100%) rename extensions/scripting/lua-bindings/script/{cocos2d => core}/bitExtend.lua (100%) rename extensions/scripting/lua-bindings/script/{cocos2d => core}/deprecated.lua (100%) rename extensions/scripting/lua-bindings/script/{cocos2d => core}/functions.lua (100%) rename extensions/scripting/lua-bindings/script/{cocos2d => core}/luaj.lua (100%) rename extensions/scripting/lua-bindings/script/{cocos2d => core}/luaoc.lua (100%) delete mode 100644 extensions/scripting/lua-bindings/script/extension/DeprecatedExtensionClass.lua delete mode 100644 extensions/scripting/lua-bindings/script/extension/DeprecatedExtensionEnum.lua delete mode 100644 extensions/scripting/lua-bindings/script/extension/DeprecatedExtensionFunc.lua delete mode 100644 extensions/scripting/lua-bindings/script/network/DeprecatedNetworkClass.lua delete mode 100644 extensions/scripting/lua-bindings/script/network/DeprecatedNetworkEnum.lua delete mode 100644 extensions/scripting/lua-bindings/script/network/DeprecatedNetworkFunc.lua diff --git a/extensions/scripting/lua-bindings/script/cocos2d/DeprecatedCocos2dClass.lua b/extensions/scripting/lua-bindings/script/cocos2d/DeprecatedCocos2dClass.lua deleted file mode 100644 index 3228789177..0000000000 --- a/extensions/scripting/lua-bindings/script/cocos2d/DeprecatedCocos2dClass.lua +++ /dev/null @@ -1,1767 +0,0 @@ --- This is the DeprecatedClass - -DeprecatedClass = {} or DeprecatedClass - ---tip -local function deprecatedTip(old_name,new_name) - print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") -end - ---CCProgressTo class will be Deprecated,begin -function DeprecatedClass.CCProgressTo() - deprecatedTip("CCProgressTo","cc.ProgressTo") - return cc.ProgressTo -end -_G["CCProgressTo"] = DeprecatedClass.CCProgressTo() ---CCProgressTo class will be Deprecated,end - ---CCHide class will be Deprecated,begin -function DeprecatedClass.CCHide() - deprecatedTip("CCHide","cc.Hide") - return cc.Hide -end -_G["CCHide"] = DeprecatedClass.CCHide() ---CCHide class will be Deprecated,end - ---CCTransitionMoveInB class will be Deprecated,begin -function DeprecatedClass.CCTransitionMoveInB() - deprecatedTip("CCTransitionMoveInB","cc.TransitionMoveInB") - return cc.TransitionMoveInB -end -_G["CCTransitionMoveInB"] = DeprecatedClass.CCTransitionMoveInB() ---CCTransitionMoveInB class will be Deprecated,end - ---CCEaseSineIn class will be Deprecated,begin -function DeprecatedClass.CCEaseSineIn() - deprecatedTip("CCEaseSineIn","cc.EaseSineIn") - return cc.EaseSineIn -end -_G["CCEaseSineIn"] = DeprecatedClass.CCEaseSineIn() ---CCEaseSineIn class will be Deprecated,end - ---CCTransitionMoveInL class will be Deprecated,begin -function DeprecatedClass.CCTransitionMoveInL() - deprecatedTip("CCTransitionMoveInL","cc.TransitionMoveInL") - return cc.TransitionMoveInL -end -_G["CCTransitionMoveInL"] = DeprecatedClass.CCTransitionMoveInL() ---CCTransitionMoveInL class will be Deprecated,end - ---CCEaseInOut class will be Deprecated,begin -function DeprecatedClass.CCEaseInOut() - deprecatedTip("CCEaseInOut","cc.EaseInOut") - return cc.EaseInOut -end -_G["CCEaseInOut"] = DeprecatedClass.CCEaseInOut() ---CCEaseInOut class will be Deprecated,end - ---CCTransitionMoveInT class will be Deprecated,begin -function DeprecatedClass.CCTransitionMoveInT() - deprecatedTip("CCTransitionMoveInT","cc.TransitionMoveInT") - return cc.TransitionMoveInT -end -_G["CCTransitionMoveInT"] = DeprecatedClass.CCTransitionMoveInT() ---CCTransitionMoveInT class will be Deprecated,end - ---CCTransitionMoveInR class will be Deprecated,begin -function DeprecatedClass.CCTransitionMoveInR() - deprecatedTip("CCTransitionMoveInR","cc.TransitionMoveInR") - return cc.TransitionMoveInR -end -_G["CCTransitionMoveInR"] = DeprecatedClass.CCTransitionMoveInR() ---CCTransitionMoveInR class will be Deprecated,end - ---CCParticleSnow class will be Deprecated,begin -function DeprecatedClass.CCParticleSnow() - deprecatedTip("CCParticleSnow","cc.ParticleSnow") - return cc.ParticleSnow -end -_G["CCParticleSnow"] = DeprecatedClass.CCParticleSnow() ---CCParticleSnow class will be Deprecated,end - ---CCActionCamera class will be Deprecated,begin -function DeprecatedClass.CCActionCamera() - deprecatedTip("CCActionCamera","cc.ActionCamera") - return cc.ActionCamera -end -_G["CCActionCamera"] = DeprecatedClass.CCActionCamera() ---CCActionCamera class will be Deprecated,end - ---CCProgressFromTo class will be Deprecated,begin -function DeprecatedClass.CCProgressFromTo() - deprecatedTip("CCProgressFromTo","cc.ProgressFromTo") - return cc.ProgressFromTo -end -_G["CCProgressFromTo"] = DeprecatedClass.CCProgressFromTo() ---CCProgressFromTo class will be Deprecated,end - ---CCMoveTo class will be Deprecated,begin -function DeprecatedClass.CCMoveTo() - deprecatedTip("CCMoveTo","cc.MoveTo") - return cc.MoveTo -end -_G["CCMoveTo"] = DeprecatedClass.CCMoveTo() ---CCMoveTo class will be Deprecated,end - ---CCJumpBy class will be Deprecated,begin -function DeprecatedClass.CCJumpBy() - deprecatedTip("CCJumpBy","cc.JumpBy") - return cc.JumpBy -end -_G["CCJumpBy"] = DeprecatedClass.CCJumpBy() ---CCJumpBy class will be Deprecated,end - ---CCObject class will be Deprecated,begin -function DeprecatedClass.CCObject() - deprecatedTip("CCObject","cc.Object") - return cc.Object -end -_G["CCObject"] = DeprecatedClass.CCObject() ---CCObject class will be Deprecated,end - ---CCTransitionRotoZoom class will be Deprecated,begin -function DeprecatedClass.CCTransitionRotoZoom() - deprecatedTip("CCTransitionRotoZoom","cc.TransitionRotoZoom") - return cc.TransitionRotoZoom -end -_G["CCTransitionRotoZoom"] = DeprecatedClass.CCTransitionRotoZoom() ---CCTransitionRotoZoom class will be Deprecated,end - ---CCDirector class will be Deprecated,begin -function DeprecatedClass.CCDirector() - deprecatedTip("CCDirector","cc.Director") - return cc.Director -end -_G["CCDirector"] = DeprecatedClass.CCDirector() ---CCDirector class will be Deprecated,end - ---CCScheduler class will be Deprecated,begin -function DeprecatedClass.CCScheduler() - deprecatedTip("CCScheduler","cc.Scheduler") - return cc.Scheduler -end -_G["CCScheduler"] = DeprecatedClass.CCScheduler() ---CCScheduler class will be Deprecated,end - ---CCEaseElasticOut class will be Deprecated,begin -function DeprecatedClass.CCEaseElasticOut() - deprecatedTip("CCEaseElasticOut","cc.EaseElasticOut") - return cc.EaseElasticOut -end -_G["CCEaseElasticOut"] = DeprecatedClass.CCEaseElasticOut() ---CCEaseElasticOut class will be Deprecated,end - ---CCTableViewCell class will be Deprecated,begin -function DeprecatedClass.CCTableViewCell() - deprecatedTip("CCTableViewCell","cc.TableViewCell") - return cc.TableViewCell -end -_G["CCTableViewCell"] = DeprecatedClass.CCTableViewCell() ---CCTableViewCell class will be Deprecated,end - - ---CCEaseBackOut class will be Deprecated,begin -function DeprecatedClass.CCEaseBackOut() - deprecatedTip("CCEaseBackOut","cc.EaseBackOut") - return cc.EaseBackOut -end -_G["CCEaseBackOut"] = DeprecatedClass.CCEaseBackOut() ---CCEaseBackOut class will be Deprecated,end - ---CCParticleSystemQuad class will be Deprecated,begin -function DeprecatedClass.CCParticleSystemQuad() - deprecatedTip("CCParticleSystemQuad","cc.ParticleSystemQuad") - return cc.ParticleSystemQuad -end -_G["CCParticleSystemQuad"] = DeprecatedClass.CCParticleSystemQuad() ---CCParticleSystemQuad class will be Deprecated,end - ---CCMenuItemToggle class will be Deprecated,begin -function DeprecatedClass.CCMenuItemToggle() - deprecatedTip("CCMenuItemToggle","cc.MenuItemToggle") - return cc.MenuItemToggle -end -_G["CCMenuItemToggle"] = DeprecatedClass.CCMenuItemToggle() ---CCMenuItemToggle class will be Deprecated,end - ---CCStopGrid class will be Deprecated,begin -function DeprecatedClass.CCStopGrid() - deprecatedTip("CCStopGrid","cc.StopGrid") - return cc.StopGrid -end -_G["CCStopGrid"] = DeprecatedClass.CCStopGrid() ---CCStopGrid class will be Deprecated,end - ---CCTransitionScene class will be Deprecated,begin -function DeprecatedClass.CCTransitionScene() - deprecatedTip("CCTransitionScene","cc.TransitionScene") - return cc.TransitionScene -end -_G["CCTransitionScene"] = DeprecatedClass.CCTransitionScene() ---CCTransitionScene class will be Deprecated,end - ---CCSkewBy class will be Deprecated,begin -function DeprecatedClass.CCSkewBy() - deprecatedTip("CCSkewBy","cc.SkewBy") - return cc.SkewBy -end -_G["CCSkewBy"] = DeprecatedClass.CCSkewBy() ---CCSkewBy class will be Deprecated,end - ---CCLayer class will be Deprecated,begin -function DeprecatedClass.CCLayer() - deprecatedTip("CCLayer","cc.Layer") - return cc.Layer -end -_G["CCLayer"] = DeprecatedClass.CCLayer() ---CCLayer class will be Deprecated,end - ---CCEaseElastic class will be Deprecated,begin -function DeprecatedClass.CCEaseElastic() - deprecatedTip("CCEaseElastic","cc.EaseElastic") - return cc.EaseElastic -end -_G["CCEaseElastic"] = DeprecatedClass.CCEaseElastic() ---CCEaseElastic class will be Deprecated,end - ---CCTMXTiledMap class will be Deprecated,begin -function DeprecatedClass.CCTMXTiledMap() - deprecatedTip("CCTMXTiledMap","cc.TMXTiledMap") - return cc.TMXTiledMap -end -_G["CCTMXTiledMap"] = DeprecatedClass.CCTMXTiledMap() ---CCTMXTiledMap class will be Deprecated,end - ---CCGrid3DAction class will be Deprecated,begin -function DeprecatedClass.CCGrid3DAction() - deprecatedTip("CCGrid3DAction","cc.Grid3DAction") - return cc.Grid3DAction -end -_G["CCGrid3DAction"] = DeprecatedClass.CCGrid3DAction() ---CCGrid3DAction class will be Deprecated,end - ---CCFadeIn class will be Deprecated,begin -function DeprecatedClass.CCFadeIn() - deprecatedTip("CCFadeIn","cc.FadeIn") - return cc.FadeIn -end -_G["CCFadeIn"] = DeprecatedClass.CCFadeIn() ---CCFadeIn class will be Deprecated,end - ---CCNodeRGBA class will be Deprecated,begin -function DeprecatedClass.CCNodeRGBA() - deprecatedTip("CCNodeRGBA","cc.Node") - return cc.Node -end -_G["CCNodeRGBA"] = DeprecatedClass.CCNodeRGBA() ---CCNodeRGBA class will be Deprecated,end - ---NodeRGBA class will be Deprecated,begin -function DeprecatedClass.NodeRGBA() - deprecatedTip("cc.NodeRGBA","cc.Node") - return cc.Node -end -_G["cc"]["NodeRGBA"] = DeprecatedClass.NodeRGBA() ---NodeRGBA class will be Deprecated,end - ---CCAnimationCache class will be Deprecated,begin -function DeprecatedClass.CCAnimationCache() - deprecatedTip("CCAnimationCache","cc.AnimationCache") - return cc.AnimationCache -end -_G["CCAnimationCache"] = DeprecatedClass.CCAnimationCache() ---CCAnimationCache class will be Deprecated,end - ---CCFlipY3D class will be Deprecated,begin -function DeprecatedClass.CCFlipY3D() - deprecatedTip("CCFlipY3D","cc.FlipY3D") - return cc.FlipY3D -end -_G["CCFlipY3D"] = DeprecatedClass.CCFlipY3D() ---CCFlipY3D class will be Deprecated,end - ---CCEaseSineInOut class will be Deprecated,begin -function DeprecatedClass.CCEaseSineInOut() - deprecatedTip("CCEaseSineInOut","cc.EaseSineInOut") - return cc.EaseSineInOut -end -_G["CCEaseSineInOut"] = DeprecatedClass.CCEaseSineInOut() ---CCEaseSineInOut class will be Deprecated,end - ---CCTransitionFlipAngular class will be Deprecated,begin -function DeprecatedClass.CCTransitionFlipAngular() - deprecatedTip("CCTransitionFlipAngular","cc.TransitionFlipAngular") - return cc.TransitionFlipAngular -end -_G["CCTransitionFlipAngular"] = DeprecatedClass.CCTransitionFlipAngular() ---CCTransitionFlipAngular class will be Deprecated,end - ---CCEaseElasticInOut class will be Deprecated,begin -function DeprecatedClass.CCEaseElasticInOut() - deprecatedTip("CCEaseElasticInOut","cc.EaseElasticInOut") - return cc.EaseElasticInOut -end -_G["CCEaseElasticInOut"] = DeprecatedClass.CCEaseElasticInOut() ---CCEaseElasticInOut class will be Deprecated,end - ---CCEaseBounce class will be Deprecated,begin -function DeprecatedClass.CCEaseBounce() - deprecatedTip("CCEaseBounce","cc.EaseBounce") - return cc.EaseBounce -end -_G["CCEaseBounce"] = DeprecatedClass.CCEaseBounce() ---CCEaseBounce class will be Deprecated,end - ---CCShow class will be Deprecated,begin -function DeprecatedClass.CCShow() - deprecatedTip("CCShow","cc.Show") - return cc.Show -end -_G["CCShow"] = DeprecatedClass.CCShow() ---CCShow class will be Deprecated,end - ---CCFadeOut class will be Deprecated,begin -function DeprecatedClass.CCFadeOut() - deprecatedTip("CCFadeOut","cc.FadeOut") - return cc.FadeOut -end -_G["CCFadeOut"] = DeprecatedClass.CCFadeOut() ---CCFadeOut class will be Deprecated,end - ---CCCallFunc class will be Deprecated,begin -function DeprecatedClass.CCCallFunc() - deprecatedTip("CCCallFunc","cc.CallFunc") - return cc.CallFunc -end -_G["CCCallFunc"] = DeprecatedClass.CCCallFunc() ---CCCallFunc class will be Deprecated,end - ---CCWaves3D class will be Deprecated,begin -function DeprecatedClass.CCWaves3D() - deprecatedTip("CCWaves3D","cc.Waves3D") - return cc.Waves3D -end -_G["CCWaves3D"] = DeprecatedClass.CCWaves3D() ---CCWaves3D class will be Deprecated,end - ---CCFlipX3D class will be Deprecated,begin -function DeprecatedClass.CCFlipX3D() - deprecatedTip("CCFlipX3D","cc.FlipX3D") - return cc.FlipX3D -end -_G["CCFlipX3D"] = DeprecatedClass.CCFlipX3D() ---CCFlipX3D class will be Deprecated,end - ---CCParticleFireworks class will be Deprecated,begin -function DeprecatedClass.CCParticleFireworks() - deprecatedTip("CCParticleFireworks","cc.ParticleFireworks") - return cc.ParticleFireworks -end -_G["CCParticleFireworks"] = DeprecatedClass.CCParticleFireworks() ---CCParticleFireworks class will be Deprecated,end - ---CCMenuItemImage class will be Deprecated,begin -function DeprecatedClass.CCMenuItemImage() - deprecatedTip("CCMenuItemImage","cc.MenuItemImage") - return cc.MenuItemImage -end -_G["CCMenuItemImage"] = DeprecatedClass.CCMenuItemImage() ---CCMenuItemImage class will be Deprecated,end - ---CCParticleFire class will be Deprecated,begin -function DeprecatedClass.CCParticleFire() - deprecatedTip("CCParticleFire","cc.ParticleFire") - return cc.ParticleFire -end -_G["CCParticleFire"] = DeprecatedClass.CCParticleFire() ---CCParticleFire class will be Deprecated,end - ---CCMenuItem class will be Deprecated,begin -function DeprecatedClass.CCMenuItem() - deprecatedTip("CCMenuItem","cc.MenuItem") - return cc.MenuItem -end -_G["CCMenuItem"] = DeprecatedClass.CCMenuItem() ---CCMenuItem class will be Deprecated,end - ---CCActionEase class will be Deprecated,begin -function DeprecatedClass.CCActionEase() - deprecatedTip("CCActionEase","cc.ActionEase") - return cc.ActionEase -end -_G["CCActionEase"] = DeprecatedClass.CCActionEase() ---CCActionEase class will be Deprecated,end - ---CCTransitionSceneOriented class will be Deprecated,begin -function DeprecatedClass.CCTransitionSceneOriented() - deprecatedTip("CCTransitionSceneOriented","cc.TransitionSceneOriented") - return cc.TransitionSceneOriented -end -_G["CCTransitionSceneOriented"] = DeprecatedClass.CCTransitionSceneOriented() ---CCTransitionSceneOriented class will be Deprecated,end - ---CCTransitionZoomFlipAngular class will be Deprecated,begin -function DeprecatedClass.CCTransitionZoomFlipAngular() - deprecatedTip("CCTransitionZoomFlipAngular","cc.TransitionZoomFlipAngular") - return cc.TransitionZoomFlipAngular -end -_G["CCTransitionZoomFlipAngular"] = DeprecatedClass.CCTransitionZoomFlipAngular() ---CCTransitionZoomFlipAngular class will be Deprecated,end - ---CCEaseIn class will be Deprecated,begin -function DeprecatedClass.CCEaseIn() - deprecatedTip("CCEaseIn","cc.EaseIn") - return cc.EaseIn -end -_G["CCEaseIn"] = DeprecatedClass.CCEaseIn() ---CCEaseIn class will be Deprecated,end - ---CCEaseExponentialInOut class will be Deprecated,begin -function DeprecatedClass.CCEaseExponentialInOut() - deprecatedTip("CCEaseExponentialInOut","cc.EaseExponentialInOut") - return cc.EaseExponentialInOut -end -_G["CCEaseExponentialInOut"] = DeprecatedClass.CCEaseExponentialInOut() ---CCEaseExponentialInOut class will be Deprecated,end - ---CCTransitionFlipX class will be Deprecated,begin -function DeprecatedClass.CCTransitionFlipX() - deprecatedTip("CCTransitionFlipX","cc.TransitionFlipX") - return cc.TransitionFlipX -end -_G["CCTransitionFlipX"] = DeprecatedClass.CCTransitionFlipX() ---CCTransitionFlipX class will be Deprecated,end - ---CCEaseExponentialOut class will be Deprecated,begin -function DeprecatedClass.CCEaseExponentialOut() - deprecatedTip("CCEaseExponentialOut","cc.EaseExponentialOut") - return cc.EaseExponentialOut -end -_G["CCEaseExponentialOut"] = DeprecatedClass.CCEaseExponentialOut() ---CCEaseExponentialOut class will be Deprecated,end - ---CCLabel class will be Deprecated,begin -function DeprecatedClass.CCLabel() - deprecatedTip("CCLabel","cc.Label") - return cc.Label -end -_G["CCLabel"] = DeprecatedClass.CCLabel() ---CCLabel class will be Deprecated,end - ---CCApplication class will be Deprecated,begin -function DeprecatedClass.CCApplication() - deprecatedTip("CCApplication","cc.Application") - return cc.Application -end -_G["CCApplication"] = DeprecatedClass.CCApplication() ---CCApplication class will be Deprecated,end - ---CCDelayTime class will be Deprecated,begin -function DeprecatedClass.CCDelayTime() - deprecatedTip("CCDelayTime","cc.DelayTime") - return cc.DelayTime -end -_G["CCDelayTime"] = DeprecatedClass.CCDelayTime() ---CCDelayTime class will be Deprecated,end - ---CCLabelAtlas class will be Deprecated,begin -function DeprecatedClass.CCLabelAtlas() - deprecatedTip("CCLabelAtlas","cc.LabelAtlas") - return cc.LabelAtlas -end -_G["CCLabelAtlas"] = DeprecatedClass.CCLabelAtlas() ---CCLabelAtlas class will be Deprecated,end - ---CCLabelBMFont class will be Deprecated,begin -function DeprecatedClass.CCLabelBMFont() - deprecatedTip("CCLabelBMFont","cc.LabelBMFont") - return cc.LabelBMFont -end -_G["CCLabelBMFont"] = DeprecatedClass.CCLabelBMFont() ---CCLabelBMFont class will be Deprecated,end - ---CCFadeOutTRTiles class will be Deprecated,begin -function DeprecatedClass.CCFadeOutTRTiles() - deprecatedTip("CCFadeOutTRTiles","cc.FadeOutTRTiles") - return cc.FadeOutTRTiles -end -_G["CCFadeOutTRTiles"] = DeprecatedClass.CCFadeOutTRTiles() ---CCFadeOutTRTiles class will be Deprecated,end - ---CCEaseElasticIn class will be Deprecated,begin -function DeprecatedClass.CCEaseElasticIn() - deprecatedTip("CCEaseElasticIn","cc.EaseElasticIn") - return cc.EaseElasticIn -end -_G["CCEaseElasticIn"] = DeprecatedClass.CCEaseElasticIn() ---CCEaseElasticIn class will be Deprecated,end - ---CCParticleSpiral class will be Deprecated,begin -function DeprecatedClass.CCParticleSpiral() - deprecatedTip("CCParticleSpiral","cc.ParticleSpiral") - return cc.ParticleSpiral -end -_G["CCParticleSpiral"] = DeprecatedClass.CCParticleSpiral() ---CCParticleSpiral class will be Deprecated,end - ---CCFiniteTimeAction class will be Deprecated,begin -function DeprecatedClass.CCFiniteTimeAction() - deprecatedTip("CCFiniteTimeAction","cc.FiniteTimeAction") - return cc.FiniteTimeAction -end -_G["CCFiniteTimeAction"] = DeprecatedClass.CCFiniteTimeAction() ---CCFiniteTimeAction class will be Deprecated,end - ---CCFadeOutDownTiles class will be Deprecated,begin -function DeprecatedClass.CCFadeOutDownTiles() - deprecatedTip("CCFadeOutDownTiles","cc.FadeOutDownTiles") - return cc.FadeOutDownTiles -end -_G["CCFadeOutDownTiles"] = DeprecatedClass.CCFadeOutDownTiles() ---CCFadeOutDownTiles class will be Deprecated,end - ---CCJumpTiles3D class will be Deprecated,begin -function DeprecatedClass.CCJumpTiles3D() - deprecatedTip("CCJumpTiles3D","cc.JumpTiles3D") - return cc.JumpTiles3D -end -_G["CCJumpTiles3D"] = DeprecatedClass.CCJumpTiles3D() ---CCJumpTiles3D class will be Deprecated,end - ---CCEaseBackIn class will be Deprecated,begin -function DeprecatedClass.CCEaseBackIn() - deprecatedTip("CCEaseBackIn","cc.EaseBackIn") - return cc.EaseBackIn -end -_G["CCEaseBackIn"] = DeprecatedClass.CCEaseBackIn() ---CCEaseBackIn class will be Deprecated,end - ---CCSpriteBatchNode class will be Deprecated,begin -function DeprecatedClass.CCSpriteBatchNode() - deprecatedTip("CCSpriteBatchNode","cc.SpriteBatchNode") - return cc.SpriteBatchNode -end -_G["CCSpriteBatchNode"] = DeprecatedClass.CCSpriteBatchNode() ---CCSpriteBatchNode class will be Deprecated,end - ---CCParticleSystem class will be Deprecated,begin -function DeprecatedClass.CCParticleSystem() - deprecatedTip("CCParticleSystem","cc.ParticleSystem") - return cc.ParticleSystem -end -_G["CCParticleSystem"] = DeprecatedClass.CCParticleSystem() ---CCParticleSystem class will be Deprecated,end - ---CCActionTween class will be Deprecated,begin -function DeprecatedClass.CCActionTween() - deprecatedTip("CCActionTween","cc.ActionTween") - return cc.ActionTween -end -_G["CCActionTween"] = DeprecatedClass.CCActionTween() ---CCActionTween class will be Deprecated,end - ---CCTransitionFadeDown class will be Deprecated,begin -function DeprecatedClass.CCTransitionFadeDown() - deprecatedTip("CCTransitionFadeDown","cc.TransitionFadeDown") - return cc.TransitionFadeDown -end -_G["CCTransitionFadeDown"] = DeprecatedClass.CCTransitionFadeDown() ---CCTransitionFadeDown class will be Deprecated,end - ---CCParticleSun class will be Deprecated,begin -function DeprecatedClass.CCParticleSun() - deprecatedTip("CCParticleSun","cc.ParticleSun") - return cc.ParticleSun -end -_G["CCParticleSun"] = DeprecatedClass.CCParticleSun() ---CCParticleSun class will be Deprecated,end - ---CCTransitionProgressHorizontal class will be Deprecated,begin -function DeprecatedClass.CCTransitionProgressHorizontal() - deprecatedTip("CCTransitionProgressHorizontal","cc.TransitionProgressHorizontal") - return cc.TransitionProgressHorizontal -end -_G["CCTransitionProgressHorizontal"] = DeprecatedClass.CCTransitionProgressHorizontal() ---CCTransitionProgressHorizontal class will be Deprecated,end - ---CCRipple3D class will be Deprecated,begin -function DeprecatedClass.CCRipple3D() - deprecatedTip("CCRipple3D","cc.Ripple3D") - return cc.Ripple3D -end -_G["CCRipple3D"] = DeprecatedClass.CCRipple3D() ---CCRipple3D class will be Deprecated,end - ---CCTMXLayer class will be Deprecated,begin -function DeprecatedClass.CCTMXLayer() - deprecatedTip("CCTMXLayer","cc.TMXLayer") - return cc.TMXLayer -end -_G["CCTMXLayer"] = DeprecatedClass.CCTMXLayer() ---CCTMXLayer class will be Deprecated,end - ---CCFlipX class will be Deprecated,begin -function DeprecatedClass.CCFlipX() - deprecatedTip("CCFlipX","cc.FlipX") - return cc.FlipX -end -_G["CCFlipX"] = DeprecatedClass.CCFlipX() ---CCFlipX class will be Deprecated,end - ---CCFlipY class will be Deprecated,begin -function DeprecatedClass.CCFlipY() - deprecatedTip("CCFlipY","cc.FlipY") - return cc.FlipY -end -_G["CCFlipY"] = DeprecatedClass.CCFlipY() ---CCFlipY class will be Deprecated,end - ---CCTransitionSplitCols class will be Deprecated,begin -function DeprecatedClass.CCTransitionSplitCols() - deprecatedTip("CCTransitionSplitCols","cc.TransitionSplitCols") - return cc.TransitionSplitCols -end -_G["CCTransitionSplitCols"] = DeprecatedClass.CCTransitionSplitCols() ---CCTransitionSplitCols class will be Deprecated,end - ---CCTimer class will be Deprecated,begin -function DeprecatedClass.CCTimer() - deprecatedTip("CCTimer","cc.Timer") - return cc.Timer -end -_G["CCTimer"] = DeprecatedClass.CCTimer() ---CCTimer class will be Deprecated,end - ---CCFadeTo class will be Deprecated,begin -function DeprecatedClass.CCFadeTo() - deprecatedTip("CCFadeTo","cc.FadeTo") - return cc.FadeTo -end -_G["CCFadeTo"] = DeprecatedClass.CCFadeTo() ---CCFadeTo class will be Deprecated,end - ---CCRepeatForever class will be Deprecated,begin -function DeprecatedClass.CCRepeatForever() - deprecatedTip("CCRepeatForever","cc.RepeatForever") - return cc.RepeatForever -end -_G["CCRepeatForever"] = DeprecatedClass.CCRepeatForever() ---CCRepeatForever class will be Deprecated,end - ---CCPlace class will be Deprecated,begin -function DeprecatedClass.CCPlace() - deprecatedTip("CCPlace","cc.Place") - return cc.Place -end -_G["CCPlace"] = DeprecatedClass.CCPlace() ---CCPlace class will be Deprecated,end - - ---CCGLProgram class will be Deprecated,begin -function DeprecatedClass.CCGLProgram() - deprecatedTip("CCGLProgram","cc.GLProgram") - return cc.GLProgram -end -_G["CCGLProgram"] = DeprecatedClass.CCGLProgram() ---CCGLProgram class will be Deprecated,end - ---CCEaseBounceOut class will be Deprecated,begin -function DeprecatedClass.CCEaseBounceOut() - deprecatedTip("CCEaseBounceOut","cc.EaseBounceOut") - return cc.EaseBounceOut -end -_G["CCEaseBounceOut"] = DeprecatedClass.CCEaseBounceOut() ---CCEaseBounceOut class will be Deprecated,end - ---CCCardinalSplineBy class will be Deprecated,begin -function DeprecatedClass.CCCardinalSplineBy() - deprecatedTip("CCCardinalSplineBy","cc.CardinalSplineBy") - return cc.CardinalSplineBy -end -_G["CCCardinalSplineBy"] = DeprecatedClass.CCCardinalSplineBy() ---CCCardinalSplineBy class will be Deprecated,end - ---CCSpriteFrameCache class will be Deprecated,begin -function DeprecatedClass.CCSpriteFrameCache() - deprecatedTip("CCSpriteFrameCache","cc.SpriteFrameCache") - return cc.SpriteFrameCache -end -_G["CCSpriteFrameCache"] = DeprecatedClass.CCSpriteFrameCache() ---CCSpriteFrameCache class will be Deprecated,end - ---CCTransitionShrinkGrow class will be Deprecated,begin -function DeprecatedClass.CCTransitionShrinkGrow() - deprecatedTip("CCTransitionShrinkGrow","cc.TransitionShrinkGrow") - return cc.TransitionShrinkGrow -end -_G["CCTransitionShrinkGrow"] = DeprecatedClass.CCTransitionShrinkGrow() ---CCTransitionShrinkGrow class will be Deprecated,end - ---CCSplitCols class will be Deprecated,begin -function DeprecatedClass.CCSplitCols() - deprecatedTip("CCSplitCols","cc.SplitCols") - return cc.SplitCols -end -_G["CCSplitCols"] = DeprecatedClass.CCSplitCols() ---CCSplitCols class will be Deprecated,end - ---CCClippingNode class will be Deprecated,begin -function DeprecatedClass.CCClippingNode() - deprecatedTip("CCClippingNode","cc.ClippingNode") - return cc.ClippingNode -end -_G["CCClippingNode"] = DeprecatedClass.CCClippingNode() ---CCClippingNode class will be Deprecated,end - ---CCEaseBounceInOut class will be Deprecated,begin -function DeprecatedClass.CCEaseBounceInOut() - deprecatedTip("CCEaseBounceInOut","cc.EaseBounceInOut") - return cc.EaseBounceInOut -end -_G["CCEaseBounceInOut"] = DeprecatedClass.CCEaseBounceInOut() ---CCEaseBounceInOut class will be Deprecated,end - ---CCLiquid class will be Deprecated,begin -function DeprecatedClass.CCLiquid() - deprecatedTip("CCLiquid","cc.Liquid") - return cc.Liquid -end -_G["CCLiquid"] = DeprecatedClass.CCLiquid() ---CCLiquid class will be Deprecated,end - ---CCParticleFlower class will be Deprecated,begin -function DeprecatedClass.CCParticleFlower() - deprecatedTip("CCParticleFlower","cc.ParticleFlower") - return cc.ParticleFlower -end -_G["CCParticleFlower"] = DeprecatedClass.CCParticleFlower() ---CCParticleFlower class will be Deprecated,end - ---CCParticleSmoke class will be Deprecated,begin -function DeprecatedClass.CCParticleSmoke() - deprecatedTip("CCParticleSmoke","cc.ParticleSmoke") - return cc.ParticleSmoke -end -_G["CCParticleSmoke"] = DeprecatedClass.CCParticleSmoke() ---CCParticleSmoke class will be Deprecated,end - ---CCImage class will be Deprecated,begin -function DeprecatedClass.CCImage() - deprecatedTip("CCImage","cc.Image") - return cc.Image -end -_G["CCImage"] = DeprecatedClass.CCImage() ---CCImage class will be Deprecated,end - ---CCTurnOffTiles class will be Deprecated,begin -function DeprecatedClass.CCTurnOffTiles() - deprecatedTip("CCTurnOffTiles","cc.TurnOffTiles") - return cc.TurnOffTiles -end -_G["CCTurnOffTiles"] = DeprecatedClass.CCTurnOffTiles() ---CCTurnOffTiles class will be Deprecated,end - ---CCBlink class will be Deprecated,begin -function DeprecatedClass.CCBlink() - deprecatedTip("CCBlink","cc.Blink") - return cc.Blink -end -_G["CCBlink"] = DeprecatedClass.CCBlink() ---CCBlink class will be Deprecated,end - ---CCShaderCache class will be Deprecated,begin -function DeprecatedClass.CCShaderCache() - deprecatedTip("CCShaderCache","cc.ShaderCache") - return cc.ShaderCache -end -_G["CCShaderCache"] = DeprecatedClass.CCShaderCache() ---CCShaderCache class will be Deprecated,end - ---CCJumpTo class will be Deprecated,begin -function DeprecatedClass.CCJumpTo() - deprecatedTip("CCJumpTo","cc.JumpTo") - return cc.JumpTo -end -_G["CCJumpTo"] = DeprecatedClass.CCJumpTo() ---CCJumpTo class will be Deprecated,end - ---CCAtlasNode class will be Deprecated,begin -function DeprecatedClass.CCAtlasNode() - deprecatedTip("CCAtlasNode","cc.AtlasNode") - return cc.AtlasNode -end -_G["CCAtlasNode"] = DeprecatedClass.CCAtlasNode() ---CCAtlasNode class will be Deprecated,end - ---CCTransitionJumpZoom class will be Deprecated,begin -function DeprecatedClass.CCTransitionJumpZoom() - deprecatedTip("CCTransitionJumpZoom","cc.TransitionJumpZoom") - return cc.TransitionJumpZoom -end -_G["CCTransitionJumpZoom"] = DeprecatedClass.CCTransitionJumpZoom() ---CCTransitionJumpZoom class will be Deprecated,end - ---CCTransitionProgressVertical class will be Deprecated,begin -function DeprecatedClass.CCTransitionProgressVertical() - deprecatedTip("CCTransitionProgressVertical","cc.TransitionProgressVertical") - return cc.TransitionProgressVertical -end -_G["CCTransitionProgressVertical"] = DeprecatedClass.CCTransitionProgressVertical() ---CCTransitionProgressVertical class will be Deprecated,end - ---CCAnimationFrame class will be Deprecated,begin -function DeprecatedClass.CCAnimationFrame() - deprecatedTip("CCAnimationFrame","cc.AnimationFrame") - return cc.AnimationFrame -end -_G["CCAnimationFrame"] = DeprecatedClass.CCAnimationFrame() ---CCAnimationFrame class will be Deprecated,end - ---CCTintTo class will be Deprecated,begin -function DeprecatedClass.CCTintTo() - deprecatedTip("CCTintTo","cc.TintTo") - return cc.TintTo -end -_G["CCTintTo"] = DeprecatedClass.CCTintTo() ---CCTintTo class will be Deprecated,end - ---CCTiledGrid3DAction class will be Deprecated,begin -function DeprecatedClass.CCTiledGrid3DAction() - deprecatedTip("CCTiledGrid3DAction","cc.TiledGrid3DAction") - return cc.TiledGrid3DAction -end -_G["CCTiledGrid3DAction"] = DeprecatedClass.CCTiledGrid3DAction() ---CCTiledGrid3DAction class will be Deprecated,end - ---CCTMXTilesetInfo class will be Deprecated,begin -function DeprecatedClass.CCTMXTilesetInfo() - deprecatedTip("CCTMXTilesetInfo","cc.TMXTilesetInfo") - return cc.TMXTilesetInfo -end -_G["CCTMXTilesetInfo"] = DeprecatedClass.CCTMXTilesetInfo() ---CCTMXTilesetInfo class will be Deprecated,end - ---CCTMXObjectGroup class will be Deprecated,begin -function DeprecatedClass.CCTMXObjectGroup() - deprecatedTip("CCTMXObjectGroup","cc.TMXObjectGroup") - return cc.TMXObjectGroup -end -_G["CCTMXObjectGroup"] = DeprecatedClass.CCTMXObjectGroup() ---CCTMXObjectGroup class will be Deprecated,end - ---CCParticleGalaxy class will be Deprecated,begin -function DeprecatedClass.CCParticleGalaxy() - deprecatedTip("CCParticleGalaxy","cc.ParticleGalaxy") - return cc.ParticleGalaxy -end -_G["CCParticleGalaxy"] = DeprecatedClass.CCParticleGalaxy() ---CCParticleGalaxy class will be Deprecated,end - ---CCTwirl class will be Deprecated,begin -function DeprecatedClass.CCTwirl() - deprecatedTip("CCTwirl","cc.Twirl") - return cc.Twirl -end -_G["CCTwirl"] = DeprecatedClass.CCTwirl() ---CCTwirl class will be Deprecated,end - ---CCMenuItemLabel class will be Deprecated,begin -function DeprecatedClass.CCMenuItemLabel() - deprecatedTip("CCMenuItemLabel","cc.MenuItemLabel") - return cc.MenuItemLabel -end -_G["CCMenuItemLabel"] = DeprecatedClass.CCMenuItemLabel() ---CCMenuItemLabel class will be Deprecated,end - ---CCLayerColor class will be Deprecated,begin -function DeprecatedClass.CCLayerColor() - deprecatedTip("CCLayerColor","cc.LayerColor") - return cc.LayerColor -end -_G["CCLayerColor"] = DeprecatedClass.CCLayerColor() ---CCLayerColor class will be Deprecated,end - ---CCFadeOutBLTiles class will be Deprecated,begin -function DeprecatedClass.CCFadeOutBLTiles() - deprecatedTip("CCFadeOutBLTiles","cc.FadeOutBLTiles") - return cc.FadeOutBLTiles -end -_G["CCFadeOutBLTiles"] = DeprecatedClass.CCFadeOutBLTiles() ---CCFadeOutBLTiles class will be Deprecated,end - ---CCTransitionProgress class will be Deprecated,begin -function DeprecatedClass.CCTransitionProgress() - deprecatedTip("CCTransitionProgress","cc.TransitionProgress") - return cc.TransitionProgress -end -_G["CCTransitionProgress"] = DeprecatedClass.CCTransitionProgress() ---CCTransitionProgress class will be Deprecated,end - ---CCEaseRateAction class will be Deprecated,begin -function DeprecatedClass.CCEaseRateAction() - deprecatedTip("CCEaseRateAction","cc.EaseRateAction") - return cc.EaseRateAction -end -_G["CCEaseRateAction"] = DeprecatedClass.CCEaseRateAction() ---CCEaseRateAction class will be Deprecated,end - ---CCLayerGradient class will be Deprecated,begin -function DeprecatedClass.CCLayerGradient() - deprecatedTip("CCLayerGradient","cc.LayerGradient") - return cc.LayerGradient -end -_G["CCLayerGradient"] = DeprecatedClass.CCLayerGradient() ---CCLayerGradient class will be Deprecated,end - ---CCMenuItemSprite class will be Deprecated,begin -function DeprecatedClass.CCMenuItemSprite() - deprecatedTip("CCMenuItemSprite","cc.MenuItemSprite") - return cc.MenuItemSprite -end -_G["CCMenuItemSprite"] = DeprecatedClass.CCMenuItemSprite() ---CCMenuItemSprite class will be Deprecated,end - ---CCNode class will be Deprecated,begin -function DeprecatedClass.CCNode() - deprecatedTip("CCNode","cc.Node") - return cc.Node -end -_G["CCNode"] = DeprecatedClass.CCNode() ---CCNode class will be Deprecated,end - ---CCToggleVisibility class will be Deprecated,begin -function DeprecatedClass.CCToggleVisibility() - deprecatedTip("CCToggleVisibility","cc.ToggleVisibility") - return cc.ToggleVisibility -end -_G["CCToggleVisibility"] = DeprecatedClass.CCToggleVisibility() ---CCToggleVisibility class will be Deprecated,end - ---CCRepeat class will be Deprecated,begin -function DeprecatedClass.CCRepeat() - deprecatedTip("CCRepeat","cc.Repeat") - return cc.Repeat -end -_G["CCRepeat"] = DeprecatedClass.CCRepeat() ---CCRepeat class will be Deprecated,end - ---CCRenderTexture class will be Deprecated,begin -function DeprecatedClass.CCRenderTexture() - deprecatedTip("CCRenderTexture","cc.RenderTexture") - return cc.RenderTexture -end -_G["CCRenderTexture"] = DeprecatedClass.CCRenderTexture() ---CCRenderTexture class will be Deprecated,end - ---CCTransitionFlipY class will be Deprecated,begin -function DeprecatedClass.CCTransitionFlipY() - deprecatedTip("CCTransitionFlipY","cc.TransitionFlipY") - return cc.TransitionFlipY -end -_G["CCTransitionFlipY"] = DeprecatedClass.CCTransitionFlipY() ---CCTransitionFlipY class will be Deprecated,end - ---CCLayerMultiplex class will be Deprecated,begin -function DeprecatedClass.CCLayerMultiplex() - deprecatedTip("CCLayerMultiplex","cc.LayerMultiplex") - return cc.LayerMultiplex -end -_G["CCLayerMultiplex"] = DeprecatedClass.CCLayerMultiplex() ---CCLayerMultiplex class will be Deprecated,end - ---CCTMXLayerInfo class will be Deprecated,begin -function DeprecatedClass.CCTMXLayerInfo() - deprecatedTip("CCTMXLayerInfo","cc.TMXLayerInfo") - return cc.TMXLayerInfo -end -_G["CCTMXLayerInfo"] = DeprecatedClass.CCTMXLayerInfo() ---CCTMXLayerInfo class will be Deprecated,end - ---CCEaseBackInOut class will be Deprecated,begin -function DeprecatedClass.CCEaseBackInOut() - deprecatedTip("CCEaseBackInOut","cc.EaseBackInOut") - return cc.EaseBackInOut -end -_G["CCEaseBackInOut"] = DeprecatedClass.CCEaseBackInOut() ---CCEaseBackInOut class will be Deprecated,end - ---CCActionInstant class will be Deprecated,begin -function DeprecatedClass.CCActionInstant() - deprecatedTip("CCActionInstant","cc.ActionInstant") - return cc.ActionInstant -end -_G["CCActionInstant"] = DeprecatedClass.CCActionInstant() ---CCActionInstant class will be Deprecated,end - ---CCTargetedAction class will be Deprecated,begin -function DeprecatedClass.CCTargetedAction() - deprecatedTip("CCTargetedAction","cc.TargetedAction") - return cc.TargetedAction -end -_G["CCTargetedAction"] = DeprecatedClass.CCTargetedAction() ---CCTargetedAction class will be Deprecated,end - ---CCDrawNode class will be Deprecated,begin -function DeprecatedClass.CCDrawNode() - deprecatedTip("CCDrawNode","cc.DrawNode") - return cc.DrawNode -end -_G["CCDrawNode"] = DeprecatedClass.CCDrawNode() ---CCDrawNode class will be Deprecated,end - ---CCTransitionTurnOffTiles class will be Deprecated,begin -function DeprecatedClass.CCTransitionTurnOffTiles() - deprecatedTip("CCTransitionTurnOffTiles","cc.TransitionTurnOffTiles") - return cc.TransitionTurnOffTiles -end -_G["CCTransitionTurnOffTiles"] = DeprecatedClass.CCTransitionTurnOffTiles() ---CCTransitionTurnOffTiles class will be Deprecated,end - ---CCRotateTo class will be Deprecated,begin -function DeprecatedClass.CCRotateTo() - deprecatedTip("CCRotateTo","cc.RotateTo") - return cc.RotateTo -end -_G["CCRotateTo"] = DeprecatedClass.CCRotateTo() ---CCRotateTo class will be Deprecated,end - ---CCTransitionSplitRows class will be Deprecated,begin -function DeprecatedClass.CCTransitionSplitRows() - deprecatedTip("CCTransitionSplitRows","cc.TransitionSplitRows") - return cc.TransitionSplitRows -end -_G["CCTransitionSplitRows"] = DeprecatedClass.CCTransitionSplitRows() ---CCTransitionSplitRows class will be Deprecated,end - ---CCTransitionProgressRadialCCW class will be Deprecated,begin -function DeprecatedClass.CCTransitionProgressRadialCCW() - deprecatedTip("CCTransitionProgressRadialCCW","cc.TransitionProgressRadialCCW") - return cc.TransitionProgressRadialCCW -end -_G["CCTransitionProgressRadialCCW"] = DeprecatedClass.CCTransitionProgressRadialCCW() ---CCTransitionProgressRadialCCW class will be Deprecated,end - ---CCScaleTo class will be Deprecated,begin -function DeprecatedClass.CCScaleTo() - deprecatedTip("CCScaleTo","cc.ScaleTo") - return cc.ScaleTo -end -_G["CCScaleTo"] = DeprecatedClass.CCScaleTo() ---CCScaleTo class will be Deprecated,end - ---CCTransitionPageTurn class will be Deprecated,begin -function DeprecatedClass.CCTransitionPageTurn() - deprecatedTip("CCTransitionPageTurn","cc.TransitionPageTurn") - return cc.TransitionPageTurn -end -_G["CCTransitionPageTurn"] = DeprecatedClass.CCTransitionPageTurn() ---CCTransitionPageTurn class will be Deprecated,end - ---CCParticleExplosion class will be Deprecated,begin -function DeprecatedClass.CCParticleExplosion() - deprecatedTip("CCParticleExplosion","cc.ParticleExplosion") - return cc.ParticleExplosion -end -_G["CCParticleExplosion"] = DeprecatedClass.CCParticleExplosion() ---CCParticleExplosion class will be Deprecated,end - ---CCMenu class will be Deprecated,begin -function DeprecatedClass.CCMenu() - deprecatedTip("CCMenu","cc.Menu") - return cc.Menu -end -_G["CCMenu"] = DeprecatedClass.CCMenu() ---CCMenu class will be Deprecated,end - ---CCTexture2D class will be Deprecated,begin -function DeprecatedClass.CCTexture2D() - deprecatedTip("CCTexture2D","cc.Texture2D") - return cc.Texture2D -end -_G["CCTexture2D"] = DeprecatedClass.CCTexture2D() ---CCTexture2D class will be Deprecated,end - ---CCActionManager class will be Deprecated,begin -function DeprecatedClass.CCActionManager() - deprecatedTip("CCActionManager","cc.ActionManager") - return cc.ActionManager -end -_G["CCActionManager"] = DeprecatedClass.CCActionManager() ---CCActionManager class will be Deprecated,end - ---CCParticleBatchNode class will be Deprecated,begin -function DeprecatedClass.CCParticleBatchNode() - deprecatedTip("CCParticleBatchNode","cc.ParticleBatchNode") - return cc.ParticleBatchNode -end -_G["CCParticleBatchNode"] = DeprecatedClass.CCParticleBatchNode() ---CCParticleBatchNode class will be Deprecated,end - ---CCTransitionZoomFlipX class will be Deprecated,begin -function DeprecatedClass.CCTransitionZoomFlipX() - deprecatedTip("CCTransitionZoomFlipX","cc.TransitionZoomFlipX") - return cc.TransitionZoomFlipX -end -_G["CCTransitionZoomFlipX"] = DeprecatedClass.CCTransitionZoomFlipX() ---CCTransitionZoomFlipX class will be Deprecated,end - ---CCScaleBy class will be Deprecated,begin -function DeprecatedClass.CCScaleBy() - deprecatedTip("CCScaleBy","cc.ScaleBy") - return cc.ScaleBy -end -_G["CCScaleBy"] = DeprecatedClass.CCScaleBy() ---CCScaleBy class will be Deprecated,end - ---CCTileMapAtlas class will be Deprecated,begin -function DeprecatedClass.CCTileMapAtlas() - deprecatedTip("CCTileMapAtlas","cc.TileMapAtlas") - return cc.TileMapAtlas -end -_G["CCTileMapAtlas"] = DeprecatedClass.CCTileMapAtlas() ---CCTileMapAtlas class will be Deprecated,end - ---CCAction class will be Deprecated,begin -function DeprecatedClass.CCAction() - deprecatedTip("CCAction","cc.Action") - return cc.Action -end -_G["CCAction"] = DeprecatedClass.CCAction() ---CCAction class will be Deprecated,end - ---CCLens3D class will be Deprecated,begin -function DeprecatedClass.CCLens3D() - deprecatedTip("CCLens3D","cc.Lens3D") - return cc.Lens3D -end -_G["CCLens3D"] = DeprecatedClass.CCLens3D() ---CCLens3D class will be Deprecated,end - ---CCAnimation class will be Deprecated,begin -function DeprecatedClass.CCAnimation() - deprecatedTip("CCAnimation","cc.Animation") - return cc.Animation -end -_G["CCAnimation"] = DeprecatedClass.CCAnimation() ---CCAnimation class will be Deprecated,end - ---CCTransitionSlideInT class will be Deprecated,begin -function DeprecatedClass.CCTransitionSlideInT() - deprecatedTip("CCTransitionSlideInT","cc.TransitionSlideInT") - return cc.TransitionSlideInT -end -_G["CCTransitionSlideInT"] = DeprecatedClass.CCTransitionSlideInT() ---CCTransitionSlideInT class will be Deprecated,end - ---CCSpawn class will be Deprecated,begin -function DeprecatedClass.CCSpawn() - deprecatedTip("CCSpawn","cc.Spawn") - return cc.Spawn -end -_G["CCSpawn"] = DeprecatedClass.CCSpawn() ---CCSpawn class will be Deprecated,end - ---CCSet class will be Deprecated,begin -function DeprecatedClass.CCSet() - deprecatedTip("CCSet","cc.Set") - return cc.Set -end -_G["CCSet"] = DeprecatedClass.CCSet() ---CCSet class will be Deprecated,end - ---CCShakyTiles3D class will be Deprecated,begin -function DeprecatedClass.CCShakyTiles3D() - deprecatedTip("CCShakyTiles3D","cc.ShakyTiles3D") - return cc.ShakyTiles3D -end -_G["CCShakyTiles3D"] = DeprecatedClass.CCShakyTiles3D() ---CCShakyTiles3D class will be Deprecated,end - ---CCPageTurn3D class will be Deprecated,begin -function DeprecatedClass.CCPageTurn3D() - deprecatedTip("CCPageTurn3D","cc.PageTurn3D") - return cc.PageTurn3D -end -_G["CCPageTurn3D"] = DeprecatedClass.CCPageTurn3D() ---CCPageTurn3D class will be Deprecated,end - ---CCGrid3D class will be Deprecated,begin -function DeprecatedClass.CCGrid3D() - deprecatedTip("CCGrid3D","cc.Grid3D") - return cc.Grid3D -end -_G["CCGrid3D"] = DeprecatedClass.CCGrid3D() ---CCGrid3D class will be Deprecated,end - ---CCTransitionProgressInOut class will be Deprecated,begin -function DeprecatedClass.CCTransitionProgressInOut() - deprecatedTip("CCTransitionProgressInOut","cc.TransitionProgressInOut") - return cc.TransitionProgressInOut -end -_G["CCTransitionProgressInOut"] = DeprecatedClass.CCTransitionProgressInOut() ---CCTransitionProgressInOut class will be Deprecated,end - ---CCTransitionFadeBL class will be Deprecated,begin -function DeprecatedClass.CCTransitionFadeBL() - deprecatedTip("CCTransitionFadeBL","cc.TransitionFadeBL") - return cc.TransitionFadeBL -end -_G["CCTransitionFadeBL"] = DeprecatedClass.CCTransitionFadeBL() ---CCTransitionFadeBL class will be Deprecated,end - ---CCCamera class will be Deprecated,begin -function DeprecatedClass.CCCamera() - deprecatedTip("CCCamera","cc.Camera") - return cc.Camera -end -_G["CCCamera"] = DeprecatedClass.CCCamera() ---CCCamera class will be Deprecated,end - ---CCLayerRGBA class will be Deprecated,begin -function DeprecatedClass.CCLayerRGBA() - deprecatedTip("CCLayerRGBA","cc.Layer") - return cc.Layer -end -_G["CCLayerRGBA"] = DeprecatedClass.CCLayerRGBA() ---CCLayerRGBA class will be Deprecated,end - ---LayerRGBA class will be Deprecated,begin -function DeprecatedClass.LayerRGBA() - deprecatedTip("cc.LayerRGBA","cc.Layer") - return cc.Layer -end -_G["cc"]["LayerRGBA"] = DeprecatedClass.LayerRGBA() ---LayerRGBA class will be Deprecated,end - ---CCBezierTo class will be Deprecated,begin -function DeprecatedClass.CCBezierTo() - deprecatedTip("CCBezierTo","cc.BezierTo") - return cc.BezierTo -end -_G["CCBezierTo"] = DeprecatedClass.CCBezierTo() ---CCBezierTo class will be Deprecated,end - ---CCFollow class will be Deprecated,begin -function DeprecatedClass.CCFollow() - deprecatedTip("CCFollow","cc.Follow") - return cc.Follow -end -_G["CCFollow"] = DeprecatedClass.CCFollow() ---CCFollow class will be Deprecated,end - ---CCTintBy class will be Deprecated,begin -function DeprecatedClass.CCTintBy() - deprecatedTip("CCTintBy","cc.TintBy") - return cc.TintBy -end -_G["CCTintBy"] = DeprecatedClass.CCTintBy() ---CCTintBy class will be Deprecated,end - ---CCActionInterval class will be Deprecated,begin -function DeprecatedClass.CCActionInterval() - deprecatedTip("CCActionInterval","cc.ActionInterval") - return cc.ActionInterval -end -_G["CCActionInterval"] = DeprecatedClass.CCActionInterval() ---CCActionInterval class will be Deprecated,end - ---CCAnimate class will be Deprecated,begin -function DeprecatedClass.CCAnimate() - deprecatedTip("CCAnimate","cc.Animate") - return cc.Animate -end -_G["CCAnimate"] = DeprecatedClass.CCAnimate() ---CCAnimate class will be Deprecated,end - ---CCProgressTimer class will be Deprecated,begin -function DeprecatedClass.CCProgressTimer() - deprecatedTip("CCProgressTimer","cc.ProgressTimer") - return cc.ProgressTimer -end -_G["CCProgressTimer"] = DeprecatedClass.CCProgressTimer() ---CCProgressTimer class will be Deprecated,end - ---CCParticleMeteor class will be Deprecated,begin -function DeprecatedClass.CCParticleMeteor() - deprecatedTip("CCParticleMeteor","cc.ParticleMeteor") - return cc.ParticleMeteor -end -_G["CCParticleMeteor"] = DeprecatedClass.CCParticleMeteor() ---CCParticleMeteor class will be Deprecated,end - ---CCTransitionFadeTR class will be Deprecated,begin -function DeprecatedClass.CCTransitionFadeTR() - deprecatedTip("CCTransitionFadeTR","cc.TransitionFadeTR") - return cc.TransitionFadeTR -end -_G["CCTransitionFadeTR"] = DeprecatedClass.CCTransitionFadeTR() ---CCTransitionFadeTR class will be Deprecated,end - ---CCCatmullRomTo class will be Deprecated,begin -function DeprecatedClass.CCCatmullRomTo() - deprecatedTip("CCCatmullRomTo","cc.CatmullRomTo") - return cc.CatmullRomTo -end -_G["CCCatmullRomTo"] = DeprecatedClass.CCCatmullRomTo() ---CCCatmullRomTo class will be Deprecated,end - ---CCTransitionZoomFlipY class will be Deprecated,begin -function DeprecatedClass.CCTransitionZoomFlipY() - deprecatedTip("CCTransitionZoomFlipY","cc.TransitionZoomFlipY") - return cc.TransitionZoomFlipY -end -_G["CCTransitionZoomFlipY"] = DeprecatedClass.CCTransitionZoomFlipY() ---CCTransitionZoomFlipY class will be Deprecated,end - ---CCTransitionCrossFade class will be Deprecated,begin -function DeprecatedClass.CCTransitionCrossFade() - deprecatedTip("CCTransitionCrossFade","cc.TransitionCrossFade") - return cc.TransitionCrossFade -end -_G["CCTransitionCrossFade"] = DeprecatedClass.CCTransitionCrossFade() ---CCTransitionCrossFade class will be Deprecated,end - ---CCGridBase class will be Deprecated,begin -function DeprecatedClass.CCGridBase() - deprecatedTip("CCGridBase","cc.GridBase") - return cc.GridBase -end -_G["CCGridBase"] = DeprecatedClass.CCGridBase() ---CCGridBase class will be Deprecated,end - ---CCSkewTo class will be Deprecated,begin -function DeprecatedClass.CCSkewTo() - deprecatedTip("CCSkewTo","cc.SkewTo") - return cc.SkewTo -end -_G["CCSkewTo"] = DeprecatedClass.CCSkewTo() ---CCSkewTo class will be Deprecated,end - ---CCCardinalSplineTo class will be Deprecated,begin -function DeprecatedClass.CCCardinalSplineTo() - deprecatedTip("CCCardinalSplineTo","cc.CardinalSplineTo") - return cc.CardinalSplineTo -end -_G["CCCardinalSplineTo"] = DeprecatedClass.CCCardinalSplineTo() ---CCCardinalSplineTo class will be Deprecated,end - ---CCTMXMapInfo class will be Deprecated,begin -function DeprecatedClass.CCTMXMapInfo() - deprecatedTip("CCTMXMapInfo","cc.TMXMapInfo") - return cc.TMXMapInfo -end -_G["CCTMXMapInfo"] = DeprecatedClass.CCTMXMapInfo() ---CCTMXMapInfo class will be Deprecated,end - ---CCEaseExponentialIn class will be Deprecated,begin -function DeprecatedClass.CCEaseExponentialIn() - deprecatedTip("CCEaseExponentialIn","cc.EaseExponentialIn") - return cc.EaseExponentialIn -end -_G["CCEaseExponentialIn"] = DeprecatedClass.CCEaseExponentialIn() ---CCEaseExponentialIn class will be Deprecated,end - ---CCReuseGrid class will be Deprecated,begin -function DeprecatedClass.CCReuseGrid() - deprecatedTip("CCReuseGrid","cc.ReuseGrid") - return cc.ReuseGrid -end -_G["CCReuseGrid"] = DeprecatedClass.CCReuseGrid() ---CCReuseGrid class will be Deprecated,end - ---CCMenuItemAtlasFont class will be Deprecated,begin -function DeprecatedClass.CCMenuItemAtlasFont() - deprecatedTip("CCMenuItemAtlasFont","cc.MenuItemAtlasFont") - return cc.MenuItemAtlasFont -end -_G["CCMenuItemAtlasFont"] = DeprecatedClass.CCMenuItemAtlasFont() ---CCMenuItemAtlasFont class will be Deprecated,end - ---CCSpriteFrame class will be Deprecated,begin -function DeprecatedClass.CCSpriteFrame() - deprecatedTip("CCSpriteFrame","cc.SpriteFrame") - return cc.SpriteFrame -end -_G["CCSpriteFrame"] = DeprecatedClass.CCSpriteFrame() ---CCSpriteFrame class will be Deprecated,end - ---CCSplitRows class will be Deprecated,begin -function DeprecatedClass.CCSplitRows() - deprecatedTip("CCSplitRows","cc.SplitRows") - return cc.SplitRows -end -_G["CCSplitRows"] = DeprecatedClass.CCSplitRows() ---CCSplitRows class will be Deprecated,end - ---CCSprite class will be Deprecated,begin -function DeprecatedClass.CCSprite() - deprecatedTip("CCSprite","cc.Sprite") - return cc.Sprite -end -_G["CCSprite"] = DeprecatedClass.CCSprite() ---CCSprite class will be Deprecated,end - ---CCOrbitCamera class will be Deprecated,begin -function DeprecatedClass.CCOrbitCamera() - deprecatedTip("CCOrbitCamera","cc.OrbitCamera") - return cc.OrbitCamera -end -_G["CCOrbitCamera"] = DeprecatedClass.CCOrbitCamera() ---CCOrbitCamera class will be Deprecated,end - ---CCUserDefault class will be Deprecated,begin -function DeprecatedClass.CCUserDefault() - deprecatedTip("CCUserDefault","cc.UserDefault") - return cc.UserDefault -end -_G["CCUserDefault"] = DeprecatedClass.CCUserDefault() ---CCUserDefault class will be Deprecated,end - ---CCFadeOutUpTiles class will be Deprecated,begin -function DeprecatedClass.CCFadeOutUpTiles() - deprecatedTip("CCFadeOutUpTiles","cc.FadeOutUpTiles") - return cc.FadeOutUpTiles -end -_G["CCFadeOutUpTiles"] = DeprecatedClass.CCFadeOutUpTiles() ---CCFadeOutUpTiles class will be Deprecated,end - ---CCParticleRain class will be Deprecated,begin -function DeprecatedClass.CCParticleRain() - deprecatedTip("CCParticleRain","cc.ParticleRain") - return cc.ParticleRain -end -_G["CCParticleRain"] = DeprecatedClass.CCParticleRain() ---CCParticleRain class will be Deprecated,end - ---CCWaves class will be Deprecated,begin -function DeprecatedClass.CCWaves() - deprecatedTip("CCWaves","cc.Waves") - return cc.Waves -end -_G["CCWaves"] = DeprecatedClass.CCWaves() ---CCWaves class will be Deprecated,end - ---CCEaseOut class will be Deprecated,begin -function DeprecatedClass.CCEaseOut() - deprecatedTip("CCEaseOut","cc.EaseOut") - return cc.EaseOut -end -_G["CCEaseOut"] = DeprecatedClass.CCEaseOut() ---CCEaseOut class will be Deprecated,end - ---CCEaseBounceIn class will be Deprecated,begin -function DeprecatedClass.CCEaseBounceIn() - deprecatedTip("CCEaseBounceIn","cc.EaseBounceIn") - return cc.EaseBounceIn -end -_G["CCEaseBounceIn"] = DeprecatedClass.CCEaseBounceIn() ---CCEaseBounceIn class will be Deprecated,end - ---CCMenuItemFont class will be Deprecated,begin -function DeprecatedClass.CCMenuItemFont() - deprecatedTip("CCMenuItemFont","cc.MenuItemFont") - return cc.MenuItemFont -end -_G["CCMenuItemFont"] = DeprecatedClass.CCMenuItemFont() ---CCMenuItemFont class will be Deprecated,end - ---CCEaseSineOut class will be Deprecated,begin -function DeprecatedClass.CCEaseSineOut() - deprecatedTip("CCEaseSineOut","cc.EaseSineOut") - return cc.EaseSineOut -end -_G["CCEaseSineOut"] = DeprecatedClass.CCEaseSineOut() ---CCEaseSineOut class will be Deprecated,end - ---CCTextureCache class will be Deprecated,begin -function DeprecatedClass.CCTextureCache() - deprecatedTip("CCTextureCache","cc.TextureCache") - return cc.TextureCache -end -_G["CCTextureCache"] = DeprecatedClass.CCTextureCache() ---CCTextureCache class will be Deprecated,end - ---CCTiledGrid3D class will be Deprecated,begin -function DeprecatedClass.CCTiledGrid3D() - deprecatedTip("CCTiledGrid3D","cc.TiledGrid3D") - return cc.TiledGrid3D -end -_G["CCTiledGrid3D"] = DeprecatedClass.CCTiledGrid3D() ---CCTiledGrid3D class will be Deprecated,end - ---CCRemoveSelf class will be Deprecated,begin -function DeprecatedClass.CCRemoveSelf() - deprecatedTip("CCRemoveSelf","cc.RemoveSelf") - return cc.RemoveSelf -end -_G["CCRemoveSelf"] = DeprecatedClass.CCRemoveSelf() ---CCRemoveSelf class will be Deprecated,end - ---CCLabelTTF class will be Deprecated,begin -function DeprecatedClass.CCLabelTTF() - deprecatedTip("CCLabelTTF","cc.LabelTTF") - return cc.LabelTTF -end -_G["CCLabelTTF"] = DeprecatedClass.CCLabelTTF() ---CCLabelTTF class will be Deprecated,end - ---CCTouch class will be Deprecated,begin -function DeprecatedClass.CCTouch() - deprecatedTip("CCTouch","cc.Touch") - return cc.Touch -end -_G["CCTouch"] = DeprecatedClass.CCTouch() ---CCTouch class will be Deprecated,end - ---CCMoveBy class will be Deprecated,begin -function DeprecatedClass.CCMoveBy() - deprecatedTip("CCMoveBy","cc.MoveBy") - return cc.MoveBy -end -_G["CCMoveBy"] = DeprecatedClass.CCMoveBy() ---CCMoveBy class will be Deprecated,end - ---CCMotionStreak class will be Deprecated,begin -function DeprecatedClass.CCMotionStreak() - deprecatedTip("CCMotionStreak","cc.MotionStreak") - return cc.MotionStreak -end -_G["CCMotionStreak"] = DeprecatedClass.CCMotionStreak() ---CCMotionStreak class will be Deprecated,end - ---CCRotateBy class will be Deprecated,begin -function DeprecatedClass.CCRotateBy() - deprecatedTip("CCRotateBy","cc.RotateBy") - return cc.RotateBy -end -_G["CCRotateBy"] = DeprecatedClass.CCRotateBy() ---CCRotateBy class will be Deprecated,end - ---CCFileUtils class will be Deprecated,begin -function DeprecatedClass.CCFileUtils() - deprecatedTip("CCFileUtils","cc.FileUtils") - return cc.FileUtils -end -_G["CCFileUtils"] = DeprecatedClass.CCFileUtils() ---CCFileUtils class will be Deprecated,end - ---CCBezierBy class will be Deprecated,begin -function DeprecatedClass.CCBezierBy() - deprecatedTip("CCBezierBy","cc.BezierBy") - return cc.BezierBy -end -_G["CCBezierBy"] = DeprecatedClass.CCBezierBy() ---CCBezierBy class will be Deprecated,end - ---CCTransitionFade class will be Deprecated,begin -function DeprecatedClass.CCTransitionFade() - deprecatedTip("CCTransitionFade","cc.TransitionFade") - return cc.TransitionFade -end -_G["CCTransitionFade"] = DeprecatedClass.CCTransitionFade() ---CCTransitionFade class will be Deprecated,end - ---CCTransitionProgressOutIn class will be Deprecated,begin -function DeprecatedClass.CCTransitionProgressOutIn() - deprecatedTip("CCTransitionProgressOutIn","cc.TransitionProgressOutIn") - return cc.TransitionProgressOutIn -end -_G["CCTransitionProgressOutIn"] = DeprecatedClass.CCTransitionProgressOutIn() ---CCTransitionProgressOutIn class will be Deprecated,end - ---CCCatmullRomBy class will be Deprecated,begin -function DeprecatedClass.CCCatmullRomBy() - deprecatedTip("CCCatmullRomBy","cc.CatmullRomBy") - return cc.CatmullRomBy -end -_G["CCCatmullRomBy"] = DeprecatedClass.CCCatmullRomBy() ---CCCatmullRomBy class will be Deprecated,end - ---CCGridAction class will be Deprecated,begin -function DeprecatedClass.CCGridAction() - deprecatedTip("CCGridAction","cc.GridAction") - return cc.GridAction -end -_G["CCGridAction"] = DeprecatedClass.CCGridAction() ---CCGridAction class will be Deprecated,end - ---CCShaky3D class will be Deprecated,begin -function DeprecatedClass.CCShaky3D() - deprecatedTip("CCShaky3D","cc.Shaky3D") - return cc.Shaky3D -end -_G["CCShaky3D"] = DeprecatedClass.CCShaky3D() ---CCShaky3D class will be Deprecated,end - ---CCTransitionEaseScene class will be Deprecated,begin -function DeprecatedClass.CCTransitionEaseScene() - deprecatedTip("CCTransitionEaseScene","cc.TransitionEaseScene") - return cc.TransitionEaseScene -end -_G["CCTransitionEaseScene"] = DeprecatedClass.CCTransitionEaseScene() ---CCTransitionEaseScene class will be Deprecated,end - ---CCSequence class will be Deprecated,begin -function DeprecatedClass.CCSequence() - deprecatedTip("CCSequence","cc.Sequence") - return cc.Sequence -end -_G["CCSequence"] = DeprecatedClass.CCSequence() ---CCSequence class will be Deprecated,end - ---CCTransitionFadeUp class will be Deprecated,begin -function DeprecatedClass.CCTransitionFadeUp() - deprecatedTip("CCTransitionFadeUp","cc.TransitionFadeUp") - return cc.TransitionFadeUp -end -_G["CCTransitionFadeUp"] = DeprecatedClass.CCTransitionFadeUp() ---CCTransitionFadeUp class will be Deprecated,end - ---CCTransitionProgressRadialCW class will be Deprecated,begin -function DeprecatedClass.CCTransitionProgressRadialCW() - deprecatedTip("CCTransitionProgressRadialCW","cc.TransitionProgressRadialCW") - return cc.TransitionProgressRadialCW -end -_G["CCTransitionProgressRadialCW"] = DeprecatedClass.CCTransitionProgressRadialCW() ---CCTransitionProgressRadialCW class will be Deprecated,end - ---CCShuffleTiles class will be Deprecated,begin -function DeprecatedClass.CCShuffleTiles() - deprecatedTip("CCShuffleTiles","cc.ShuffleTiles") - return cc.ShuffleTiles -end -_G["CCShuffleTiles"] = DeprecatedClass.CCShuffleTiles() ---CCShuffleTiles class will be Deprecated,end - ---CCTransitionSlideInR class will be Deprecated,begin -function DeprecatedClass.CCTransitionSlideInR() - deprecatedTip("CCTransitionSlideInR","cc.TransitionSlideInR") - return cc.TransitionSlideInR -end -_G["CCTransitionSlideInR"] = DeprecatedClass.CCTransitionSlideInR() ---CCTransitionSlideInR class will be Deprecated,end - ---CCScene class will be Deprecated,begin -function DeprecatedClass.CCScene() - deprecatedTip("CCScene","cc.Scene") - return cc.Scene -end -_G["CCScene"] = DeprecatedClass.CCScene() ---CCScene class will be Deprecated,end - ---CCParallaxNode class will be Deprecated,begin -function DeprecatedClass.CCParallaxNode() - deprecatedTip("CCParallaxNode","cc.ParallaxNode") - return cc.ParallaxNode -end -_G["CCParallaxNode"] = DeprecatedClass.CCParallaxNode() ---CCParallaxNode class will be Deprecated,end - ---CCTransitionSlideInL class will be Deprecated,begin -function DeprecatedClass.CCTransitionSlideInL() - deprecatedTip("CCTransitionSlideInL","cc.TransitionSlideInL") - return cc.TransitionSlideInL -end -_G["CCTransitionSlideInL"] = DeprecatedClass.CCTransitionSlideInL() ---CCTransitionSlideInL class will be Deprecated,end - ---CCWavesTiles3D class will be Deprecated,begin -function DeprecatedClass.CCWavesTiles3D() - deprecatedTip("CCWavesTiles3D","cc.WavesTiles3D") - return cc.WavesTiles3D -end -_G["CCWavesTiles3D"] = DeprecatedClass.CCWavesTiles3D() ---CCWavesTiles3D class will be Deprecated,end - ---CCTransitionSlideInB class will be Deprecated,begin -function DeprecatedClass.CCTransitionSlideInB() - deprecatedTip("CCTransitionSlideInB","cc.TransitionSlideInB") - return cc.TransitionSlideInB -end -_G["CCTransitionSlideInB"] = DeprecatedClass.CCTransitionSlideInB() ---CCTransitionSlideInB class will be Deprecated,end - ---CCSpeed class will be Deprecated,begin -function DeprecatedClass.CCSpeed() - deprecatedTip("CCSpeed","cc.Speed") - return cc.Speed -end -_G["CCSpeed"] = DeprecatedClass.CCSpeed() ---CCSpeed class will be Deprecated,end - ---CCShatteredTiles3D class will be Deprecated,begin -function DeprecatedClass.CCShatteredTiles3D() - deprecatedTip("CCShatteredTiles3D","cc.ShatteredTiles3D") - return cc.ShatteredTiles3D -end -_G["CCShatteredTiles3D"] = DeprecatedClass.CCShatteredTiles3D() ---CCShatteredTiles3D class will be Deprecated,end - ---CCCallFuncN class will be Deprecated,begin -function DeprecatedClass.CCCallFuncN() - deprecatedTip("CCCallFuncN","cc.CallFunc") - return cc.CallFunc -end -_G["CCCallFuncN"] = DeprecatedClass.CCCallFuncN() ---CCCallFuncN class will be Deprecated,end - ---CCEGLViewProtocol class will be Deprecated,begin -function DeprecatedClass.CCEGLViewProtocol() - deprecatedTip("CCEGLViewProtocol","cc.GLViewProtocol") - return cc.GLViewProtocol -end -_G["CCEGLViewProtocol"] = DeprecatedClass.CCEGLViewProtocol() ---CCEGLViewProtocol class will be Deprecated,end - ---CCEGLView class will be Deprecated,begin -function DeprecatedClass.CCEGLView() - deprecatedTip("CCEGLView","cc.GLView") - return cc.GLView -end - -_G["CCEGLView"] = DeprecatedClass.CCEGLView() ---CCEGLView class will be Deprecated,end - ---XMLHttpRequest class will be Deprecated,begin -function DeprecatedClass.XMLHttpRequest() - deprecatedTip("XMLHttpRequest","cc.XMLHttpRequest") - return cc.XMLHttpRequest -end -_G["XMLHttpRequest"] = DeprecatedClass.XMLHttpRequest() ---XMLHttpRequest class will be Deprecated,end - ---EGLViewProtocol class will be Deprecated,begin -function DeprecatedClass.EGLViewProtocol() - deprecatedTip("cc.EGLViewProtocol","cc.GLViewProtocol") - return cc.GLViewProtocol -end -_G["cc.EGLViewProtocol"] = DeprecatedClass.EGLViewProtocol() ---EGLViewProtocol class will be Deprecated,end - ---EGLView class will be Deprecated,begin -function DeprecatedClass.EGLView() - deprecatedTip("cc.EGLView","cc.GLView") - return cc.GLView -end -_G["cc.EGLView"] = DeprecatedClass.EGLView() ---EGLView class will be Deprecated,end - ---EGLView class will be Deprecated,begin -function DeprecatedClass.EGLView() - deprecatedTip("cc.EGLView","cc.GLView") - print(cc.GLView) - return cc.GLView -end -_G["cc.EGLView"] = DeprecatedClass.EGLView() ---EGLView class will be Deprecated,end - ---ShaderCache class will be Deprecated,begin -function DeprecatedClass.ShaderCache() - deprecatedTip("cc.ShaderCache","cc.GLProgramCache") - return cc.GLProgramCache -end -cc.ShaderCache = DeprecatedClass.ShaderCache() ---ShaderCache class will be Deprecated,end - - - diff --git a/extensions/scripting/lua-bindings/script/cocos2d/DeprecatedCocos2dEnum.lua b/extensions/scripting/lua-bindings/script/cocos2d/DeprecatedCocos2dEnum.lua deleted file mode 100644 index 0afe085fc9..0000000000 --- a/extensions/scripting/lua-bindings/script/cocos2d/DeprecatedCocos2dEnum.lua +++ /dev/null @@ -1,81 +0,0 @@ - ---Enums will be deprecated,begin -_G.kCCTextAlignmentLeft = cc.TEXT_ALIGNMENT_LEFT -_G.kCCTextAlignmentRight = cc.TEXT_ALIGNMENT_RIGHT -_G.kCCTextAlignmentCenter = cc.TEXT_ALIGNMENT_CENTER -_G.kCCVerticalTextAlignmentTop = cc.VERTICAL_TEXT_ALIGNMENT_TOP -_G.kCCVerticalTextAlignmentCenter = cc.VERTICAL_TEXT_ALIGNMENT_CENTER -_G.kCCVerticalTextAlignmentBottom = cc.VERTICAL_TEXT_ALIGNMENT_BOTTOM -_G.kCCDirectorProjection3D = cc.DIRECTOR_PROJECTION3_D -_G.kCCDirectorProjection2D = cc.DIRECTOR_PROJECTION2_D -_G.kCCDirectorProjectionCustom = cc.DIRECTOR_PROJECTION_CUSTOM -_G.kCCDirectorProjectionDefault = cc.DIRECTOR_PROJECTION_DEFAULT -_G.kCCNodeTagInvalid = cc.NODE_TAG_INVALID -_G.kCCNodeOnEnter = cc.NODE_ON_ENTER -_G.kCCNodeOnExit = cc.NODE_ON_EXIT --- _G.kCCTexture2DPixelFormat_RGBA8888 = cc.TEXTURE_PF_RGBA8 --- _G.kCCTexture2DPixelFormat_RGB888 = cc.TEXTURE_PF_RGB8 --- _G.kCCTexture2DPixelFormat_RGB565 = cc.TEXTURE_PF_RGB565 --- _G.kCCTexture2DPixelFormat_A8 = cc.TEXTURE_PF_A8 --- _G.kCCTexture2DPixelFormat_I8 = cc.TEXTURE_PF_I8 --- _G.kCCTexture2DPixelFormat_AI88 = cc.TEXTURE_PF_LA8 --- _G.kCCTexture2DPixelFormat_RGBA4444 = cc.TEXTURE_PF_RGBA4 --- _G.kCCTexture2DPixelFormat_RGB5A1 = cc.TEXTURE_PF_RGB5A1 --- _G.kCCTexture2DPixelFormat_PVRTC4 = cc.TEXTURE_PF_PVRTC4 --- _G.kCCTexture2DPixelFormat_PVRTC2 = cc.TEXTURE_PF_PVRTC2 --- _G.kCCTexture2DPixelFormat_Default = cc.TEXTURE_PF_RGBA8 -_G.kCCImageFormatPNG = cc.IMAGE_FORMAT_PNG -_G.kCCImageFormatJPEG = cc.IMAGE_FORMAT_JPEG -_G.kCCTouchesOneByOne = cc.TOUCHES_ONE_BY_ONE -_G.kCCTouchesAllAtOnce = cc.TOUCHES_ALL_AT_ONCE -_G.kCCTransitionOrientationLeftOver = cc.TRANSITION_ORIENTATION_LEFT_OVER -_G.kCCTransitionOrientationRightOver = cc.TRANSITION_ORIENTATION_RIGHT_OVER -_G.kCCTransitionOrientationUpOver = cc.TRANSITION_ORIENTATION_UP_OVER -_G.kCCTransitionOrientationDownOver = cc.TRANSITION_ORIENTATION_DOWN_OVER -_G.kCCActionTagInvalid = cc.ACTION_TAG_INVALID -_G.kCCLabelAutomaticWidth = cc.LABEL_AUTOMATIC_WIDTH -_G.kCCMenuStateWaiting = cc.MENU_STATE_WAITING -_G.kCCMenuStateTrackingTouch = cc.MENU_STATE_TRACKING_TOUCH -_G.kCCMenuHandlerPriority = cc.MENU_HANDLER_PRIORITY -_G.kCCParticleDurationInfinity = cc.PARTICLE_DURATION_INFINITY -_G.kCCParticleStartSizeEqualToEndSize = cc.PARTICLE_START_SIZE_EQUAL_TO_END_SIZE -_G.kCCParticleStartRadiusEqualToEndRadius = cc.PARTICLE_START_RADIUS_EQUAL_TO_END_RADIUS -_G.kCCParticleModeGravity = cc.PARTICLE_MODE_GRAVITY -_G.kCCParticleModeRadius = cc.PARTICLE_MODE_RADIUS -_G.kCCPositionTypeFree = cc.POSITION_TYPE_FREE -_G.kCCPositionTypeRelative = cc.POSITION_TYPE_RELATIVE -_G.kCCPositionTypeGrouped = cc.POSITION_TYPE_GROUPED -_G.kCCProgressTimerTypeRadial = cc.PROGRESS_TIMER_TYPE_RADIAL -_G.kCCProgressTimerTypeBar = cc.PROGRESS_TIMER_TYPE_BAR -_G.kCCTMXTileHorizontalFlag = cc.TMX_TILE_HORIZONTAL_FLAG -_G.kCCTMXTileVerticalFlag = cc.TMX_TILE_VERTICAL_FLAG -_G.kCCTMXTileDiagonalFlag = cc.TMX_TILE_DIAGONAL_FLAG -_G.kCCFlipedAll = cc.FLIPED_ALL -_G.kCCFlippedMask = cc.FLIPPED_MASK - - -cc.PLATFORM_OS_WINDOWS = cc.PLATFORM_WINDOWS -cc.PLATFORM_OS_LINUX = cc.PLATFORM_LINUX -cc.PLATFORM_OS_MAC = cc.PLATFORM_MACOS -cc.PLATFORM_OS_ANDROID = cc.PLATFORM_ANDROID -cc.PLATFORM_OS_IPHONE = cc.PLATFORM_IOS - -_G.kLanguageEnglish = cc.LANGUAGE_ENGLISH -_G.kLanguageChinese = cc.LANGUAGE_CHINESE -_G.kLanguageFrench = cc.LANGUAGE_FRENCH -_G.kLanguageItalian = cc.LANGUAGE_ITALIAN -_G.kLanguageGerman = cc.LANGUAGE_GERMAN -_G.kLanguageSpanish = cc.LANGUAGE_SPANISH -_G.kLanguageRussian = cc.LANGUAGE_RUSSIAN -_G.kLanguageKorean = cc.LANGUAGE_KOREAN -_G.kLanguageJapanese = cc.LANGUAGE_JAPANESE -_G.kLanguageHungarian = cc.LANGUAGE_HUNGARIAN -_G.kLanguagePortuguese = cc.LANGUAGE_PORTUGUESE -_G.kLanguageArabic = cc.LANGUAGE_ARABIC -_G.kTargetWindows = cc.PLATFORM_OS_WINDOWS -_G.kTargetLinux = cc.PLATFORM_OS_LINUX -_G.kTargetMacOS = cc.PLATFORM_OS_MAC -_G.kTargetAndroid = cc.PLATFORM_OS_ANDROID -_G.kTargetIphone = cc.PLATFORM_OS_IPHONE - -cc.TEXTURE_PIXELFORMAT_DEFAULT = cc.TEXTURE_PF_RGBA8 diff --git a/extensions/scripting/lua-bindings/script/cocos2d/DeprecatedCocos2dFunc.lua b/extensions/scripting/lua-bindings/script/cocos2d/DeprecatedCocos2dFunc.lua deleted file mode 100644 index bdc6a529d4..0000000000 --- a/extensions/scripting/lua-bindings/script/cocos2d/DeprecatedCocos2dFunc.lua +++ /dev/null @@ -1,1003 +0,0 @@ - ---tip -local function deprecatedTip(old_name,new_name) - print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") -end - ---functions of CCDirector will be deprecated,begin -local CCDirectorDeprecated = { } -function CCDirectorDeprecated.sharedDirector() - deprecatedTip("CCDirector:sharedDirector","cc.Director:getInstance") - return cc.Director:getInstance() -end -CCDirector.sharedDirector = CCDirectorDeprecated.sharedDirector ---functions of CCDirector will be deprecated,end - - ---functions of CCTextureCache will be deprecated begin -local TextureCacheDeprecated = {} -function TextureCacheDeprecated.getInstance(self) - deprecatedTip("cc.TextureCache:getInstance","cc.Director:getInstance():getTextureCache") - return cc.Director:getInstance():getTextureCache() -end -cc.TextureCache.getInstance = TextureCacheDeprecated.getInstance - -function TextureCacheDeprecated.destroyInstance(self) - deprecatedTip("cc.TextureCache:destroyInstance","cc.Director:getInstance():destroyTextureCache") - return cc.Director:getInstance():destroyTextureCache() -end -cc.TextureCache.destroyInstance = TextureCacheDeprecated.destroyInstance - -function TextureCacheDeprecated.dumpCachedTextureInfo(self) - deprecatedTip("self:dumpCachedTextureInfo","self:getCachedTextureInfo") - return print(self:getCachedTextureInfo()) -end -cc.TextureCache.dumpCachedTextureInfo = TextureCacheDeprecated.dumpCachedTextureInfo - -local CCTextureCacheDeprecated = { } -function CCTextureCacheDeprecated.sharedTextureCache() - deprecatedTip("CCTextureCache:sharedTextureCache","CCTextureCache:getInstance") - return cc.TextureCache:getInstance() -end -rawset(CCTextureCache,"sharedTextureCache",CCTextureCacheDeprecated.sharedTextureCache) - -function CCTextureCacheDeprecated.purgeSharedTextureCache() - deprecatedTip("CCTextureCache:purgeSharedTextureCache","CCTextureCache:destroyInstance") - 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 -CCTextureCache.addUIImage = CCTextureCacheDeprecated.addUIImage ---functions of CCTextureCache will be deprecated end - ---functions of CCAnimation will be deprecated begin -local CCAnimationDeprecated = {} -function CCAnimationDeprecated.addSpriteFrameWithFileName(self,...) - deprecatedTip("CCAnimationDeprecated:addSpriteFrameWithFileName","cc.Animation:addSpriteFrameWithFile") - return self:addSpriteFrameWithFile(...) -end -CCAnimation.addSpriteFrameWithFileName = CCAnimationDeprecated.addSpriteFrameWithFileName ---functions of CCAnimation will be deprecated end - - ---functions of CCAnimationCache will be deprecated begin -local CCAnimationCacheDeprecated = { } -function CCAnimationCacheDeprecated.sharedAnimationCache() - deprecatedTip("CCAnimationCache:sharedAnimationCache","CCAnimationCache:getInstance") - return CCAnimationCache:getInstance() -end -CCAnimationCache.sharedAnimationCache = CCAnimationCacheDeprecated.sharedAnimationCache - -function CCAnimationCacheDeprecated.purgeSharedAnimationCache() - deprecatedTip("CCAnimationCache:purgeSharedAnimationCache","CCAnimationCache:destroyInstance") - return CCAnimationCache:destroyInstance() -end -CCAnimationCache.purgeSharedAnimationCache = CCAnimationCacheDeprecated.purgeSharedAnimationCache - -function CCAnimationCacheDeprecated.addAnimationsWithFile(self,...) - deprecatedTip("CCAnimationCache:addAnimationsWithFile","cc.AnimationCache:addAnimations") - return self:addAnimations(...) -end -CCAnimationCache.addAnimationsWithFile = CCAnimationCacheDeprecated.addAnimationsWithFile - -function CCAnimationCacheDeprecated.animationByName(self,...) - deprecatedTip("CCAnimationCache:animationByName","cc.AnimationCache:getAnimation") - return self:getAnimation(...) -end -CCAnimationCache.animationByName = CCAnimationCacheDeprecated.animationByName - -function CCAnimationCacheDeprecated.removeAnimationByName(self) - deprecatedTip("CCAnimationCache:removeAnimationByName","cc.AnimationCache:removeAnimation") - return self:removeAnimation() -end -CCAnimationCache.removeAnimationByName = CCAnimationCacheDeprecated.removeAnimationByName ---functions of CCAnimationCache will be deprecated end - ---functions of CCFileUtils will be deprecated end -local CCFileUtilsDeprecated = { } -function CCFileUtilsDeprecated.sharedFileUtils() - deprecatedTip("CCFileUtils:sharedFileUtils","CCFileUtils:getInstance") - return cc.FileUtils:getInstance() -end -CCFileUtils.sharedFileUtils = CCFileUtilsDeprecated.sharedFileUtils - -function CCFileUtilsDeprecated.purgeFileUtils() - deprecatedTip("CCFileUtils:purgeFileUtils","CCFileUtils:destroyInstance") - return cc.FileUtils:destroyInstance() -end -CCFileUtils.purgeFileUtils = CCFileUtilsDeprecated.purgeFileUtils ---functions of CCFileUtils will be deprecated end - ---functions of CCMenu will be deprecated begin -local CCMenuDeprecated = { } -function CCMenuDeprecated.createWithItem(self,...) - deprecatedTip("CCMenuDeprecated:createWithItem","cc.Menu:createWithItem") - return self:create(...) -end -CCMenu.createWithItem = CCMenuDeprecated.createWithItem - -function CCMenuDeprecated.setHandlerPriority(self) - print("\n********** \n".."setHandlerPriority was deprecated in 3.0. \n**********") -end -CCMenu.setHandlerPriority = CCMenuDeprecated.setHandlerPriority ---functions of CCMenu will be deprecated end - ---functions of CCNode will be deprecated begin -local CCNodeDeprecated = { } - -function CCNodeDeprecated.boundingBox(self) - deprecatedTip("CCNode:boundingBox","cc.Node:getBoundingBox") - return self:getBoundingBox() -end -CCNode.boundingBox = CCNodeDeprecated.boundingBox - - -function CCNodeDeprecated.numberOfRunningActions(self) - deprecatedTip("CCNode:numberOfRunningActions","cc.Node:getNumberOfRunningActions") - return self:getNumberOfRunningActions() -end -CCNode.numberOfRunningActions = CCNodeDeprecated.numberOfRunningActions - - -function CCNodeDeprecated.removeFromParentAndCleanup(self,...) - deprecatedTip("CCNode:removeFromParentAndCleanup","cc.Node:removeFromParent") - return self:removeFromParent(...) -end -CCNode.removeFromParentAndCleanup = CCNodeDeprecated.removeFromParentAndCleanup ---functions of CCNode will be deprecated end - ---CCDrawPrimitives will be deprecated begin -local function CCDrawPrimitivesClassDeprecated() - deprecatedTip("CCDrawPrimitives","cc.DrawPrimitives") - return cc.DrawPrimitives -end -_G.CCDrawPrimitives = CCDrawPrimitivesClassDeprecated() ---functions of CCDrawPrimitives will be deprecated begin -local CCDrawPrimitivesDeprecated = { } -function CCDrawPrimitivesDeprecated.ccDrawPoint(pt) - deprecatedTip("ccDrawPoint","cc.DrawPrimitives.drawPoint") - return cc.DrawPrimitives.drawPoint(pt) -end -_G.ccDrawPoint = CCDrawPrimitivesDeprecated.ccDrawPoint - -function CCDrawPrimitivesDeprecated.ccDrawLine(origin,destination) - deprecatedTip("ccDrawLine","cc.DrawPrimitives.drawLine") - return cc.DrawPrimitives.drawLine(origin,destination) -end -_G.ccDrawLine = CCDrawPrimitivesDeprecated.ccDrawLine - -function CCDrawPrimitivesDeprecated.ccDrawRect(origin,destination) - deprecatedTip("ccDrawRect","cc.DrawPrimitives.drawRect") - return cc.DrawPrimitives.drawRect(origin,destination) -end -_G.ccDrawRect = CCDrawPrimitivesDeprecated.ccDrawRect - -function CCDrawPrimitivesDeprecated.ccDrawSolidRect(origin,destination,color) - deprecatedTip("ccDrawSolidRect","cc.DrawPrimitives.drawSolidRect") - return cc.DrawPrimitives.drawSolidRect(origin,destination,color) -end -_G.ccDrawSolidRect = CCDrawPrimitivesDeprecated.ccDrawSolidRect - --- params:... may represent two param(xScale,yScale) or nil -function CCDrawPrimitivesDeprecated.ccDrawCircle(center,radius,angle,segments,drawLineToCenter,...) - deprecatedTip("ccDrawCircle","cc.DrawPrimitives.drawCircle") - return cc.DrawPrimitives.drawCircle(center,radius,angle,segments,drawLineToCenter,...) -end -_G.ccDrawCircle = CCDrawPrimitivesDeprecated.ccDrawCircle - --- params:... may represent two param(xScale,yScale) or nil -function CCDrawPrimitivesDeprecated.ccDrawSolidCircle(center,radius,angle,segments,...) - deprecatedTip("ccDrawSolidCircle","cc.DrawPrimitives.drawSolidCircle") - return cc.DrawPrimitives.drawSolidCircle(center,radius,angle,segments,...) -end -_G.ccDrawSolidCircle = CCDrawPrimitivesDeprecated.ccDrawSolidCircle - -function CCDrawPrimitivesDeprecated.ccDrawQuadBezier(origin,control,destination,segments) - deprecatedTip("ccDrawQuadBezier","cc.DrawPrimitives.drawQuadBezier") - return cc.DrawPrimitives.drawQuadBezier(origin,control,destination,segments) -end -_G.ccDrawQuadBezier = CCDrawPrimitivesDeprecated.ccDrawQuadBezier - -function CCDrawPrimitivesDeprecated.ccDrawCubicBezier(origin,control1,control2,destination,segments) - deprecatedTip("ccDrawCubicBezier","cc.DrawPrimitives.drawCubicBezier") - return cc.DrawPrimitives.drawCubicBezier(origin,control1,control2,destination,segments) -end -_G.ccDrawCubicBezier = CCDrawPrimitivesDeprecated.ccDrawCubicBezier - -function CCDrawPrimitivesDeprecated.ccDrawCatmullRom(arrayOfControlPoints,segments) - deprecatedTip("ccDrawCatmullRom","cc.DrawPrimitives.drawCatmullRom") - return cc.DrawPrimitives.drawCatmullRom(arrayOfControlPoints,segments) -end -_G.ccDrawCatmullRom = CCDrawPrimitivesDeprecated.ccDrawCatmullRom - -function CCDrawPrimitivesDeprecated.ccDrawCardinalSpline(config,tension,segments) - deprecatedTip("ccDrawCardinalSpline","cc.DrawPrimitives.drawCardinalSpline") - return cc.DrawPrimitives.drawCardinalSpline(config,tension,segments) -end -_G.ccDrawCardinalSpline = CCDrawPrimitivesDeprecated.ccDrawCardinalSpline - -function CCDrawPrimitivesDeprecated.ccDrawColor4B(r,g,b,a) - deprecatedTip("ccDrawColor4B","cc.DrawPrimitives.drawColor4B") - return cc.DrawPrimitives.drawColor4B(r,g,b,a) -end -_G.ccDrawColor4B = CCDrawPrimitivesDeprecated.ccDrawColor4B - -function CCDrawPrimitivesDeprecated.ccDrawColor4F(r,g,b,a) - deprecatedTip("ccDrawColor4F","cc.DrawPrimitives.drawColor4F") - return cc.DrawPrimitives.drawColor4F(r,g,b,a) -end -_G.ccDrawColor4F = CCDrawPrimitivesDeprecated.ccDrawColor4F - -function CCDrawPrimitivesDeprecated.ccPointSize(pointSize) - deprecatedTip("ccPointSize","cc.DrawPrimitives.setPointSize") - return cc.DrawPrimitives.setPointSize(pointSize) -end -_G.ccPointSize = CCDrawPrimitivesDeprecated.ccPointSize ---functions of CCDrawPrimitives will be deprecated end ---CCDrawPrimitives will be deprecated end - -local CCProgressTimerDeprecated = {} -function CCProgressTimerDeprecated.setReverseProgress(self,...) - deprecatedTip("CCProgressTimer","CCProgressTimer:setReverseDirection") - return self:setReverseDirection(...) -end -CCProgressTimer.setReverseProgress = CCProgressTimerDeprecated.setReverseProgress - ---functions of CCSpriteFrameCache will be deprecated begin -local CCSpriteFrameCacheDeprecated = { } -function CCSpriteFrameCacheDeprecated.spriteFrameByName(self,szName) - deprecatedTip("CCSpriteFrameCache:spriteFrameByName","CCSpriteFrameCache:getSpriteFrameByName") - return self:getSpriteFrameByName(szName) -end -CCSpriteFrameCache.spriteFrameByName = CCSpriteFrameCacheDeprecated.spriteFrameByName - -function CCSpriteFrameCacheDeprecated.sharedSpriteFrameCache() - deprecatedTip("CCSpriteFrameCache:sharedSpriteFrameCache","CCSpriteFrameCache:getInstance") - return CCSpriteFrameCache:getInstance() -end -CCSpriteFrameCache.sharedSpriteFrameCache = CCSpriteFrameCacheDeprecated.sharedSpriteFrameCache - -function CCSpriteFrameCacheDeprecated.purgeSharedSpriteFrameCache() - deprecatedTip("CCSpriteFrameCache:purgeSharedSpriteFrameCache","CCSpriteFrameCache:destroyInstance") - return CCSpriteFrameCache:destroyInstance() -end -CCSpriteFrameCache.purgeSharedSpriteFrameCache = CCSpriteFrameCacheDeprecated.purgeSharedSpriteFrameCache - -function CCSpriteFrameCacheDeprecated.addSpriteFramesWithFile(self,...) - deprecatedTip("CCSpriteFrameCache:addSpriteFramesWithFile","CCSpriteFrameCache:addSpriteFrames") - return self:addSpriteFrames(...) -end -rawset(CCSpriteFrameCache,"addSpriteFramesWithFile",CCSpriteFrameCacheDeprecated.addSpriteFramesWithFile) - -function CCSpriteFrameCacheDeprecated.getSpriteFrameByName(self,...) - deprecatedTip("CCSpriteFrameCache:getSpriteFrameByName","CCSpriteFrameCache:getSpriteFrame") - return self:getSpriteFrame(...) -end -CCSpriteFrameCache.getSpriteFrameByName = CCSpriteFrameCacheDeprecated.getSpriteFrameByName ---functions of CCSpriteFrameCache will be deprecated end - ---functions of CCLabelAtlas will be deprecated begin -local CCLabelAtlasDeprecated = {} -function CCLabelAtlasDeprecated.create(self,...) - deprecatedTip("CCLabelAtlas:create","CCLabelAtlas:_create") - return self:_create(...) -end -CCLabelAtlas.create = CCLabelAtlasDeprecated.create ---functions of CCLabelAtlas will be deprecated end - - ---------------------------- ---global functions will be deprecated, begin -local function CCRectMake(x,y,width,height) - deprecatedTip("CCRectMake(x,y,width,height)","cc.rect(x,y,width,height) in lua") - return cc.rect(x,y,width,height) -end -_G.CCRectMake = CCRectMake - -local function ccc3(r,g,b) - deprecatedTip("ccc3(r,g,b)","cc.c3b(r,g,b)") - return cc.c3b(r,g,b) -end -_G.ccc3 = ccc3 - -local function ccp(x,y) - deprecatedTip("ccp(x,y)","cc.p(x,y)") - return cc.p(x,y) -end -_G.ccp = ccp - -local function CCSizeMake(width,height) - deprecatedTip("CCSizeMake(width,height)","cc.size(width,height)") - return cc.size(width,height) -end -_G.CCSizeMake = CCSizeMake - -local function ccc4(r,g,b,a) - deprecatedTip("ccc4(r,g,b,a)","cc.c4b(r,g,b,a)") - return cc.c4b(r,g,b,a) -end -_G.ccc4 = ccc4 - -local function ccc4FFromccc3B(color3B) - deprecatedTip("ccc4FFromccc3B(color3B)","cc.c4f(color3B.r / 255.0,color3B.g / 255.0,color3B.b / 255.0,1.0)") - return cc.c4f(color3B.r/255.0, color3B.g/255.0, color3B.b/255.0, 1.0) -end -_G.ccc4FFromccc3B = ccc4FFromccc3B - -local function ccc4f(r,g,b,a) - deprecatedTip("ccc4f(r,g,b,a)","cc.c4f(r,g,b,a)") - return cc.c4f(r,g,b,a) -end -_G.ccc4f = ccc4f - -local function ccc4FFromccc4B(color4B) - deprecatedTip("ccc4FFromccc4B(color4B)","cc.c4f(color4B.r/255.0, color4B.g/255.0, color4B.b/255.0, color4B.a/255.0)") - return cc.c4f(color4B.r/255.0, color4B.g/255.0, color4B.b/255.0, color4B.a/255.0) -end -_G.ccc4FFromccc4B = ccc4FFromccc4B - -local function ccc4FEqual(a,b) - deprecatedTip("ccc4FEqual(a,b)","a:equals(b)") - return a:equals(b) -end -_G.ccc4FEqual = ccc4FEqual ---global functions will be deprecated, end - - ---functions of _G will be deprecated begin -local function ccpLineIntersect(a,b,c,d,s,t) - deprecatedTip("ccpLineIntersect","cc.pIsLineIntersect") - return cc.pIsLineIntersect(a,b,c,d,s,t) -end -_G.ccpLineIntersect = ccpLineIntersect - - -local function CCPointMake(x,y) - deprecatedTip("CCPointMake(x,y)","cc.p(x,y)") - return cc.p(x,y) -end -_G.CCPointMake = CCPointMake - - - -local function ccpNeg(pt) - deprecatedTip("ccpNeg","cc.pSub") - return cc.pSub({x = 0,y = 0}, pt) -end -_G.ccpNeg = ccpNeg - -local function ccpAdd(pt1,pt2) - deprecatedTip("ccpAdd","cc.pAdd") - return cc.pAdd(pt1,pt2) -end -_G.ccpAdd = ccpAdd - -local function ccpSub(pt1,pt2) - deprecatedTip("ccpSub","cc.pSub") - return cc.pSub(pt1,pt2) -end -_G.ccpSub = ccpSub - -local function ccpMult(pt,factor) - deprecatedTip("ccpMult","cc.pMul") - return cc.pMul(pt,factor) -end -_G.ccpMult = ccpMult - -local function ccpMidpoint(pt1,pt2) - deprecatedTip("ccpMidpoint","cc.pMidpoint") - return cc.pMidpoint(pt1,pt2) -end -_G.ccpMidpoint = ccpMidpoint - -local function ccpDot(pt1,pt2) - deprecatedTip("ccpDot","cc.pDot") - return cc.pDot(pt1,pt2) -end -_G.ccpDot = ccpDot - -local function ccpCross(pt1,pt2) - deprecatedTip("ccpCross","cc.pCross") - return cc.pCross(pt1, pt2) -end -_G.ccpCross = ccpCross - -local function ccpPerp(pt) - deprecatedTip("ccpPerp","cc.pPerp") - return cc.pPerp(pt) -end -_G.ccpPerp = ccpPerp - -local function ccpRPerp(pt) - deprecatedTip("ccpRPerp","cc.RPerp") - return cc.RPerp(pt) -end -_G.ccpRPerp = ccpRPerp - -local function ccpProject(pt1,pt2) - deprecatedTip("ccpProject","cc.pProject") - return cc.pProject(pt1,pt2) -end -_G.ccpProject = ccpProject - -local function ccpRotate(pt1,pt2) - deprecatedTip("ccpRotate","cc.pRotate") - return cc.pRotate(pt1,pt2) -end -_G.ccpRotate = ccpRotate - -local function ccpUnrotate(pt1,pt2) - deprecatedTip("ccpUnrotate","cc.pUnrotate") - return cc.pUnrotate(pt1,pt2) -end -_G.ccpUnrotate = ccpUnrotate - -local function ccpLengthSQ(pt) - deprecatedTip("ccpLengthSQ","cc.pLengthSQ") - return cc.pLengthSQ(pt) -end -_G.ccpLengthSQ = ccpLengthSQ - -local function ccpDistanceSQ(pt1,pt2) - deprecatedTip("ccpDistanceSQ","cc.pDistanceSQ") - return cc.pDistanceSQ(pt1,pt2) -end -_G.ccpDistanceSQ = ccpDistanceSQ - -local function ccpLength(pt) - deprecatedTip("ccpLength","cc.pGetLength") - return cc.pGetLength(pt) -end -_G.ccpLength = ccpLength - -local function ccpDistance(pt1,pt2) - deprecatedTip("ccpDistance","cc.pGetDistance") - return cc.pGetDistance(pt1, pt2) -end -_G.ccpDistance = ccpDistance - -local function ccpNormalize(pt) - deprecatedTip("ccpNormalize","cc.pNormalize") - return cc.pNormalize(pt) -end -_G.ccpNormalize = ccpNormalize - -local function ccpForAngle(angle) - deprecatedTip("ccpForAngle","cc.pForAngle") - return cc.pForAngle(angle) -end -_G.ccpForAngle = ccpForAngle - -local function ccpToAngle(pt) - deprecatedTip("ccpToAngle","cc.pToAngleSelf") - return cc.pToAngleSelf(pt) -end -_G.ccpToAngle = ccpToAngle - -local function ccpClamp(pt1,pt2,pt3) - deprecatedTip("ccpClamp","cc.pGetClampPoint") - return cc.pGetClampPoint(pt1,pt2,pt3) -end -_G.ccpClamp = ccpClamp - - -local function ccpFromSize(sz) - deprecatedTip("ccpFromSize(sz)","cc.pFromSize") - return cc.pFromSize(sz) -end -_G.ccpFromSize = ccpFromSize - -local function ccpLerp(pt1,pt2,alpha) - deprecatedTip("ccpLerp","cc.pLerp") - return cc.pLerp(pt1,pt2,alpha) -end -_G.ccpLerp = ccpLerp - -local function ccpFuzzyEqual(pt1,pt2,variance) - deprecatedTip("ccpFuzzyEqual","cc.pFuzzyEqual") - return cc.pFuzzyEqual(pt1,pt2,variance) -end -_G.ccpFuzzyEqual = ccpFuzzyEqual - -local function ccpCompMult(pt1,pt2) - deprecatedTip("ccpCompMult","cc.p") - return cc.p(pt1.x * pt2.x , pt1.y * pt2.y) -end -_G.ccpCompMult = ccpCompMult - -local function ccpAngleSigned(pt1,pt2) - deprecatedTip("ccpAngleSigned","cc.pGetAngle") - return cc.pGetAngle(pt1, pt2) -end -_G.ccpAngleSigned = ccpAngleSigned - -local function ccpAngle(pt1,pt2) - deprecatedTip("ccpAngle","cc.pGetAngle") - return cc.pGetAngle(pt1,ptw) -end -_G.ccpAngle = ccpAngle - -local function ccpRotateByAngle(pt1,pt2,angle) - deprecatedTip("ccpRotateByAngle","cc.pRotateByAngle") - return cc.pRotateByAngle(pt1, pt2, angle) -end -_G.ccpRotateByAngle = ccpRotateByAngle - -local function ccpSegmentIntersect(pt1,pt2,pt3,pt4) - deprecatedTip("ccpSegmentIntersect","cc.pIsSegmentIntersect") - return cc.pIsSegmentIntersect(pt1,pt2,pt3,pt4) -end -_G.ccpSegmentIntersect = ccpSegmentIntersect - -local function ccpIntersectPoint(pt1,pt2,pt3,pt4) - deprecatedTip("ccpIntersectPoint","cc.pGetIntersectPoint") - return cc.pGetIntersectPoint(pt1,pt2,pt3,pt4) -end -_G.ccpIntersectPoint = ccpIntersectPoint - - -local function vertex2(x,y) - deprecatedTip("vertex2(x,y)","cc.vertex2F(x,y)") - return cc.vertex2F(x,y) -end -_G.vertex2 = vertex2 - -local function vertex3(x,y,z) - deprecatedTip("vertex3(x,y,z)","cc.Vertex3F(x,y,z)") - return cc.Vertex3F(x,y,z) -end -_G.vertex3 = vertex3 - -local function tex2(u,v) - deprecatedTip("tex2(u,v)","cc.tex2f(u,v)") - return cc.tex2f(u,v) -end -_G.tex2 = tex2 - -local function ccc4BFromccc4F(color4F) - deprecatedTip("ccc4BFromccc4F(color4F)","Color4B(color4F.r * 255.0, color4F.g * 255.0, color4F.b * 255.0, color4B.a * 255.0)") - return Color4B(color4F.r * 255.0, color4F.g * 255.0, color4F.b * 255.0, color4B.a * 255.0) -end -_G.ccc4BFromccc4F = ccc4BFromccc4F - -local function ccColor3BDeprecated() - deprecatedTip("ccColor3B","cc.c3b(0,0,0)") - return cc.c3b(0,0,0) -end -_G.ccColor3B = ccColor3BDeprecated - -local function ccColor4BDeprecated() - deprecatedTip("ccColor4B","cc.c4b(0,0,0,0)") - return cc.c4b(0,0,0,0) -end -_G.ccColor4B = ccColor4BDeprecated - -local function ccColor4FDeprecated() - deprecatedTip("ccColor4F","cc.c4f(0.0,0.0,0.0,0.0)") - return cc.c4f(0.0,0.0,0.0,0.0) -end -_G.ccColor4F = ccColor4FDeprecated - -local function ccVertex2FDeprecated() - deprecatedTip("ccVertex2F","cc.vertex2F(0.0,0.0)") - return cc.vertex2F(0.0,0.0) -end -_G.ccVertex2F = ccVertex2FDeprecated - -local function ccVertex3FDeprecated() - deprecatedTip("ccVertex3F","cc.Vertex3F(0.0, 0.0, 0.0)") - return cc.Vertex3F(0.0, 0.0, 0.0) -end -_G.ccVertex3F = ccVertex3FDeprecated - -local function ccTex2FDeprecated() - deprecatedTip("ccTex2F","cc.tex2F(0.0, 0.0)") - return cc.tex2F(0.0, 0.0) -end -_G.ccTex2F = ccTex2FDeprecated - -local function ccPointSpriteDeprecated() - deprecatedTip("ccPointSprite","cc.PointSprite(cc.vertex2F(0.0, 0.0),cc.c4b(0.0, 0.0, 0.0),0)") - return cc.PointSprite(cc.vertex2F(0.0, 0.0),cc.c4b(0.0, 0.0, 0.0),0) -end -_G.ccPointSprite = ccPointSpriteDeprecated - -local function ccQuad2Deprecated() - deprecatedTip("ccQuad2","cc.Quad2(cc.vertex2F(0.0, 0.0), cc.vertex2F(0.0, 0.0), cc.vertex2F(0.0, 0.0), cc.vertex2F(0.0, 0.0))") - return cc.Quad2(cc.vertex2F(0.0, 0.0), cc.vertex2F(0.0, 0.0), cc.vertex2F(0.0, 0.0), cc.vertex2F(0.0, 0.0)) -end -_G.ccQuad2 = ccQuad2Deprecated - -local function ccQuad3Deprecated() - deprecatedTip("ccQuad3","cc.Quad3(cc.Vertex3F(0.0, 0.0 ,0.0), cc.Vertex3F(0.0, 0.0 ,0.0), cc.Vertex3F(0.0, 0.0 ,0.0), cc.Vertex3F(0.0, 0.0 ,0.0))") - return cc.Quad3(cc.Vertex3F(0.0, 0.0 ,0.0), cc.Vertex3F(0.0, 0.0 ,0.0), cc.Vertex3F(0.0, 0.0 ,0.0), cc.Vertex3F(0.0, 0.0 ,0.0)) -end -_G.ccQuad3 = ccQuad3Deprecated - -local function ccV2FC4BT2FDeprecated() - deprecatedTip("ccV2F_C4B_T2F","cc.V2F_C4B_T2F(cc.vertex2F(0.0, 0.0), cc.c4b(0 , 0, 0, 0 ), cc.tex2F(0.0, 0.0))") - return cc.V2F_C4B_T2F(cc.vertex2F(0.0, 0.0), cc.c4b(0 , 0, 0, 0 ), cc.tex2F(0.0, 0.0)) -end -_G.ccV2F_C4B_T2F = ccV2FC4BT2FDeprecated - - -local function ccV2FC4FT2FDeprecated() - deprecatedTip("ccV2F_C4F_T2F","cc.V2F_C4F_T2F(cc.vertex2F(0.0, 0.0), cc.c4f(0.0 , 0.0 , 0.0 , 0.0 ), cc.tex2F(0.0, 0.0))") - return cc.V2F_C4F_T2F(cc.vertex2F(0.0, 0.0), cc.c4f(0.0 , 0.0 , 0.0 , 0.0), cc.tex2F(0.0, 0.0)) -end -_G.ccV2F_C4F_T2F = ccV2FC4FT2FDeprecated - -local function ccV3FC4BT2FDeprecated() - deprecatedTip("ccV3F_C4B_T2F","cc.V3F_C4B_T2F(cc.vertex3F(0.0, 0.0, 0.0), cc.c4b(0 , 0 , 0, 0 ), cc.tex2F(0.0, 0.0))") - return cc.V3F_C4B_T2F(cc.vertex3F(0.0, 0.0, 0.0), cc.c4b(0 , 0 , 0, 0 ), cc.tex2F(0.0, 0.0)) -end -_G.ccV3F_C4B_T2F = ccV3FC4BT2FDeprecated - -local function ccV2FC4BT2FQuadDeprecated() - deprecatedTip("ccV2F_C4B_T2F_Quad","cc.V2F_C4B_T2F_Quad(cc.V2F_C4B_T2F(cc.vertex2F(0.0, 0.0), cc.c4b(0 , 0, 0, 0 ), cc.tex2F(0.0, 0.0)), cc.V2F_C4B_T2F(cc.vertex2F(0.0, 0.0), cc.c4b(0 , 0, 0, 0 ), cc.tex2F(0.0, 0.0)), cc.V2F_C4B_T2F(cc.vertex2F(0.0, 0.0), cc.c4b(0 , 0, 0, 0 ), cc.tex2F(0.0, 0.0)), cc.V2F_C4B_T2F(cc.vertex2F(0.0, 0.0), cc.c4b(0 , 0, 0, 0 ), cc.tex2F(0.0, 0.0)))") - return cc.V2F_C4B_T2F_Quad(cc.V2F_C4B_T2F(cc.vertex2F(0.0, 0.0), cc.c4b(0 , 0, 0, 0 ), cc.tex2F(0.0, 0.0)), cc.V2F_C4B_T2F(cc.vertex2F(0.0, 0.0), cc.c4b(0 , 0, 0, 0 ), cc.tex2F(0.0, 0.0)), cc.V2F_C4B_T2F(cc.vertex2F(0.0, 0.0), cc.c4b(0 , 0, 0, 0 ), cc.tex2F(0.0, 0.0)), cc.V2F_C4B_T2F(cc.vertex2F(0.0, 0.0), cc.c4b(0 , 0, 0, 0 ), cc.tex2F(0.0, 0.0))) -end -_G.ccV2F_C4B_T2F_Quad = ccV2FC4BT2FQuadDeprecated - -local function ccV3FC4BT2FQuadDeprecated() - deprecatedTip("ccV3F_C4B_T2F_Quad","cc.V3F_C4B_T2F_Quad(_tl, _bl, _tr, _br)") - return cc.V3F_C4B_T2F_Quad(cc.V3F_C4B_T2F(cc.vertex3F(0.0, 0.0, 0.0), cc.c4b(0 , 0, 0, 0 ), cc.tex2F(0.0, 0.0)), cc.V3F_C4B_T2F(cc.vertex3F(0.0, 0.0, 0.0), cc.c4b(0 , 0, 0, 0 ), cc.tex2F(0.0, 0.0)), cc.V3F_C4B_T2F(cc.vertex3F(0.0, 0.0, 0.0), cc.c4b(0 , 0, 0, 0 ), cc.tex2F(0.0, 0.0)), cc.V3F_C4B_T2F(cc.vertex3F(0.0, 0.0, 0.0), cc.c4b(0 , 0, 0, 0 ), cc.tex2F(0.0, 0.0))) -end -_G.ccV3F_C4B_T2F_Quad = ccV3FC4BT2FQuadDeprecated - -local function ccV2FC4FT2FQuadDeprecated() - deprecatedTip("ccV2F_C4F_T2F_Quad","cc.V2F_C4F_T2F_Quad(_bl, _br, _tl, _tr)") - return cc.V2F_C4F_T2F_Quad(cc.V2F_C4F_T2F(cc.vertex2F(0.0, 0.0), cc.c4f(0.0 , 0.0, 0.0, 0.0 ), cc.tex2F(0.0, 0.0)), cc.V2F_C4F_T2F(cc.vertex2F(0.0, 0.0), cc.c4f(0.0 , 0.0, 0.0, 0.0 ), cc.tex2F(0.0, 0.0)), cc.V3F_C4B_T2F(cc.vertex2F(0.0, 0.0), cc.c4f(0.0 , 0.0, 0.0, 0.0 ), cc.tex2F(0.0, 0.0)), cc.V2F_C4F_T2F(cc.vertex2F(0.0, 0.0), cc.c4f(0.0 , 0.0, 0.0, 0.0 ), cc.tex2F(0.0, 0.0))) -end -_G.ccV2F_C4F_T2F_Quad = ccV2FC4FT2FQuadDeprecated - -local function ccT2FQuadDeprecated() - deprecatedTip("ccT2F_Quad","cc.T2F_Quad(_bl, _br, _tl, _tr)") - return cc.T2F_Quad(cc.tex2F(0.0,0.0), cc.tex2F(0.0,0.0), cc.tex2F(0.0,0.0), cc.tex2F(0.0,0.0)) -end -_G.ccT2F_Quad = ccT2FQuadDeprecated - -local function ccAnimationFrameDataDeprecated() - deprecatedTip("ccAnimationFrameData","cc.AnimationFrameData( _texCoords, _delay, _size)") - return cc.AnimationFrameData(cc.T2F_Quad(cc.tex2F(0.0,0.0), cc.tex2F(0.0,0.0), cc.tex2F(0.0,0.0), cc.tex2F(0.0,0.0)), 0, cc.size(0,0)) -end -_G.ccAnimationFrameData = ccAnimationFrameDataDeprecated - - - -local function tex2(u,v) - deprecatedTip("tex2(u,v)","cc.tex2f(u,v)") - return cc.tex2f(u,v) -end -_G.tex2 = tex2 - - ---functions of CCApplication will be deprecated end -local CCApplicationDeprecated = { } -function CCApplicationDeprecated.sharedApplication() - deprecatedTip("CCApplication:sharedApplication","CCApplication:getInstance") - return CCApplication:getInstance() -end -CCApplication.sharedApplication = CCApplicationDeprecated.sharedApplication ---functions of CCApplication will be deprecated end - - ---functions of CCDirector will be deprecated end -local CCDirectorDeprecated = { } -function CCDirectorDeprecated.sharedDirector() - deprecatedTip("CCDirector:sharedDirector","CCDirector:getInstance") - return CCDirector:getInstance() -end -CCDirector.sharedDirector = CCDirectorDeprecated.sharedDirector ---functions of CCDirector will be deprecated end - - ---functions of CCUserDefault will be deprecated end -local CCUserDefaultDeprecated = { } -function CCUserDefaultDeprecated.sharedUserDefault() - deprecatedTip("CCUserDefault:sharedUserDefault","CCUserDefault:getInstance") - return CCUserDefault:getInstance() -end -CCUserDefault.sharedUserDefault = CCUserDefaultDeprecated.sharedUserDefault - -function CCUserDefaultDeprecated.purgeSharedUserDefault() - deprecatedTip("CCUserDefault:purgeSharedUserDefault","CCUserDefault:destroyInstance") - return CCUserDefault:destroyInstance() -end -CCUserDefault.purgeSharedUserDefault = CCUserDefaultDeprecated.purgeSharedUserDefault ---functions of CCUserDefault will be deprecated end - ---functions of CCGrid3DAction will be deprecated begin -local CCGrid3DActionDeprecated = { } -function CCGrid3DActionDeprecated.vertex(self,pt) - deprecatedTip("vertex","CCGrid3DAction:getVertex") - return self:getVertex(pt) -end -CCGrid3DAction.vertex = CCGrid3DActionDeprecated.vertex - -function CCGrid3DActionDeprecated.originalVertex(self,pt) - deprecatedTip("originalVertex","CCGrid3DAction:getOriginalVertex") - return self:getOriginalVertex(pt) -end -CCGrid3DAction.originalVertex = CCGrid3DActionDeprecated.originalVertex ---functions of CCGrid3DAction will be deprecated end - - ---functions of CCTiledGrid3DAction will be deprecated begin -local CCTiledGrid3DActionDeprecated = { } -function CCTiledGrid3DActionDeprecated.tile(self,pt) - deprecatedTip("tile","CCTiledGrid3DAction:getTile") - return self:getTile(pt) -end -CCTiledGrid3DAction.tile = CCTiledGrid3DActionDeprecated.tile - -function CCTiledGrid3DActionDeprecated.originalTile(self,pt) - deprecatedTip("originalTile","CCTiledGrid3DAction:getOriginalTile") - return self:getOriginalTile(pt) -end -CCTiledGrid3DAction.originalTile = CCTiledGrid3DActionDeprecated.originalTile ---functions of CCTiledGrid3DAction will be deprecated end - - ---functions of CCTexture2D will be deprecated begin -local CCTexture2DDeprecated = { } -function CCTexture2DDeprecated.stringForFormat(self) - deprecatedTip("Texture2D:stringForFormat","Texture2D:getStringForFormat") - return self:getStringForFormat() -end -CCTexture2D.stringForFormat = CCTexture2DDeprecated.stringForFormat - -function CCTexture2DDeprecated.bitsPerPixelForFormat(self) - deprecatedTip("Texture2D:bitsPerPixelForFormat","Texture2D:getBitsPerPixelForFormat") - return self:getBitsPerPixelForFormat() -end -CCTexture2D.bitsPerPixelForFormat = CCTexture2DDeprecated.bitsPerPixelForFormat - -function CCTexture2DDeprecated.bitsPerPixelForFormat(self,pixelFormat) - deprecatedTip("Texture2D:bitsPerPixelForFormat","Texture2D:getBitsPerPixelForFormat") - return self:getBitsPerPixelForFormat(pixelFormat) -end -CCTexture2D.bitsPerPixelForFormat = CCTexture2DDeprecated.bitsPerPixelForFormat - -function CCTexture2DDeprecated.defaultAlphaPixelFormat(self) - deprecatedTip("Texture2D:defaultAlphaPixelFormat","Texture2D:getDefaultAlphaPixelFormat") - return self:getDefaultAlphaPixelFormat() -end -CCTexture2D.defaultAlphaPixelFormat = CCTexture2DDeprecated.defaultAlphaPixelFormat ---functions of CCTexture2D will be deprecated end - - ---functions of CCTimer will be deprecated begin -local CCTimerDeprecated = { } -function CCTimerDeprecated.timerWithScriptHandler(handler,seconds) - deprecatedTip("CCTimer:timerWithScriptHandler","CCTimer:createWithScriptHandler") - return CCTimer:createWithScriptHandler(handler,seconds) -end -CCTimer.timerWithScriptHandler = CCTimerDeprecated.timerWithScriptHandler - -function CCTimerDeprecated.numberOfRunningActionsInTarget(self,target) - deprecatedTip("CCActionManager:numberOfRunningActionsInTarget","CCActionManager:getNumberOfRunningActionsInTarget") - return self:getNumberOfRunningActionsInTarget(target) -end -CCTimer.numberOfRunningActionsInTarget = CCTimerDeprecated.numberOfRunningActionsInTarget ---functions of CCTimer will be deprecated end - - ---functions of CCMenuItemFont will be deprecated begin -local CCMenuItemFontDeprecated = { } -function CCMenuItemFontDeprecated.fontSize() - deprecatedTip("CCMenuItemFont:fontSize","CCMenuItemFont:getFontSize") - return CCMenuItemFont:getFontSize() -end -CCMenuItemFont.fontSize = CCMenuItemFontDeprecated.fontSize - -function CCMenuItemFontDeprecated.fontName() - deprecatedTip("CCMenuItemFont:fontName","CCMenuItemFont:getFontName") - return CCMenuItemFont:getFontName() -end -CCMenuItemFont.fontName = CCMenuItemFontDeprecated.fontName - -function CCMenuItemFontDeprecated.fontSizeObj(self) - deprecatedTip("CCMenuItemFont:fontSizeObj","CCMenuItemFont:getFontSizeObj") - return self:getFontSizeObj() -end -CCMenuItemFont.fontSizeObj = CCMenuItemFontDeprecated.fontSizeObj - -function CCMenuItemFontDeprecated.fontNameObj(self) - deprecatedTip("CCMenuItemFont:fontNameObj","CCMenuItemFont:getFontNameObj") - return self:getFontNameObj() -end -CCMenuItemFont.fontNameObj = CCMenuItemFontDeprecated.fontNameObj ---functions of CCMenuItemFont will be deprecated end - - ---functions of CCMenuItemToggle will be deprecated begin -local CCMenuItemToggleDeprecated = { } -function CCMenuItemToggleDeprecated.selectedItem(self) - deprecatedTip("CCMenuItemToggle:selectedItem","CCMenuItemToggle:getSelectedItem") - return self:getSelectedItem() -end -CCMenuItemToggle.selectedItem = CCMenuItemToggleDeprecated.selectedItem ---functions of CCMenuItemToggle will be deprecated end - - ---functions of CCTileMapAtlas will be deprecated begin -local CCTileMapAtlasDeprecated = { } -function CCTileMapAtlasDeprecated.tileAt(self,pos) - deprecatedTip("CCTileMapAtlas:tileAt","CCTileMapAtlas:getTileAt") - return self:getTileAt(pos) -end -CCTileMapAtlas.tileAt = CCTileMapAtlasDeprecated.tileAt ---functions of CCTileMapAtlas will be deprecated end - - ---functions of CCTMXLayer will be deprecated begin -local CCTMXLayerDeprecated = { } -function CCTMXLayerDeprecated.tileAt(self,tileCoordinate) - deprecatedTip("CCTMXLayer:tileAt","CCTMXLayer:getTileAt") - return self:getTileAt(tileCoordinate) -end -CCTMXLayer.tileAt = CCTMXLayerDeprecated.tileAt - -function CCTMXLayerDeprecated.tileGIDAt(self,tileCoordinate) - deprecatedTip("CCTMXLayer:tileGIDAt","CCTMXLayer:getTileGIDAt") - return self:getTileGIDAt(tileCoordinate) -end -CCTMXLayer.tileGIDAt = CCTMXLayerDeprecated.tileGIDAt - -function CCTMXLayerDeprecated.positionAt(self,tileCoordinate) - deprecatedTip("CCTMXLayer:positionAt","CCTMXLayer:getPositionAt") - return self:getPositionAt(tileCoordinate) -end -CCTMXLayer.positionAt = CCTMXLayerDeprecated.positionAt - -function CCTMXLayerDeprecated.propertyNamed(self,propertyName) - deprecatedTip("CCTMXLayer:propertyNamed","CCTMXLayer:getProperty") - return self:getProperty(propertyName) -end -CCTMXLayer.propertyNamed = CCTMXLayerDeprecated.propertyNamed ---functions of CCTMXLayer will be deprecated end - ---functions of CCTMXTiledMap will be deprecated begin -local CCTMXTiledMapDeprecated = { } -function CCTMXTiledMapDeprecated.layerNamed(self,layerName) - deprecatedTip("CCTMXTiledMap:layerNamed","CCTMXTiledMap:getLayer") - return self:getLayer(layerName) -end -CCTMXTiledMap.layerNamed = CCTMXTiledMapDeprecated.layerNamed - -function CCTMXTiledMapDeprecated.propertyNamed(self,propertyName) - deprecatedTip("CCTMXTiledMap:propertyNamed","CCTMXTiledMap:getProperty") - return self:getProperty(propertyName) -end -CCTMXTiledMap.propertyNamed = CCTMXTiledMapDeprecated.propertyNamed - -function CCTMXTiledMapDeprecated.propertiesForGID(self,GID) - deprecatedTip("CCTMXTiledMap:propertiesForGID","CCTMXTiledMap:getPropertiesForGID") - return self:getPropertiesForGID(GID) -end -CCTMXTiledMap.propertiesForGID = CCTMXTiledMapDeprecated.propertiesForGID - -function CCTMXTiledMapDeprecated.objectGroupNamed(self,groupName) - deprecatedTip("CCTMXTiledMap:objectGroupNamed","CCTMXTiledMap:getObjectGroup") - return self:getObjectGroup(groupName) -end -CCTMXTiledMap.objectGroupNamed = CCTMXTiledMapDeprecated.objectGroupNamed ---functions of CCTMXTiledMap will be deprecated end - - ---functions of CCTMXMapInfo will be deprecated begin -local CCTMXMapInfoDeprecated = { } -function CCTMXMapInfoDeprecated.getStoringCharacters(self) - deprecatedTip("CCTMXMapInfo:getStoringCharacters","CCTMXMapInfo:isStoringCharacters") - return self:isStoringCharacters() -end -CCTMXMapInfo.getStoringCharacters = CCTMXMapInfoDeprecated.getStoringCharacters - -function CCTMXMapInfoDeprecated.formatWithTMXFile(infoTable,tmxFile) - deprecatedTip("CCTMXMapInfo:formatWithTMXFile","CCTMXMapInfo:create") - return CCTMXMapInfo:create(tmxFile) -end -CCTMXMapInfo.formatWithTMXFile = CCTMXMapInfoDeprecated.formatWithTMXFile - -function CCTMXMapInfoDeprecated.formatWithXML(infoTable,tmxString,resourcePath) - deprecatedTip("CCTMXMapInfo:formatWithXML","TMXMapInfo:createWithXML") - return CCTMXMapInfo:createWithXML(tmxString,resourcePath) -end -CCTMXMapInfo.formatWithXML = CCTMXMapInfoDeprecated.formatWithXML ---functions of CCTMXMapInfo will be deprecated end - - ---functions of CCTMXObject will be deprecated begin -local CCTMXObjectGroupDeprecated = { } -function CCTMXObjectGroupDeprecated.propertyNamed(self,propertyName) - deprecatedTip("CCTMXObjectGroup:propertyNamed","CCTMXObjectGroup:getProperty") - return self:getProperty(propertyName) -end -CCTMXObjectGroup.propertyNamed = CCTMXObjectGroupDeprecated.propertyNamed - -function CCTMXObjectGroupDeprecated.objectNamed(self, objectName) - deprecatedTip("CCTMXObjectGroup:objectNamed","CCTMXObjectGroup:getObject") - return self:getObject(objectName) -end -CCTMXObjectGroup.objectNamed = CCTMXObjectGroupDeprecated.objectNamed ---functions of CCTMXObject will be deprecated end - ---functions of CCRenderTexture will be deprecated begin -local CCRenderTextureDeprecated = { } -function CCRenderTextureDeprecated.newCCImage(self) - deprecatedTip("CCRenderTexture:newCCImage","CCRenderTexture:newImage") - return self:newImage() -end -CCRenderTexture.newCCImage = CCRenderTextureDeprecated.newCCImage ---functions of CCRenderTexture will be deprecated end - ---functions of Sprite will be deprecated begin -local CCSpriteDeprecated = { } -function CCSpriteDeprecated.setFlipX(self,flag) - deprecatedTip("CCSpriteDeprecated:setFlipX","CCSpriteDeprecated:setFlippedX") - return self:setFlippedX(flag) -end -cc.Sprite.setFlipX = CCSpriteDeprecated.setFlipX - -function CCSpriteDeprecated.setFlipY(self,flag) - deprecatedTip("CCSpriteDeprecated:setFlipY","CCSpriteDeprecated:setFlippedY") - return self:setFlippedY(flag) -end -cc.Sprite.setFlipY = CCSpriteDeprecated.setFlipY ---functions of Sprite will be deprecated end - - ---functions of Layer will be deprecated begin -local CCLayerDeprecated = {} -function CCLayerDeprecated.setKeypadEnabled( self, enabled) - return self:setKeyboardEnabled(enabled) -end -cc.Layer.setKeypadEnabled = CCLayerDeprecated.setKeypadEnabled - -function CCLayerDeprecated.isKeypadEnabled(self) - return self:isKeyboardEnabled() -end -cc.Layer.isKeypadEnabled = CCLayerDeprecated.isKeypadEnabled ---functions of Layer will be deprecated end - ---functions of cc.Node will be deprecated begin -local NodeDeprecated = { } -function NodeDeprecated.setZOrder(self,zOrder) - deprecatedTip("cc.Node:setZOrder","cc.Node:setLocalZOrder") - return self:setLocalZOrder(zOrder) -end -cc.Node.setZOrder = NodeDeprecated.setZOrder - -function NodeDeprecated.getZOrder(self) - deprecatedTip("cc.Node:getZOrder","cc.Node:getLocalZOrder") - return self:getLocalZOrder() -end -cc.Node.getZOrder = NodeDeprecated.getZOrder - -function NodeDeprecated.setVertexZ(self,vertexZ) - deprecatedTip("cc.Node:setVertexZ", "cc.Node:setPositionZ") - return self:setPositionZ(vertexZ) -end -cc.Node.setVertexZ = NodeDeprecated.setVertexZ - -function NodeDeprecated.getVertexZ(self) - deprecatedTip("cc.Node:getVertexZ", "cc.Node:getPositionZ") - return self:getPositionZ() -end -cc.Node.getVertexZ = NodeDeprecated.getVertexZ - -function NodeDeprecated.ignoreAnchorPointForPosition(self,ignore) - deprecatedTip("cc.Node:ignoreAnchorPointForPosition", "cc.Node:setIgnoreAnchorPointForPosition") - return self:setIgnoreAnchorPointForPosition(ignore) -end - -cc.Node.ignoreAnchorPointForPosition = NodeDeprecated.ignoreAnchorPointForPosition ---functions of cc.Node will be deprecated end - ---functions of cc.GLProgram will be deprecated begin ---functions of cc.GLProgram will be deprecated end diff --git a/extensions/scripting/lua-bindings/script/cocostudio/DeprecatedCocoStudioClass.lua b/extensions/scripting/lua-bindings/script/cocostudio/DeprecatedCocoStudioClass.lua deleted file mode 100644 index 712886b6e0..0000000000 --- a/extensions/scripting/lua-bindings/script/cocostudio/DeprecatedCocoStudioClass.lua +++ /dev/null @@ -1,307 +0,0 @@ -if nil == ccs then - return -end --- This is the DeprecatedExtensionClass - -DeprecatedExtensionClass = {} or DeprecatedExtensionClass - ---tip -local function deprecatedTip(old_name,new_name) - print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") -end - ---CCArmature class will be Deprecated,begin -function DeprecatedExtensionClass.CCArmature() - deprecatedTip("CCArmature","ccs.Armature") - return ccs.Armature -end -_G["CCArmature"] = DeprecatedExtensionClass.CCArmature() ---CCArmature class will be Deprecated,end - ---CCArmatureAnimation class will be Deprecated,begin -function DeprecatedExtensionClass.CCArmatureAnimation() - deprecatedTip("CCArmatureAnimation","ccs.ArmatureAnimation") - return ccs.ArmatureAnimation -end -_G["CCArmatureAnimation"] = DeprecatedExtensionClass.CCArmatureAnimation() ---CCArmatureAnimation class will be Deprecated,end - ---CCSkin class will be Deprecated,begin -function DeprecatedExtensionClass.CCSkin() - deprecatedTip("CCSkin","ccs.Skin") - return ccs.Skin -end -_G["CCSkin"] = DeprecatedExtensionClass.CCSkin() ---CCSkin class will be Deprecated,end - ---CCBone class will be Deprecated,begin -function DeprecatedExtensionClass.CCBone() - deprecatedTip("CCBone","ccs.Bone") - return ccs.Bone -end -_G["CCBone"] = DeprecatedExtensionClass.CCBone() ---CCBone class will be Deprecated,end - ---CCArmatureDataManager class will be Deprecated,begin -function DeprecatedExtensionClass.CCArmatureDataManager() - deprecatedTip("CCArmatureDataManager","ccs.ArmatureDataManager") - return ccs.ArmatureDataManager -end -_G["CCArmatureDataManager"] = DeprecatedExtensionClass.CCArmatureDataManager() ---CCArmatureDataManager class will be Deprecated,end - ---CCBatchNode class will be Deprecated,begin -function DeprecatedExtensionClass.CCBatchNode() - deprecatedTip("CCBatchNode","ccs.BatchNode") - return ccs.BatchNode -end -_G["CCBatchNode"] = DeprecatedExtensionClass.CCBatchNode() ---CCBatchNode class will be Deprecated,end - ---CCTween class will be Deprecated,begin -function DeprecatedExtensionClass.CCTween() - deprecatedTip("CCTween","ccs.Tween") - return ccs.Tween -end -_G["CCTween"] = DeprecatedExtensionClass.CCTween() ---CCTween class will be Deprecated,end - ---CCBaseData class will be Deprecated,begin -function DeprecatedExtensionClass.CCBaseData() - deprecatedTip("CCBaseData","ccs.BaseData") - return ccs.BaseData -end -_G["CCBaseData"] = DeprecatedExtensionClass.CCBaseData() ---CCBaseData class will be Deprecated,end - ---CCDisplayManager class will be Deprecated,begin -function DeprecatedExtensionClass.CCDisplayManager() - deprecatedTip("CCDisplayManager","ccs.DisplayManager") - return ccs.DisplayManager -end -_G["CCDisplayManager"] = DeprecatedExtensionClass.CCDisplayManager() ---CCDisplayManager class will be Deprecated,end - ---UIHelper class will be Deprecated,begin -function DeprecatedExtensionClass.UIHelper() - deprecatedTip("UIHelper","ccs.UIHelper") - return ccs.UIHelper -end -_G["UIHelper"] = DeprecatedExtensionClass.UIHelper() ---UIHelper class will be Deprecated,end - ---UILayout class will be Deprecated,begin -function DeprecatedExtensionClass.UILayout() - deprecatedTip("UILayout","ccs.UILayout") - return ccs.UILayout -end -_G["UILayout"] = DeprecatedExtensionClass.UILayout() ---UILayout class will be Deprecated,end - ---UIWidget class will be Deprecated,begin -function DeprecatedExtensionClass.UIWidget() - deprecatedTip("UIWidget","ccs.UIWidget") - return ccs.UIWidget -end -_G["UIWidget"] = DeprecatedExtensionClass.UIWidget() ---UIWidget class will be Deprecated,end - ---UILayer class will be Deprecated,begin -function DeprecatedExtensionClass.UILayer() - deprecatedTip("UILayer","ccs.UILayer") - return ccs.UILayer -end -_G["UILayer"] = DeprecatedExtensionClass.UILayer() ---UILayer class will be Deprecated,end - ---UIButton class will be Deprecated,begin -function DeprecatedExtensionClass.UIButton() - deprecatedTip("UIButton","ccs.UIButton") - return ccs.UIButton -end -_G["UIButton"] = DeprecatedExtensionClass.UIButton() ---UIButton class will be Deprecated,end - ---UICheckBox class will be Deprecated,begin -function DeprecatedExtensionClass.UICheckBox() - deprecatedTip("UICheckBox","ccs.UICheckBox") - return ccs.UICheckBox -end -_G["UICheckBox"] = DeprecatedExtensionClass.UICheckBox() ---UICheckBox class will be Deprecated,end - ---UIImageView class will be Deprecated,begin -function DeprecatedExtensionClass.UIImageView() - deprecatedTip("UIImageView","ccs.UIImageView") - return ccs.UIImageView -end -_G["UIImageView"] = DeprecatedExtensionClass.UIImageView() ---UIImageView class will be Deprecated,end - ---UILabel class will be Deprecated,begin -function DeprecatedExtensionClass.UILabel() - deprecatedTip("UILabel","ccs.UILabel") - return ccs.UILabel -end -_G["UILabel"] = DeprecatedExtensionClass.UILabel() ---UILabel class will be Deprecated,end - ---UILabelAtlas class will be Deprecated,begin -function DeprecatedExtensionClass.UILabelAtlas() - deprecatedTip("UILabelAtlas","ccs.UILabelAtlas") - return ccs.UILabelAtlas -end -_G["UILabelAtlas"] = DeprecatedExtensionClass.UILabelAtlas() ---UILabelAtlas class will be Deprecated,end - ---UILabelBMFont class will be Deprecated,begin -function DeprecatedExtensionClass.UILabelBMFont() - deprecatedTip("UILabelBMFont","ccs.UILabelBMFont") - return ccs.UILabelBMFont -end -_G["UILabelBMFont"] = DeprecatedExtensionClass.UILabelBMFont() ---UILabelBMFont class will be Deprecated,end - ---UILoadingBar class will be Deprecated,begin -function DeprecatedExtensionClass.UILoadingBar() - deprecatedTip("UILoadingBar","ccs.UILoadingBar") - return ccs.UILoadingBar -end -_G["UILoadingBar"] = DeprecatedExtensionClass.UILoadingBar() ---UILoadingBar class will be Deprecated,end - ---UISlider class will be Deprecated,begin -function DeprecatedExtensionClass.UISlider() - deprecatedTip("UISlider","ccs.UISlider") - return ccs.UISlider -end -_G["UISlider"] = DeprecatedExtensionClass.UISlider() ---UISlider class will be Deprecated,end - ---UITextField class will be Deprecated,begin -function DeprecatedExtensionClass.UITextField() - deprecatedTip("UITextField","ccs.UITextField") - return ccs.UITextField -end -_G["UITextField"] = DeprecatedExtensionClass.UITextField() ---UITextField class will be Deprecated,end - ---UIScrollView class will be Deprecated,begin -function DeprecatedExtensionClass.UIScrollView() - deprecatedTip("UIScrollView","ccs.UIScrollView") - return ccs.UIScrollView -end -_G["UIScrollView"] = DeprecatedExtensionClass.UIScrollView() ---UIScrollView class will be Deprecated,end - ---UIPageView class will be Deprecated,begin -function DeprecatedExtensionClass.UIPageView() - deprecatedTip("UIPageView","ccs.UIPageView") - return ccs.UIPageView -end -_G["UIPageView"] = DeprecatedExtensionClass.UIPageView() ---UIPageView class will be Deprecated,end - ---UIListView class will be Deprecated,begin -function DeprecatedExtensionClass.UIListView() - deprecatedTip("UIListView","ccs.UIListView") - return ccs.UIListView -end -_G["UIListView"] = DeprecatedExtensionClass.UIListView() ---UIListView class will be Deprecated,end - ---UILayoutParameter class will be Deprecated,begin -function DeprecatedExtensionClass.UILayoutParameter() - deprecatedTip("UILayoutParameter","ccs.UILayoutParameter") - return ccs.UILayoutParameter -end -_G["UILayoutParameter"] = DeprecatedExtensionClass.UILayoutParameter() ---UILayoutParameter class will be Deprecated,end - ---UILinearLayoutParameter class will be Deprecated,begin -function DeprecatedExtensionClass.UILinearLayoutParameter() - deprecatedTip("UILinearLayoutParameter","ccs.UILinearLayoutParameter") - return ccs.UILinearLayoutParameter -end -_G["UILinearLayoutParameter"] = DeprecatedExtensionClass.UILinearLayoutParameter() ---UILinearLayoutParameter class will be Deprecated,end - ---UIRelativeLayoutParameter class will be Deprecated,begin -function DeprecatedExtensionClass.UIRelativeLayoutParameter() - deprecatedTip("UIRelativeLayoutParameter","ccs.UIRelativeLayoutParameter") - return ccs.UIRelativeLayoutParameter -end -_G["UIRelativeLayoutParameter"] = DeprecatedExtensionClass.UIRelativeLayoutParameter() ---UIRelativeLayoutParameter class will be Deprecated,end - ---CCComController class will be Deprecated,begin -function DeprecatedExtensionClass.CCComController() - deprecatedTip("CCComController","ccs.ComController") - return ccs.CCComController -end -_G["CCComController"] = DeprecatedExtensionClass.CCComController() ---CCComController class will be Deprecated,end - ---CCComAudio class will be Deprecated,begin -function DeprecatedExtensionClass.CCComAudio() - deprecatedTip("CCComAudio","ccs.ComAudio") - return ccs.ComAudio -end -_G["CCComAudio"] = DeprecatedExtensionClass.CCComAudio() ---CCComAudio class will be Deprecated,end - ---CCComAttribute class will be Deprecated,begin -function DeprecatedExtensionClass.CCComAttribute() - deprecatedTip("CCComAttribute","ccs.ComAttribute") - return ccs.ComAttribute -end -_G["CCComAttribute"] = DeprecatedExtensionClass.CCComAttribute() ---CCComAttribute class will be Deprecated,end - ---CCComRender class will be Deprecated,begin -function DeprecatedExtensionClass.CCComRender() - deprecatedTip("CCComRender","ccs.ComRender") - return ccs.ComRender -end -_G["CCComRender"] = DeprecatedExtensionClass.CCComRender() ---CCComRender class will be Deprecated,end - ---ActionManager class will be Deprecated,begin -function DeprecatedExtensionClass.ActionManager() - deprecatedTip("ActionManager","ccs.ActionManagerEx") - return ccs.ActionManagerEx -end -_G["ActionManager"] = DeprecatedExtensionClass.ActionManager() ---CCComRender class will be Deprecated,end - ---SceneReader class will be Deprecated,begin -function DeprecatedExtensionClass.SceneReader() - deprecatedTip("SceneReader","ccs.SceneReader") - return ccs.SceneReader -end -_G["SceneReader"] = DeprecatedExtensionClass.SceneReader() ---SceneReader class will be Deprecated,end - ---GUIReader class will be Deprecated,begin -function DeprecatedExtensionClass.GUIReader() - deprecatedTip("GUIReader","ccs.GUIReader") - return ccs.GUIReader -end -_G["GUIReader"] = DeprecatedExtensionClass.GUIReader() ---GUIReader class will be Deprecated,end - ---UIRootWidget class will be Deprecated,begin -function DeprecatedExtensionClass.UIRootWidget() - deprecatedTip("UIRootWidget","ccs.UIRootWidget") - return ccs.UIRootWidget -end -_G["UIRootWidget"] = DeprecatedExtensionClass.UIRootWidget() ---UIRootWidget class will be Deprecated,end - ---ActionObject class will be Deprecated,begin -function DeprecatedExtensionClass.ActionObject() - deprecatedTip("ActionObject","ccs.ActionObject") - return ccs.ActionObject -end -_G["ActionObject"] = DeprecatedExtensionClass.ActionObject() ---ActionObject class will be Deprecated,end \ No newline at end of file diff --git a/extensions/scripting/lua-bindings/script/cocostudio/DeprecatedCocoStudioFunc.lua b/extensions/scripting/lua-bindings/script/cocostudio/DeprecatedCocoStudioFunc.lua deleted file mode 100644 index f8e867deac..0000000000 --- a/extensions/scripting/lua-bindings/script/cocostudio/DeprecatedCocoStudioFunc.lua +++ /dev/null @@ -1,81 +0,0 @@ -if nil == ccs then - return -end - ---tip -local function deprecatedTip(old_name,new_name) - print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") -end - ---functions of GUIReader will be deprecated begin -local GUIReaderDeprecated = { } -function GUIReaderDeprecated.shareReader() - deprecatedTip("GUIReader:shareReader","ccs.GUIReader:getInstance") - return ccs.GUIReader:getInstance() -end -GUIReader.shareReader = GUIReaderDeprecated.shareReader - -function GUIReaderDeprecated.purgeGUIReader() - deprecatedTip("GUIReader:purgeGUIReader","ccs.GUIReader:destroyInstance") - return ccs.GUIReader:destroyInstance() -end -GUIReader.purgeGUIReader = GUIReaderDeprecated.purgeGUIReader ---functions of GUIReader will be deprecated end - ---functions of SceneReader will be deprecated begin -local SceneReaderDeprecated = { } -function SceneReaderDeprecated.sharedSceneReader() - deprecatedTip("SceneReader:sharedSceneReader","ccs.SceneReader:getInstance") - return ccs.SceneReader:getInstance() -end -SceneReader.sharedSceneReader = SceneReaderDeprecated.sharedSceneReader - -function SceneReaderDeprecated.purgeSceneReader(self) - deprecatedTip("SceneReader:purgeSceneReader","ccs.SceneReader:destroyInstance") - return self:destroyInstance() -end -SceneReader.purgeSceneReader = SceneReaderDeprecated.purgeSceneReader ---functions of SceneReader will be deprecated end - - ---functions of ccs.GUIReader will be deprecated begin -local CCSGUIReaderDeprecated = { } -function CCSGUIReaderDeprecated.purgeGUIReader() - deprecatedTip("ccs.GUIReader:purgeGUIReader","ccs.GUIReader:destroyInstance") - return ccs.GUIReader:destroyInstance() -end -ccs.GUIReader.purgeGUIReader = CCSGUIReaderDeprecated.purgeGUIReader ---functions of ccs.GUIReader will be deprecated end - ---functions of ccs.ActionManagerEx will be deprecated begin -local CCSActionManagerExDeprecated = { } -function CCSActionManagerExDeprecated.destroyActionManager() - deprecatedTip("ccs.ActionManagerEx:destroyActionManager","ccs.ActionManagerEx:destroyInstance") - return ccs.ActionManagerEx:destroyInstance() -end -ccs.ActionManagerEx.destroyActionManager = CCSActionManagerExDeprecated.destroyActionManager ---functions of ccs.ActionManagerEx will be deprecated end - ---functions of ccs.SceneReader will be deprecated begin -local CCSSceneReaderDeprecated = { } -function CCSSceneReaderDeprecated.destroySceneReader(self) - deprecatedTip("ccs.SceneReader:destroySceneReader","ccs.SceneReader:destroyInstance") - return self:destroyInstance() -end -ccs.SceneReader.destroySceneReader = CCSSceneReaderDeprecated.destroySceneReader ---functions of ccs.SceneReader will be deprecated end - ---functions of CCArmatureDataManager will be deprecated begin -local CCArmatureDataManagerDeprecated = { } -function CCArmatureDataManagerDeprecated.sharedArmatureDataManager() - deprecatedTip("CCArmatureDataManager:sharedArmatureDataManager","ccs.ArmatureDataManager:getInstance") - return ccs.ArmatureDataManager:getInstance() -end -CCArmatureDataManager.sharedArmatureDataManager = CCArmatureDataManagerDeprecated.sharedArmatureDataManager - -function CCArmatureDataManagerDeprecated.purge() - deprecatedTip("CCArmatureDataManager:purge","ccs.ArmatureDataManager:destoryInstance") - return ccs.ArmatureDataManager:destoryInstance() -end -CCArmatureDataManager.purge = CCArmatureDataManagerDeprecated.purge ---functions of CCArmatureDataManager will be deprecated end diff --git a/extensions/scripting/lua-bindings/script/cocos2d/Cocos2d.lua b/extensions/scripting/lua-bindings/script/core/Axmol.lua similarity index 100% rename from extensions/scripting/lua-bindings/script/cocos2d/Cocos2d.lua rename to extensions/scripting/lua-bindings/script/core/Axmol.lua diff --git a/extensions/scripting/lua-bindings/script/cocos2d/Cocos2dConstants.lua b/extensions/scripting/lua-bindings/script/core/Constants.lua similarity index 100% rename from extensions/scripting/lua-bindings/script/cocos2d/Cocos2dConstants.lua rename to extensions/scripting/lua-bindings/script/core/Constants.lua diff --git a/extensions/scripting/lua-bindings/script/cocos2d/DrawPrimitives.lua b/extensions/scripting/lua-bindings/script/core/DrawPrimitives.lua similarity index 100% rename from extensions/scripting/lua-bindings/script/cocos2d/DrawPrimitives.lua rename to extensions/scripting/lua-bindings/script/core/DrawPrimitives.lua diff --git a/extensions/scripting/lua-bindings/script/cocos2d/bitExtend.lua b/extensions/scripting/lua-bindings/script/core/bitExtend.lua similarity index 100% rename from extensions/scripting/lua-bindings/script/cocos2d/bitExtend.lua rename to extensions/scripting/lua-bindings/script/core/bitExtend.lua diff --git a/extensions/scripting/lua-bindings/script/cocos2d/deprecated.lua b/extensions/scripting/lua-bindings/script/core/deprecated.lua similarity index 100% rename from extensions/scripting/lua-bindings/script/cocos2d/deprecated.lua rename to extensions/scripting/lua-bindings/script/core/deprecated.lua diff --git a/extensions/scripting/lua-bindings/script/cocos2d/functions.lua b/extensions/scripting/lua-bindings/script/core/functions.lua similarity index 100% rename from extensions/scripting/lua-bindings/script/cocos2d/functions.lua rename to extensions/scripting/lua-bindings/script/core/functions.lua diff --git a/extensions/scripting/lua-bindings/script/cocos2d/luaj.lua b/extensions/scripting/lua-bindings/script/core/luaj.lua similarity index 100% rename from extensions/scripting/lua-bindings/script/cocos2d/luaj.lua rename to extensions/scripting/lua-bindings/script/core/luaj.lua diff --git a/extensions/scripting/lua-bindings/script/cocos2d/luaoc.lua b/extensions/scripting/lua-bindings/script/core/luaoc.lua similarity index 100% rename from extensions/scripting/lua-bindings/script/cocos2d/luaoc.lua rename to extensions/scripting/lua-bindings/script/core/luaoc.lua diff --git a/extensions/scripting/lua-bindings/script/extension/DeprecatedExtensionClass.lua b/extensions/scripting/lua-bindings/script/extension/DeprecatedExtensionClass.lua deleted file mode 100644 index a5a593063a..0000000000 --- a/extensions/scripting/lua-bindings/script/extension/DeprecatedExtensionClass.lua +++ /dev/null @@ -1,134 +0,0 @@ -if nil == cc.Control then - return -end - --- This is the DeprecatedExtensionClass -DeprecatedExtensionClass = {} or DeprecatedExtensionClass - ---tip -local function deprecatedTip(old_name,new_name) - print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") -end - ---CCControl class will be Deprecated,begin -function DeprecatedExtensionClass.CCControl() - deprecatedTip("CCControl","cc.Control") - return cc.Control -end -_G["CCControl"] = DeprecatedExtensionClass.CCControl() ---CCControl class will be Deprecated,end - ---CCScrollView class will be Deprecated,begin -function DeprecatedExtensionClass.CCScrollView() - deprecatedTip("CCScrollView","cc.ScrollView") - return cc.ScrollView -end -_G["CCScrollView"] = DeprecatedExtensionClass.CCScrollView() ---CCScrollView class will be Deprecated,end - ---CCTableView class will be Deprecated,begin -function DeprecatedExtensionClass.CCTableView() - deprecatedTip("CCTableView","cc.TableView") - return cc.TableView -end -_G["CCTableView"] = DeprecatedExtensionClass.CCTableView() ---CCTableView class will be Deprecated,end - ---CCControlPotentiometer class will be Deprecated,begin -function DeprecatedExtensionClass.CCControlPotentiometer() - deprecatedTip("CCControlPotentiometer","cc.ControlPotentiometer") - return cc.ControlPotentiometer -end -_G["CCControlPotentiometer"] = DeprecatedExtensionClass.CCControlPotentiometer() ---CCControlPotentiometer class will be Deprecated,end - ---CCControlStepper class will be Deprecated,begin -function DeprecatedExtensionClass.CCControlStepper() - deprecatedTip("CCControlStepper","cc.ControlStepper") - return cc.ControlStepper -end -_G["CCControlStepper"] = DeprecatedExtensionClass.CCControlStepper() ---CCControlStepper class will be Deprecated,end - ---CCControlHuePicker class will be Deprecated,begin -function DeprecatedExtensionClass.CCControlHuePicker() - deprecatedTip("CCControlHuePicker","cc.ControlHuePicker") - return cc.ControlHuePicker -end -_G["CCControlHuePicker"] = DeprecatedExtensionClass.CCControlHuePicker() ---CCControlHuePicker class will be Deprecated,end - ---CCControlSlider class will be Deprecated,begin -function DeprecatedExtensionClass.CCControlSlider() - deprecatedTip("CCControlSlider","cc.ControlSlider") - return cc.ControlSlider -end -_G["CCControlSlider"] = DeprecatedExtensionClass.CCControlSlider() ---CCControlSlider class will be Deprecated,end - ---CCControlSaturationBrightnessPicker class will be Deprecated,begin -function DeprecatedExtensionClass.CCControlSaturationBrightnessPicker() - deprecatedTip("CCControlSaturationBrightnessPicker","cc.ControlSaturationBrightnessPicker") - return cc.ControlSaturationBrightnessPicker -end -_G["CCControlSaturationBrightnessPicker"] = DeprecatedExtensionClass.CCControlSaturationBrightnessPicker() ---CCControlSaturationBrightnessPicker class will be Deprecated,end - ---CCControlSwitch class will be Deprecated,begin -function DeprecatedExtensionClass.CCControlSwitch() - deprecatedTip("CCControlSwitch","cc.ControlSwitch") - return cc.ControlSwitch -end -_G["CCControlSwitch"] = DeprecatedExtensionClass.CCControlSwitch() ---CCControlSwitch class will be Deprecated,end - ---CCControlButton class will be Deprecated,begin -function DeprecatedExtensionClass.CCControlButton() - deprecatedTip("CCControlButton","cc.ControlButton") - return cc.ControlButton -end -_G["CCControlButton"] = DeprecatedExtensionClass.CCControlButton() ---CCControlButton class will be Deprecated,end - ---CCControlColourPicker class will be Deprecated,begin -function DeprecatedExtensionClass.CCControlColourPicker() - deprecatedTip("CCControlColourPicker","cc.ControlColourPicker") - return cc.ControlColourPicker -end -_G["CCControlColourPicker"] = DeprecatedExtensionClass.CCControlColourPicker() ---CCControlColourPicker class will be Deprecated,end - - -if nil == ccui then - return -end - ---CCEditBox class will be Deprecated,begin -function DeprecatedExtensionClass.CCEditBox() - deprecatedTip("CCEditBox","ccui.EditBox") - return ccui.EditBox -end -_G["CCEditBox"] = DeprecatedExtensionClass.CCEditBox() - -function DeprecatedExtensionClass.CCUIEditBox() - deprecatedTip("cc.EditBox","ccui.EditBox") - return ccui.EditBox -end -_G["cc"]["EditBox"] = DeprecatedExtensionClass.CCUIEditBox() - ---CCEditBox class will be Deprecated,end - ---CCScale9Sprite class will be Deprecated,begin -function DeprecatedExtensionClass.CCScale9Sprite() - deprecatedTip("CCScale9Sprite","ccui.Scale9Sprite") - return ccui.Scale9Sprite -end -_G["CCScale9Sprite"] = DeprecatedExtensionClass.CCScale9Sprite() - -function DeprecatedExtensionClass.UIScale9Sprite() - deprecatedTip("cc.Scale9Sprite","ccui.Scale9Sprite") - return ccui.Scale9Sprite -end -_G["cc"]["Scale9Sprite"] = DeprecatedExtensionClass.UIScale9Sprite() ---CCScale9Sprite class will be Deprecated,end - diff --git a/extensions/scripting/lua-bindings/script/extension/DeprecatedExtensionEnum.lua b/extensions/scripting/lua-bindings/script/extension/DeprecatedExtensionEnum.lua deleted file mode 100644 index 9483df0973..0000000000 --- a/extensions/scripting/lua-bindings/script/extension/DeprecatedExtensionEnum.lua +++ /dev/null @@ -1,26 +0,0 @@ -if nil == cc.Control then - return -end - -_G.kCCControlStepperPartMinus = cc.CONTROL_STEPPER_PART_MINUS -_G.kCCControlStepperPartPlus = cc.CONTROL_STEPPER_PART_PLUS -_G.kCCControlStepperPartNone = cc.CONTROL_STEPPER_PART_NONE - -_G.CCControlEventTouchDown = cc.CONTROL_EVENTTYPE_TOUCH_DOWN -_G.CCControlEventTouchDragInside = cc.CONTROL_EVENTTYPE_DRAG_INSIDE -_G.CCControlEventTouchDragOutside = cc.CONTROL_EVENTTYPE_DRAG_OUTSIDE -_G.CCControlEventTouchDragEnter = cc.CONTROL_EVENTTYPE_DRAG_ENTER -_G.CCControlEventTouchDragExit = cc.CONTROL_EVENTTYPE_DRAG_EXIT -_G.CCControlEventTouchUpInside = cc.CONTROL_EVENTTYPE_TOUCH_UP_INSIDE -_G.CCControlEventTouchUpOutside = cc.CONTROL_EVENTTYPE_TOUCH_UP_OUTSIDE -_G.CCControlEventTouchCancel = cc.CONTROL_EVENTTYPE_TOUCH_CANCEL -_G.CCControlEventValueChanged = cc.CONTROL_EVENTTYPE_VALUE_CHANGED -_G.CCControlStateNormal = cc.CONTROL_STATE_NORMAL -_G.CCControlStateHighlighted = cc.CONTROL_STATE_HIGH_LIGHTED -_G.CCControlStateDisabled = cc.CONTROL_STATE_DISABLED -_G.CCControlStateSelected = cc.CONTROL_STATE_SELECTED - -_G.kCCScrollViewDirectionHorizontal = cc.SCROLLVIEW_DIRECTION_HORIZONTAL -_G.kCCScrollViewDirectionVertical = cc.SCROLLVIEW_DIRECTION_VERTICAL -_G.kCCTableViewFillTopDown = cc.TABLEVIEW_FILL_TOPDOWN -_G.kCCTableViewFillBottomUp = cc.TABLEVIEW_FILL_BOTTOMUP diff --git a/extensions/scripting/lua-bindings/script/extension/DeprecatedExtensionFunc.lua b/extensions/scripting/lua-bindings/script/extension/DeprecatedExtensionFunc.lua deleted file mode 100644 index 2b617fc435..0000000000 --- a/extensions/scripting/lua-bindings/script/extension/DeprecatedExtensionFunc.lua +++ /dev/null @@ -1,32 +0,0 @@ -if nil == cc.Control then - return -end - ---tip -local function deprecatedTip(old_name,new_name) - print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") -end - ---functions of CCControl will be deprecated end -local CCControlDeprecated = { } -function CCControlDeprecated.addHandleOfControlEvent(self,func,controlEvent) - deprecatedTip("addHandleOfControlEvent","registerControlEventHandler") - print("come in addHandleOfControlEvent") - self:registerControlEventHandler(func,controlEvent) -end -CCControl.addHandleOfControlEvent = CCControlDeprecated.addHandleOfControlEvent ---functions of CCControl will be deprecated end - ---Enums of CCTableView will be deprecated begin -CCTableView.kTableViewScroll = cc.SCROLLVIEW_SCRIPT_SCROLL -CCTableView.kTableViewZoom = cc.SCROLLVIEW_SCRIPT_ZOOM -CCTableView.kTableCellTouched = cc.TABLECELL_TOUCHED -CCTableView.kTableCellSizeForIndex = cc.TABLECELL_SIZE_FOR_INDEX -CCTableView.kTableCellSizeAtIndex = cc.TABLECELL_SIZE_AT_INDEX -CCTableView.kNumberOfCellsInTableView = cc.NUMBER_OF_CELLS_IN_TABLEVIEW ---Enums of CCTableView will be deprecated end - ---Enums of CCScrollView will be deprecated begin -CCScrollView.kScrollViewScroll = cc.SCROLLVIEW_SCRIPT_SCROLL -CCScrollView.kScrollViewZoom = cc.SCROLLVIEW_SCRIPT_ZOOM ---Enums of CCScrollView will be deprecated end diff --git a/extensions/scripting/lua-bindings/script/init.lua b/extensions/scripting/lua-bindings/script/init.lua index 07c970cfaf..05bda3d214 100644 --- a/extensions/scripting/lua-bindings/script/init.lua +++ b/extensions/scripting/lua-bindings/script/init.lua @@ -43,9 +43,9 @@ ccexp = axexp ccui = axui ccb = axb -require "axmol.cocos2d.Cocos2d" -require "axmol.cocos2d.Cocos2dConstants" -require "axmol.cocos2d.functions" +require "axmol.core.Axmol" +require "axmol.core.Constants" +require "axmol.core.functions" __G__TRACKBACK__ = function(msg) local msg = debug.traceback(msg, 3) @@ -71,37 +71,8 @@ if nil ~= sp then require "axmol.spine.SpineConstants" end --- require "axmol.cocos2d.deprecated" - -- Lua extensions -require "axmol.cocos2d.bitExtend" - --- CCLuaEngine --- require "axmol.cocos2d.DeprecatedCocos2dClass" --- require "axmol.cocos2d.DeprecatedCocos2dEnum" --- require "axmol.cocos2d.DeprecatedCocos2dFunc" - --- register_cocostudio_module --- if nil ~= ccs then --- require "axmol.cocostudio.DeprecatedCocoStudioClass" --- require "axmol.cocostudio.DeprecatedCocoStudioFunc" --- end - --- register_extension_module --- require "axmol.extension.DeprecatedExtensionClass" --- require "axmol.extension.DeprecatedExtensionEnum" --- require "axmol.extension.DeprecatedExtensionFunc" - --- register_network_module --- require "axmol.network.DeprecatedNetworkClass" --- require "axmol.network.DeprecatedNetworkEnum" --- require "axmol.network.DeprecatedNetworkFunc" - --- register_ui_module --- if nil ~= ccui then --- require "axmol.ui.DeprecatedUIEnum" --- require "axmol.ui.DeprecatedUIFunc" --- end +require "axmol.core.bitExtend" -- physics3d require "axmol.physics3d.physics3d-constants" diff --git a/extensions/scripting/lua-bindings/script/network/DeprecatedNetworkClass.lua b/extensions/scripting/lua-bindings/script/network/DeprecatedNetworkClass.lua deleted file mode 100644 index 06e280bd21..0000000000 --- a/extensions/scripting/lua-bindings/script/network/DeprecatedNetworkClass.lua +++ /dev/null @@ -1,19 +0,0 @@ -if nil == cc.XMLHttpRequest then - return -end --- This is the DeprecatedNetworkClass - -DeprecatedNetworkClass = {} or DeprecatedNetworkClass - ---tip -local function deprecatedTip(old_name,new_name) - print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") -end - ---WebSocket class will be Deprecated,begin -function DeprecatedNetworkClass.WebSocket() - deprecatedTip("WebSocket","cc.WebSocket") - return cc.WebSocket -end -_G["WebSocket"] = DeprecatedNetworkClass.WebSocket() ---WebSocket class will be Deprecated,end diff --git a/extensions/scripting/lua-bindings/script/network/DeprecatedNetworkEnum.lua b/extensions/scripting/lua-bindings/script/network/DeprecatedNetworkEnum.lua deleted file mode 100644 index da08d356f8..0000000000 --- a/extensions/scripting/lua-bindings/script/network/DeprecatedNetworkEnum.lua +++ /dev/null @@ -1,13 +0,0 @@ -if nil == cc.XMLHttpRequest then - return -end - -_G.kWebSocketScriptHandlerOpen = cc.WEBSOCKET_OPEN -_G.kWebSocketScriptHandlerMessage = cc.WEBSOCKET_MESSAGE -_G.kWebSocketScriptHandlerClose = cc.WEBSOCKET_CLOSE -_G.kWebSocketScriptHandlerError = cc.WEBSOCKET_ERROR - -_G.kStateConnecting = cc.WEBSOCKET_STATE_CONNECTING -_G.kStateOpen = cc.WEBSOCKET_STATE_OPEN -_G.kStateClosing = cc.WEBSOCKET_STATE_CLOSING -_G.kStateClosed = cc.WEBSOCKET_STATE_CLOSED diff --git a/extensions/scripting/lua-bindings/script/network/DeprecatedNetworkFunc.lua b/extensions/scripting/lua-bindings/script/network/DeprecatedNetworkFunc.lua deleted file mode 100644 index 71bed30a6d..0000000000 --- a/extensions/scripting/lua-bindings/script/network/DeprecatedNetworkFunc.lua +++ /dev/null @@ -1,29 +0,0 @@ -local unpack = table.unpack - -if nil == cc.XMLHttpRequest then - return -end - ---tip -local function deprecatedTip(old_name,new_name) - print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") -end - ---functions of WebSocket will be deprecated begin -local targetPlatform = CCApplication:getInstance():getTargetPlatform() -if (kTargetIphone == targetPlatform) or (kTargetIpad == targetPlatform) or (kTargetAndroid == targetPlatform) or (kTargetWindows == targetPlatform) then - local WebSocketDeprecated = { } - function WebSocketDeprecated.sendTextMsg(self, string) - deprecatedTip("WebSocket:sendTextMsg","WebSocket:sendString") - return self:sendString(string) - end - WebSocket.sendTextMsg = WebSocketDeprecated.sendTextMsg - - function WebSocketDeprecated.sendBinaryMsg(self, table,tablesize) - deprecatedTip("WebSocket:sendBinaryMsg","WebSocket:sendString") - string.char(unpack(table)) - return self:sendString(string.char(unpack(table))) - end - WebSocket.sendBinaryMsg = WebSocketDeprecated.sendBinaryMsg -end ---functions of WebSocket will be deprecated end