摘要:
#include "../CCControlScene.h"class CCControlSliderTest : public CCControlScene{public: CCControlSliderTest(); virtual ~CCControlSliderTest(); bool init(); void valueChanged(CCObject *sender, CCControlEvent controlEvent);protected: CCLabelTTF* m_pDisplayValueLabel; CONTROL_SCENE_CR... 阅读全文
摘要:
#ifndef __CCCONTROLSCENE_H__#define __CCCONTROLSCENE_H__#include "cocos2d.h"#include "cocos-ext.h"USING_NS_CC;USING_NS_CC_EXT;//创建层的同时赋值标题#define CONTROL_SCENE_CREATE_FUNC(controlScene) \public: \static CCScene* sceneWithTitle(const char * title) \{ \ CCScene* pScene = CCScene::c 阅读全文
摘要:
//类的定义#ifndef __NOTIFICATIONCENTERTEST_H__#define __NOTIFICATIONCENTERTEST_H__#include "cocos2d.h"class NotificationCenterTest : public cocos2d::CCLayer{public: NotificationCenterTest(); void toExtensionsMainLayer(cocos2d::CCObject* sender); void toggleSwitch(cocos2d::CCObject *sender); .. 阅读全文
摘要:
const std::string testsName[MAX_COUNT] = { "Bug-350", "Bug-422", "Bug-458", "Bug-624", "Bug-886", "Bug-899", "Bug-914", "Bug-1159", "Bug-1174"};void ExtensionsMainLayer::onEnter(){ CCLayer::onEnter(); CCSize s 阅读全文