Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
YellowCat98 authored Jun 13, 2024
1 parent 6729c5d commit e3b785c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,20 @@ class $modify(LoadingLayer) {
bool init(bool p0) {
if (!LoadingLayer::init(p0))
return false;
if (Mod::get()->getSettingValue<bool>("lite-spr-onloadinglayer")) {
CCSprite* litespr = CCSprite::createWithSpriteFrameName("GJ_lite_001.png");

CCSprite* litespr = CCSprite::createWithSpriteFrameName("GJ_lite_001.png");
CCSprite* maintitle = static_cast<CCSprite*>(this->getChildByID("gd-logo")); /* i love you robtop */
auto maintitlexpos = maintitle->getPositionX();
auto maintitleypos = maintitle->getPositionY();

CCSprite* maintitle = static_cast<CCSprite*>(this->getChildByID("gd-logo")); /* i love you robtop */
auto maintitlexpos = maintitle->getPositionX();
auto maintitleypos = maintitle->getPositionY();
litespr->setPosition(ccp(maintitlexpos + 149, maintitleypos - 32));

litespr->setPosition(ccp(maintitlexpos + 149, maintitleypos - 32));
this->addChild(litespr);
}

this->addChild(litespr);

return true;
}

};
};

0 comments on commit e3b785c

Please sign in to comment.