mirror of https://github.com/axmolengine/axmol.git
[ci skip]Remove unwanted code.
This commit is contained in:
parent
c5ff21f7c6
commit
f502c5900b
|
@ -18,19 +18,7 @@ void TextureAtlasEncryptionDemo::onEnter()
|
|||
TestCase::onEnter();
|
||||
|
||||
auto s = Director::getInstance()->getWinSize();
|
||||
|
||||
auto label = Label::createWithTTF(title().c_str(), "fonts/arial.ttf", 28);
|
||||
label->setPosition( Vec2(s.width/2, s.height * 0.75f) );
|
||||
this->addChild(label, 1);
|
||||
|
||||
std::string strSubtitle = subtitle();
|
||||
if(strSubtitle.empty() == false)
|
||||
{
|
||||
auto subLabel = Label::createWithTTF(strSubtitle.c_str(), "fonts/Thonburi.ttf", 16);
|
||||
subLabel->setPosition( Vec2(s.width/2, s.height-80) );
|
||||
this->addChild(subLabel, 1);
|
||||
}
|
||||
|
||||
|
||||
// Load the non-encrypted atlas
|
||||
SpriteFrameCache::getInstance()->addSpriteFramesWithFile("Images/nonencryptedAtlas.plist", "Images/nonencryptedAtlas.pvr.ccz");
|
||||
|
||||
|
|
Loading…
Reference in New Issue