2010-08-06 17:50:20 +08:00
|
|
|
#ifndef _CONTROLLER_H_
|
|
|
|
#define _CONTROLLER_H_
|
|
|
|
|
2010-08-25 10:26:31 +08:00
|
|
|
#include "cocos2d.h"
|
2010-08-06 17:50:20 +08:00
|
|
|
|
|
|
|
using namespace cocos2d;
|
|
|
|
|
2010-09-18 15:21:13 +08:00
|
|
|
#define ITEM_EVERYPAGE 7
|
2010-08-19 15:55:55 +08:00
|
|
|
|
2010-08-06 17:50:20 +08:00
|
|
|
class TestController : public CCLayer
|
|
|
|
{
|
|
|
|
public:
|
2010-10-13 14:45:10 +08:00
|
|
|
TestController();
|
2010-08-19 15:55:55 +08:00
|
|
|
~TestController();
|
2010-08-06 17:50:20 +08:00
|
|
|
|
2010-08-13 17:21:33 +08:00
|
|
|
void menuCallback(NSObject * pSender);
|
2010-08-17 17:38:26 +08:00
|
|
|
void closeCallback(NSObject * pSender);
|
2010-08-19 15:55:55 +08:00
|
|
|
|
|
|
|
void nextPageCallback(NSObject * pSender);
|
|
|
|
void prePageCallback(NSObject * pSender);
|
|
|
|
|
|
|
|
void updateItemsText();
|
|
|
|
|
|
|
|
private:
|
2010-10-15 16:02:50 +08:00
|
|
|
CCMenuItemLabel * m_pMenuItems[ITEM_EVERYPAGE];
|
|
|
|
|
|
|
|
unsigned int m_nUIDs[ITEM_EVERYPAGE];
|
2010-08-06 17:50:20 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|