Skip to content

Commit

Permalink
Added NCS gauntlets
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouca committed Jun 8, 2024
1 parent c4f15a2 commit d23e702
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"geode": "3.0.0-alpha.1",
"version": "v1.3.0-alpha.4",
"version": "v1.3.0-alpha.5",
"gd": {
"win": "2.206",
"android": "2.206",
Expand Down Expand Up @@ -61,7 +61,9 @@
"resources/castle_gauntlet.png",
"resources/galaxy_gauntlet.png",
"resources/universe_gauntlet.png",
"resources/cursed_gauntlet.png"
"resources/cursed_gauntlet.png",
"resources/ncs_gauntlet_1.png",
"resources/ncs_gauntlet_2.png"
]
},
"settings": {
Expand Down
Binary file added resources/ncs_gauntlet_1.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/ncs_gauntlet_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/Styles/GauntletStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,18 @@ class $modify(GauntletSelectLayer) {
sprite->setScale(1.270f);
sprite->setZOrder(0);
node->addChild(sprite);
} else if (gauntletName == "NCS I") {
CCSprite* sprite = CCSprite::create(Mod::get()->expandSpriteName("ncs_gauntlet_1.png"));
sprite->setPosition(bg->getPosition());
sprite->setScale(1.270f);
sprite->setZOrder(0);
node->addChild(sprite);
} else if (gauntletName == "NCS II") {
CCSprite* sprite = CCSprite::create(Mod::get()->expandSpriteName("ncs_gauntlet_2.png"));
sprite->setPosition(bg->getPosition());
sprite->setScale(1.270f);
sprite->setZOrder(0);
node->addChild(sprite);
} else {
bg->setVisible(true);
label->setVisible(true);
Expand Down

0 comments on commit d23e702

Please sign in to comment.