Skip to content

Commit

Permalink
3rd fixed _spr
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouca committed Jun 14, 2024
1 parent b896e21 commit 1f15f6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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::create(Mod::get()->expandSpriteName("earth_btn.png"_spr));
auto regionSpr = CCSprite::createWithSpriteFrameName("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::create(Mod::get()->expandSpriteName("earth_btn.png"_spr));
auto earthSpr = CCSprite::createWithSpriteFrameName("earth_btn.png"_spr);
earthSpr->setScale(.425f);
earthSpr->setPosition({ 20, 14 });
addChild(earthSpr);
Expand Down

0 comments on commit 1f15f6a

Please sign in to comment.