mirror of https://github.com/axmolengine/axmol.git
some more clean up for CCLabel
This commit is contained in:
parent
7d141a3f57
commit
76ebeb0676
|
@ -47,6 +47,13 @@ public:
|
|||
virtual ~Label();
|
||||
Label();
|
||||
|
||||
virtual void setAlignment(TextAlignment alignment) = 0;
|
||||
virtual void setWidth(float width) = 0;
|
||||
virtual void setLineBreakWithoutSpace(bool breakWithoutSpace) = 0;
|
||||
virtual void setScale(float scale) = 0;
|
||||
virtual void setScaleX(float scaleX) = 0;
|
||||
virtual void setScaleY(float scaleY) = 0;
|
||||
|
||||
|
||||
// needs to go - TEST STUFF /////////////////////////////////////////////////////////////////////////
|
||||
static Label* createWithBMFontOLD( const char* label, const char* bmfontFilePath, int lineSize = 0);
|
||||
|
|
|
@ -40,7 +40,7 @@ Layer* restartAtlasAction();
|
|||
|
||||
static int sceneIdx = -1;
|
||||
|
||||
#define MAX_LAYER 32
|
||||
#define MAX_LAYER 31
|
||||
|
||||
Layer* createAtlasLayer(int nIndex)
|
||||
{
|
||||
|
@ -77,9 +77,9 @@ Layer* createAtlasLayer(int nIndex)
|
|||
case 26: return new LabelBMFontBounds();
|
||||
case 27: return new TTFFontShadowAndStroke();
|
||||
case 28: return new LabelBMFontNewTest();
|
||||
case 29: return new NewLabelBMFontTestOld();
|
||||
case 30: return new NewLabelBMFontTest();
|
||||
case 31: return new NewLabelTTFTest();
|
||||
//case 29: return new NewLabelBMFontTestOld();
|
||||
case 29: return new NewLabelBMFontTest();
|
||||
case 30: return new NewLabelTTFTest();
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue