mirror of https://github.com/axmolengine/axmol.git
CCDirector stats labels are now CCLabelBMFont instead of CCLabelTTF.
This commit is contained in:
parent
9ee1b32c26
commit
320b181dbf
|
@ -40,7 +40,6 @@ THE SOFTWARE.
|
|||
#include "CCApplication.h"
|
||||
#include "CCLabelBMFont.h"
|
||||
#include "CCActionManager.h"
|
||||
#include "CCLabelTTF.h"
|
||||
#include "CCConfiguration.h"
|
||||
#include "CCKeypadDispatcher.h"
|
||||
#include "CCAccelerometer.h"
|
||||
|
@ -719,9 +718,9 @@ void CCDirector::createStatsLabel()
|
|||
CC_SAFE_RELEASE_NULL(m_pSPFLabel);
|
||||
CC_SAFE_RELEASE_NULL(m_pDrawsLabel);
|
||||
|
||||
m_pFPSLabel = CCLabelTTF::labelWithString("00.0", "Arial", 16);
|
||||
m_pSPFLabel = CCLabelTTF::labelWithString("0.000", "Arial", 16);
|
||||
m_pDrawsLabel = CCLabelTTF::labelWithString("000", "Arial", 16);
|
||||
m_pFPSLabel = CCLabelBMFont::labelWithString("00.0", "fonts/fps_images.fnt");
|
||||
m_pSPFLabel = CCLabelBMFont::labelWithString("0.000", "fonts/fps_images.fnt");
|
||||
m_pDrawsLabel = CCLabelBMFont::labelWithString("000", "fonts/fps_images.fnt");
|
||||
|
||||
m_pFPSLabel->retain();
|
||||
m_pSPFLabel->retain();
|
||||
|
|
|
@ -54,7 +54,8 @@ typedef enum {
|
|||
kCCDirectorProjectionDefault = kCCDirectorProjection3D,
|
||||
} ccDirectorProjection;
|
||||
|
||||
class CCLabelTTF;
|
||||
/* Forward declarations. */
|
||||
class CCLabelBMFont;
|
||||
class CCScene;
|
||||
class CCEGLView;
|
||||
class CCDirectorDelegate;
|
||||
|
@ -334,9 +335,9 @@ protected:
|
|||
ccTime m_fAccumDt;
|
||||
ccTime m_fFrameRate;
|
||||
|
||||
CCLabelTTF *m_pFPSLabel;
|
||||
CCLabelTTF *m_pSPFLabel;
|
||||
CCLabelTTF *m_pDrawsLabel;
|
||||
CCLabelBMFont *m_pFPSLabel;
|
||||
CCLabelBMFont *m_pSPFLabel;
|
||||
CCLabelBMFont *m_pDrawsLabel;
|
||||
|
||||
/* is the running scene paused */
|
||||
bool m_bPaused;
|
||||
|
|
Loading…
Reference in New Issue