2011-07-29 15:57:27 +08:00
|
|
|
#ifndef _FONT_TEST_H_
|
|
|
|
#define _FONT_TEST_H_
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "../testBasic.h"
|
|
|
|
|
|
|
|
class FontTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
2011-07-29 15:57:27 +08:00
|
|
|
class FontTest : public cocos2d::CCLayer
|
|
|
|
{
|
|
|
|
public:
|
2012-04-19 14:35:52 +08:00
|
|
|
FontTest();
|
|
|
|
void showFont(const char *pFont);
|
2011-07-29 15:57:27 +08:00
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
void restartCallback(CCObject* pSender);
|
|
|
|
void nextCallback(CCObject* pSender);
|
|
|
|
void backCallback(CCObject* pSender);
|
|
|
|
virtual std::string title();
|
2011-07-29 15:57:27 +08:00
|
|
|
|
2012-06-14 15:13:16 +08:00
|
|
|
LAYER_CREATE_FUNC(FontTest);
|
2011-07-29 15:57:27 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _FONT_TEST_H_
|