"景先生毕设|www.jxszl.com

C# CCControlEvent类代码示例

2023-12-29 17:40编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中CCControlEvent类的典型用法代码示例。如果您正苦于以下问题:C#CCControlEvent类的具体用法?C#CCControlEvent怎么用?C#CCControlEvent使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:onAnimationsTestClicked publicvoidonAnimationsTestClicked(objectpSender,CCControlEventpCCControlEvent) { //Loadnodegraph(TestAnimationsisasubclassofCCLayer)andretrievetheccbactionmanager CCBAnimationManageractionManager=null; /*CreateanautoreleaseCCNodeLoaderLibrary.*/ CCNodeLoaderLibraryccNodeLoaderLibrary=CCNodeLoaderLibrary.NewDefaultCCNodeLoaderLibrary(); ccNodeLoaderLibrary.RegisterCCNodeLoader("TestHeaderLayer",newLoader()); ccNodeLoaderLibrary.RegisterCCNodeLoader("TestAnimationsLayer",newLoader()); /*CreateanautoreleaseCCBReader.*/ varccbReader=newCCBReader(ccNodeLoaderLibrary); /*Readaccbifile.*/ //Loadthescenefromtheccbi-file,settingthisclassas //theownerwillcauselblTestTitletobesetbytheCCBReader. //lblTestTitleisintheTestHeader.ccbi,whichisreferenced //fromeachofthetestscenes. CCNodeanimationsTest=ccbReader.ReadNodeGraphFromFile("ccb/ccb/TestAnimations.ccbi",this,refactionManager); ((AnimationsTestLayer)animationsTest).setAnimationManager(actionManager); mTestTitleLabelTTF.Label=("TestAnimations.ccbi"); CCScenescene=newCCScene(); scene.AddChild(animationsTest); /*Pushthenewscenewithafancytransition.*/ CCColor3BtransitionColor; transitionColor.R=0; transitionColor.G=0; transitionColor.B=0; CCDirector.SharedDirector.PushScene(newCCTransitionFade(0.5f,scene,transitionColor)); }
原文链接:http://www.jxszl.com/biancheng/C/556691.html