Skip to content

Commit

Permalink
Added monster, portal, fantasy gauntlets particles
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouca committed Jul 2, 2024
1 parent 0b1e403 commit 65dbeb3
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog
## <cj>v1.3.2</c> <cb>(---)</c>
* <cg>Added</c> Mac Support
* <cg>Added</c> <co>Fantasy</c>, <cg>Monster</c>, <cj>Portal</c> gauntlets particles

## <cj>v1.3.1</c> <cb>(2024-06-29)</c>
* <cg>Added</c> <cb>Discord</c> gauntlet design
* <cg>Added</c> Badges API dependency
Expand Down
87 changes: 84 additions & 3 deletions src/Styles/GauntletStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,70 @@ class $modify(CustomGauntletSelectLayer, GauntletSelectLayer) {
sprite->setScale(1.225f);
sprite->setZOrder(0);
node->addChild(sprite);

// Show gauntlets sprite again
gauntlet->setVisible(true);
gauntlet->setPosition({-2, 14});
gauntlet->setScale(0.925f);
gauntlet_node->setZOrder(2);

// Particle
CCParticleSystemQuad* particle = GameToolbox::particleFromString("26a-1a5a0.3a4a-90a14a9a0a17a0a0a0a0a0a0a0a2a1a76a325a0.537255a0a0.898039a0a0.164706a0a1a0a2a1a148a149a0.537255a0a0.898039a0a0.164706a0a1a0a0a0a0.3a0a0a0a0a0a0a0a0a2a0a0a0a0a146a0a0a0a0a0a0a0a0a0a0a0a0a0a0", NULL, false);
node->addChild(particle);
particle->setPosition({gauntlet->getPositionX(), 103});
particle->setZOrder(1);
particle->setScaleX(2.880f);
particle->setScaleY(4.603f);
} else if (gauntletName == "Portal") {
CCSprite* sprite = CCSprite::createWithSpriteFrameName("portal_gauntlet.png"_spr);
sprite->setPosition(bg->getPosition());
sprite->setScale(1.225f);
sprite->setZOrder(0);
node->addChild(sprite);

// Show gauntlets sprite again
gauntlet->setVisible(true);
gauntlet->setPosition({-2, 14});
gauntlet->setScale(0.925f);
gauntlet_node->setZOrder(2);

// Particle
CCParticleSystemQuad* particle = GameToolbox::particleFromString("13a-1a1a0.3a10a90a90a29a0a11a0a0a0a0a0a0a0a50a1a0a37a0.376471a0a0.109804a0a0.243137a0a1a0a32a1a142a96a0.376471a0a0.109804a0a0.243137a0a1a0a0.5a0a0.3a0a0a0a0a0a0a0a1a2a1a0a0a0a190a0a0a0a0a0a0a0a0a0a0a0a0a0a0", NULL, false);
node->addChild(particle);
particle->setPosition({gauntlet->getPositionX(), 14});
particle->setZOrder(1);
particle->setScaleX(2.880f);
particle->setScaleY(3.978f);
CCParticleSystemQuad* particle2 = GameToolbox::particleFromString("13a-1a1a0.3a10a90a90a29a0a11a0a0a0a0a0a0a0a50a1a0a37a0.0705882a0a0.172549a0a0.203922a0a1a0a32a1a142a96a0.0705882a0a0.172549a0a0.203922a0a1a0a0.5a0a0.3a0a0a0a0a0a0a0a1a2a1a0a0a0a190a0a0a0a0a0a0a0a0a0a0a0a0a0a0", NULL, false);
node->addChild(particle2);
particle2->setPosition({gauntlet->getPositionX(), 14});
particle2->setZOrder(1);
particle2->setScaleX(2.880f);
particle2->setScaleY(3.978f);
CCParticleSystemQuad* particle3 = GameToolbox::particleFromString("38a-1a2a0.3a16a90a180a29a0a11a0a0a0a0a0a0a0a6a1a0a0a0.760784a0a0.380392a0a0.835294a0a1a0a3a1a0a0a0.760784a0a0.380392a0a0.835294a0a1a0a0.18a0a0.49a0a43a0a33a0a-34a0a1a2a1a0a0a0a28a0a0a0a0a0a0a0a0a0a0a0a0a0a0", NULL, false);
node->addChild(particle3);
particle3->setPosition({gauntlet->getPositionX(), 14});
particle3->setZOrder(1);
particle3->setScaleX(1.030f);
particle3->setScaleY(1.030f);
CCParticleSystemQuad* particle4 = GameToolbox::particleFromString("38a-1a2a0.3a16a90a180a29a0a11a0a0a0a0a0a0a0a6a1a0a0a0.376471a0a0.690196a0a0.831373a0a1a0a3a1a0a0a0.376471a0a0.690196a0a0.831373a0a1a0a0.18a0a0.49a0a43a0a33a0a-34a0a1a2a1a0a0a0a28a0a0a0a0a0a0a0a0a0a0a0a0a0a0", NULL, false);
node->addChild(particle4);
particle4->setPosition({gauntlet->getPositionX(), 14});
particle4->setZOrder(1);
particle4->setScaleX(1.155f);
particle4->setScaleY(1.355f);
CCParticleSystemQuad* particle5 = GameToolbox::particleFromString("30a-1a1a0.3a30a90a180a29a0a11a0a0a0a0a0a0a0a4a1a0a0a0.760784a0a0.380392a0a0.835294a0a1a0a2a1a0a0a0.760784a0a0.380392a0a0.835294a0a1a0a0.18a0a0.49a0a43a0a33a0a-41a0a1a2a1a0a0a0a28a0a0a0a0a0a0a0a0a0a0a0a0a0a0", NULL, false);
node->addChild(particle5);
particle5->setPosition({gauntlet->getPositionX(), 14});
particle5->setZOrder(1);
particle5->setScaleX(1.455f);
particle5->setScaleY(1.655f);
CCParticleSystemQuad* particle6 = GameToolbox::particleFromString("30a-1a1a0.3a30a90a180a29a0a11a0a0a0a0a0a0a0a4a1a0a0a0.376471a0a0.690196a0a0.831373a0a1a0a2a1a0a0a0.376471a0a0.690196a0a0.831373a0a1a0a0.18a0a0.49a0a43a0a33a0a-41a0a1a2a1a0a0a0a28a0a0a0a0a0a0a0a0a0a0a0a0a0a0", NULL, false);
node->addChild(particle6);
particle6->setPosition({gauntlet->getPositionX(), 14});
particle6->setZOrder(1);
particle6->setScaleX(1.355f);
particle6->setScaleY(1.855f);
} else if (gauntletName == "Demon") {
CCSprite* sprite = CCSprite::createWithSpriteFrameName("demon_gauntlet.png"_spr);
sprite->setPosition(bg->getPosition());
Expand All @@ -149,9 +207,6 @@ class $modify(CustomGauntletSelectLayer, GauntletSelectLayer) {
gauntlet->setVisible(true);
gauntlet->setPosition({-1, 22});
gauntlet->setScale(1.1f);
gauntlet_shadow->setVisible(true);
gauntlet_shadow->setPosition({-1, 22});
gauntlet_shadow->setScale(1.1f);
gauntlet_node->setZOrder(2);

// Particle
Expand Down Expand Up @@ -217,6 +272,32 @@ class $modify(CustomGauntletSelectLayer, GauntletSelectLayer) {
sprite->setScale(1.270f);
sprite->setZOrder(0);
node->addChild(sprite);

// Show gauntlets sprite again
gauntlet->setVisible(true);
gauntlet->setPosition({0, 22});
gauntlet->setScale(1.075f);
gauntlet_node->setZOrder(2);

// Particle
CCParticleSystemQuad* particle = GameToolbox::particleFromString("30a-1a3a0.3a9a90a9a11a0a17a40a0a0a0a0a0a0a4a1a0a0a0.0509804a0a0.929412a0a0a0a1a0a2a1a0a0a0.360784a0a0.486275a0a0.352941a0a1a0a0.1a0a0.5a0a0a0a0a0a0a0a0a2a1a0a0a0a165a0a0a0a0a0a0a0a0a0a0a0a0a0a0", NULL, false);
node->addChild(particle);
particle->setPosition({gauntlet->getPositionX(), -37});
particle->setZOrder(1);
particle->setScaleX(2.510f);
particle->setScaleY(1.985f);
CCParticleSystemQuad* particle2 = GameToolbox::particleFromString("66a-1a3a0.3a20a90a27a11a0a37a38a0a0a0a0a0a0a5a1a0a0a0.0156863a0a0.866667a0a0.027451a0a1a0a3a1a0a0a0.164706a0a0.509804a0a0a0a1a0a0.5a0a1a0a0a0a0a0a0a0a0a2a1a0a0a0a28a0a0a0a0a0a0a0a0a0a0a0a0a0a0", NULL, false);
node->addChild(particle2);
particle2->setPosition({gauntlet->getPositionX(), -38});
particle2->setZOrder(1);
particle2->setScaleX(1.072f);
particle2->setScaleY(2.475f);
CCParticleSystemQuad* particle3 = GameToolbox::particleFromString("18a-1a3a0.3a5a90a9a11a0a32a28a0a0a0a0a0a0a50a1a0a0a0.0352941a0a0.0901961a0a0.0313726a0a1a0a50a1a0a0a0.0352941a0a0.0901961a0a0.0313726a0a1a0a1a0a1a0a0a0a0a0a0a0a0a2a1a0a0a0a46a0a0a0a0a0a0a0a0a0a0a0a0a0a0", NULL, false);
node->addChild(particle3);
particle3->setPosition({gauntlet->getPositionX(), -48});
particle3->setZOrder(1);
particle3->setScaleX(1.470f);
particle3->setScaleY(1.957f);
} else if (gauntletName == "Mystery") {
CCSprite* sprite = CCSprite::createWithSpriteFrameName("mystery_gauntlet.png"_spr);
sprite->setPosition(bg->getPosition());
Expand Down

0 comments on commit 65dbeb3

Please sign in to comment.