Example #1
0
CLabelAtlas* CLabelAtlas::create(const char *pString, const char *fntFile)
{
    CLabelAtlas *pRet = new CLabelAtlas();
    if( pRet && pRet->initWithString(pString, fntFile) )
    {
        pRet->autorelease();
        return pRet;
    }
    CC_SAFE_DELETE(pRet);
    return pRet;
}
Example #2
0
CLabelAtlas* CLabelAtlas::create(const char *pString, const char *charMapFile, unsigned int itemWidth, int unsigned itemHeight, unsigned int startCharMap)
{
    CLabelAtlas *pRet = new CLabelAtlas();
    if( pRet && pRet->initWithString(pString, charMapFile, itemWidth, itemHeight, startCharMap) )
    {
        pRet->autorelease();
        return pRet;
    }
    CC_SAFE_DELETE(pRet);
    return NULL;
}
Example #3
0
CLabelAtlas* CLabelAtlas::create(const char* pString, const char* fntFile)
{    
    CLabelAtlas *pRet = new CLabelAtlas();
    if( pRet && pRet->initWithString(pString, fntFile) )
    {
		pRet->setTouchEnabled(false);
		pRet->setAnchorPoint(CCWIDGET_BASIC_DEFAULT_ANCHOR_POINT);
		pRet->autorelease();
        return pRet;
    }
	CC_SAFE_DELETE(pRet);
    return pRet;
}
Example #4
0
CLabelAtlas* CLabelAtlas::create(const char* pString, const char* charMapFile, unsigned int itemWidth, int unsigned itemHeight, unsigned int startCharMap)
{
    CLabelAtlas *pRet = new CLabelAtlas();
    if( pRet && pRet->initWithString(pString, charMapFile, itemWidth, itemHeight, startCharMap) )
    {
		pRet->setTouchEnabled(false);
		pRet->setAnchorPoint(CCWIDGET_BASIC_DEFAULT_ANCHOR_POINT);
        pRet->autorelease();
        return pRet;
    }
    CC_SAFE_DELETE(pRet);
    return NULL;
}
Example #5
0
CLabelAtlas* CLabelAtlas::create()
{
    // && pRet->initWithString(string, charMapFile, itemWidth, itemHeight, startCharMap)
    CLabelAtlas *pRet = new CLabelAtlas();
    if(pRet)
    {
        //        pRet->initWithString("122223.12", "gui/New/labelatlasimg.png", 12, 32, '.');
        pRet->autorelease();
        return pRet;
    }
    CC_SAFE_DELETE(pRet);

    return NULL;
}