newlist

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年8月7日

摘要: #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... 阅读全文
posted @ 2013-08-07 17:31 一枚程序 阅读(850) 评论(0) 推荐(0) 编辑

摘要: #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 阅读全文
posted @ 2013-08-07 17:01 一枚程序 阅读(423) 评论(0) 推荐(0) 编辑

摘要: //类的定义#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); .. 阅读全文
posted @ 2013-08-07 15:17 一枚程序 阅读(1206) 评论(0) 推荐(0) 编辑

摘要: 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 阅读全文
posted @ 2013-08-07 13:51 一枚程序 阅读(917) 评论(0) 推荐(0) 编辑