Skip to content

Commit

Permalink
Fixed gauntlets position
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouca committed Dec 9, 2024
1 parent 8340f75 commit 9ca89d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Styles/GauntletStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ class $modify(CustomGauntletSelectLayer, GauntletSelectLayer) {
CCNode* item = static_cast<CCNode*>(page->objectAtIndex(j));

// Handle spaces
if (j == 0) {
if (j == 0 && page->count() > 1) {
item->setPositionX(item->getPositionX() - 25.0f);
} else if (j == 1 && page->count() == 2) {
item->setPositionX(item->getPositionX() + 25.0f);
} else if (j == 2) {
item->setPositionX(item->getPositionX() + 25.0f);
}
Expand Down

0 comments on commit 9ca89d1

Please sign in to comment.