Skip to content

Commit

Permalink
4th fixed _spr
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouca committed Jun 14, 2024
1 parent 1f15f6a commit d6750f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/MoreLeaderboards/MoreLeaderboards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ bool MoreLeaderboards::init(std::string type) {
// Change region
auto menu_region = CCMenu::create();

auto regionSpr = CCSprite::createWithSpriteFrameName("earth_btn.png"_spr);;
auto regionSpr = CCSprite::create("earth_btn.png"_spr);;
regionSpr->setScale(.8f);
auto regionBtn = CCMenuItemSpriteExtra::create(
regionSpr,
Expand Down
2 changes: 1 addition & 1 deletion src/MoreLeaderboards/SelectRegionCell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ bool SelectRegionCell::init(std::string mod) {
addChild(flagSpr);
}
} else {
auto earthSpr = CCSprite::createWithSpriteFrameName("earth_btn.png"_spr);
auto earthSpr = CCSprite::create("earth_btn.png"_spr);
earthSpr->setScale(.425f);
earthSpr->setPosition({ 20, 14 });
addChild(earthSpr);
Expand Down
12 changes: 6 additions & 6 deletions src/Notifications/EventsPush.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,17 +504,17 @@ bool EventsPush::init(sio::message::ptr const& data) {
if (starsum >= 10) {
std::string diffStr = std::to_string(static_cast<int>(getDifficulty(starsum)));
auto name = "difficulty_0" + diffStr + "_legendaryIcon.png";
legendaryFace = CCSprite::create(Mod::get()->expandSpriteName(name.c_str()));
legendaryFace = CCSprite::create((""_spr+name).c_str());
}
} else {
if (starsum < 6) {
std::string diffStr = std::to_string(static_cast<int>(getDemonDifficulty(starsum)));
auto name = "difficulty_0" + diffStr + "_legendaryIcon.png";
legendaryFace = CCSprite::create(Mod::get()->expandSpriteName(name.c_str()));
legendaryFace = CCSprite::create((""_spr+name).c_str());
} else {
std::string diffStr = std::to_string(static_cast<int>(getDemonDifficulty(starsum)));
auto name = "difficulty_" + diffStr + "_legendaryIcon.png";
legendaryFace = CCSprite::create(Mod::get()->expandSpriteName(name.c_str()));
legendaryFace = CCSprite::create((""_spr+name).c_str());
}
}

Expand All @@ -535,17 +535,17 @@ bool EventsPush::init(sio::message::ptr const& data) {
if (starsum >= 10) {
std::string diffStr = std::to_string(static_cast<int>(getDifficulty(starsum)));
auto name = "difficulty_0" + diffStr + "_mythicIcon.png";
mythicFace = CCSprite::create(Mod::get()->expandSpriteName(name.c_str()));
mythicFace = CCSprite::create((""_spr+name).c_str());
}
} else {
if (starsum < 6) {
std::string diffStr = std::to_string(static_cast<int>(getDemonDifficulty(starsum)));
auto name = "difficulty_0" + diffStr + "_mythicIcon.png";
mythicFace = CCSprite::create(Mod::get()->expandSpriteName(name.c_str()));
mythicFace = CCSprite::create((""_spr+name).c_str());
} else {
std::string diffStr = std::to_string(static_cast<int>(getDemonDifficulty(starsum)));
auto name = "difficulty_" + diffStr + "_mythicIcon.png";
mythicFace = CCSprite::create(Mod::get()->expandSpriteName(name.c_str()));
mythicFace = CCSprite::create((""_spr+name).c_str());
}
}

Expand Down

0 comments on commit d6750f1

Please sign in to comment.