diff --git a/src/MoreLeaderboards/MoreLeaderboards.cpp b/src/MoreLeaderboards/MoreLeaderboards.cpp index 64d4172..e3cdd39 100644 --- a/src/MoreLeaderboards/MoreLeaderboards.cpp +++ b/src/MoreLeaderboards/MoreLeaderboards.cpp @@ -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, diff --git a/src/MoreLeaderboards/SelectRegionCell.cpp b/src/MoreLeaderboards/SelectRegionCell.cpp index 581bad3..9ac68af 100644 --- a/src/MoreLeaderboards/SelectRegionCell.cpp +++ b/src/MoreLeaderboards/SelectRegionCell.cpp @@ -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); diff --git a/src/Notifications/EventsPush.cpp b/src/Notifications/EventsPush.cpp index 2d91551..5e4d14d 100644 --- a/src/Notifications/EventsPush.cpp +++ b/src/Notifications/EventsPush.cpp @@ -504,17 +504,17 @@ bool EventsPush::init(sio::message::ptr const& data) { if (starsum >= 10) { std::string diffStr = std::to_string(static_cast(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(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(getDemonDifficulty(starsum))); auto name = "difficulty_" + diffStr + "_legendaryIcon.png"; - legendaryFace = CCSprite::create(Mod::get()->expandSpriteName(name.c_str())); + legendaryFace = CCSprite::create((""_spr+name).c_str()); } } @@ -535,17 +535,17 @@ bool EventsPush::init(sio::message::ptr const& data) { if (starsum >= 10) { std::string diffStr = std::to_string(static_cast(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(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(getDemonDifficulty(starsum))); auto name = "difficulty_" + diffStr + "_mythicIcon.png"; - mythicFace = CCSprite::create(Mod::get()->expandSpriteName(name.c_str())); + mythicFace = CCSprite::create((""_spr+name).c_str()); } }