Skip to content

Commit

Permalink
Added cursed gauntlet particles
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouca committed Jul 2, 2024
1 parent 8b6c037 commit 08c969c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Changelog
## <cj>v1.3.2</c> <cb>(---)</c>
* <cg>Added</c> Mac Support
* <cg>Added</c> <cg>Monster</c>, Doom, <cj>Portal</c>, <cp>Strange</c>, <co>Fantasy</c>, <cy>Mystery</c>, and <cp>Split</c> gauntlets particles
* <cg>Added</c> <cg>Monster</c>, Doom, <cj>Portal</c>, <cp>Strange</c>, <co>Fantasy</c>, <cy>Mystery</c>, <cg>Cursed</c> and <cp>Split</c> gauntlets particles

## <cj>v1.3.1</c> <cb>(2024-06-29)</c>
* <cg>Added</c> <cb>Discord</c> gauntlet design
Expand Down
27 changes: 27 additions & 0 deletions src/Styles/GauntletStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,33 @@ class $modify(CustomGauntletSelectLayer, GauntletSelectLayer) {
sprite->setScale(1.270f);
sprite->setZOrder(0);
node->addChild(sprite);

// Show gauntlets sprite again
gauntlet->setVisible(true);
gauntlet->setPosition({1, 16});
gauntlet->setScale(1);
gauntlet_node->setZOrder(3);

// Particle
CCParticleSystemQuad* particle = GameToolbox::particleFromString("5a-1a1a0.3a3a90a90a29a0a11a0a0a0a0a0a0a0a50a1a24a45a0.105882a0a0.380392a0a0.105882a0a1a0a44a1a48a28a0.105882a0a0.380392a0a0.105882a0a1a0a0a0a0a0a0a0a0a0a0a0a1a2a1a0a0a0a175a0a0a0a0a0a0a0a0a0a0a0a0a0a0", NULL, false);
node->addChild(particle);
particle->setPosition(gauntlet->getPosition());
particle->setZOrder(1);
particle->setScaleX(2.035f);
particle->setScaleY(2.035f);
CCParticleSystemQuad* particle2 = GameToolbox::particleFromString("5a-1a1a0.3a3a90a90a29a0a11a0a0a0a0a0a0a0a50a1a24a45a0.105882a0a0.380392a0a0.105882a0a1a0a44a1a48a28a0.105882a0a0.380392a0a0.105882a0a1a0a0a0a0a0a0a0a0a0a0a0a1a2a1a0a0a0a175a0a0a0a0a0a0a0a0a0a0a0a0a0a0", NULL, false);
node->addChild(particle2);
particle2->setPosition(gauntlet->getPosition());
particle2->setZOrder(1);
particle2->setScaleX(2.035f);
particle2->setScaleY(2.035f);
CCParticleSystemQuad* particle3 = GameToolbox::particleFromString("93a-1a1a0.3a71a90a0a52a0a10a0a23a0a0a0a0a0a2a1a0a0a0.00392157a0a0.905882a0a0a0a1a0a2a1a30a0a0.00392157a0a0.905882a0a0a0a1a0a0.3a0a0.5a0a0a0a0a0a0a0a0a2a1a0a0a0a32a0a0a0a0a0a0a0a0a0a0a0a0a0a0", NULL, false);
node->addChild(particle3);
particle3->setPosition({17, 94});
particle3->setZOrder(1);
particle3->setScaleX(4.510f);
particle3->setScaleY(3.335f);
particle3->setRotation(180);
} else if (gauntletName == "Doom") {
CCSprite* sprite = CCSprite::createWithSpriteFrameName("doom_gauntlet.png"_spr);
sprite->setPosition(bg->getPosition());
Expand Down

0 comments on commit 08c969c

Please sign in to comment.