Skip to content

Commit

Permalink
Added galaxy gauntlet
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouca committed May 31, 2024
1 parent fc7a9ea commit c8a66cc
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"resources/Screenshot_1.png",
"resources/tab-gradient.png",
"resources/tab-gradient-mask.png",
"resources/earth_btn.png",
"resources/difficulty_01_mythicIcon.png",
"resources/difficulty_02_mythicIcon.png",
"resources/difficulty_03_mythicIcon.png",
Expand All @@ -48,7 +49,8 @@
"resources/fantasy_gauntlet.png",
"resources/portal_gauntlet.png",
"resources/demon_gauntlet.png",
"resources/castle_gauntlet.png"
"resources/castle_gauntlet.png",
"resources/galaxy_gauntlet.png"
]
},
"settings": {
Expand Down
Binary file added resources/earth_btn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/galaxy_gauntlet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/MoreLeaderboards/MoreLeaderboards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,19 @@ bool MoreLeaderboards::init(std::string type) {
background->setZOrder(-1);
this->addChild(background);

// Change region
/*auto menu = CCMenu::create();
auto regionSpr = CCSprite::createWithSpriteFrameName("GJ_plusBtn_001.png");
regionSpr->setScale(.8f);
auto regionBtn = CCMenuItemSpriteExtra::create(
regionSpr,
this,
menu_selector(MoreLeaderboards::onMoreLeaderboards)
);
regionBtn->setPosition(239, 20);
menu->addChild(regionBtn);*/

// Corners
CCSprite* corner_left = CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png");
CCSprite* corner_right = CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png");
Expand Down
6 changes: 6 additions & 0 deletions src/Styles/GauntletStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ class $modify(GauntletSelectLayer) {
sprite->setScale(1.275f);
sprite->setZOrder(0);
node->addChild(sprite);
} else if (gauntletName == "Galaxy") {
CCSprite* sprite = CCSprite::create(Mod::get()->expandSpriteName("galaxy_gauntlet.png"));
sprite->setPosition(bg->getPosition());
sprite->setScale(1.695f);
sprite->setZOrder(0);
node->addChild(sprite);
} else {
bg->setVisible(true);
label->setVisible(true);
Expand Down

0 comments on commit c8a66cc

Please sign in to comment.