예제 #1
0
CLabelAtlas* TuiManager::createLabelAtlas(float tag, const char* num, const char* imgPath,float x,float y,float w,float h,float rotation){
	CLabelAtlas *pLabAtlas = CLabelAtlas::create(num, imgPath, w / 12, h, 48);
	pLabAtlas->setRotation(rotation);
	pLabAtlas->setPosition(Vec2(x,-y));
	pLabAtlas->setTag(tag);
	return pLabAtlas;
}
예제 #2
0
파일: TuiManager.cpp 프로젝트: Kudoo/Tui-x
CLabelAtlas* TuiManager::createLabelAtlas(float tag,const char* imgPath,float x,float y,float w,float h,float rotation){
	CLabelAtlas *pLabAtlas = CLabelAtlas::create("123456",imgPath,w/12,h,48);
	pLabAtlas->setPosition(Point(x,-y));
	pLabAtlas->setTag(tag);
	return pLabAtlas;
}