Skip to content

Commit 9ca89d1

Browse files
committed
Fixed gauntlets position
1 parent 8340f75 commit 9ca89d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Styles/GauntletStyle.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ class $modify(CustomGauntletSelectLayer, GauntletSelectLayer) {
9898
CCNode* item = static_cast<CCNode*>(page->objectAtIndex(j));
9999

100100
// Handle spaces
101-
if (j == 0) {
101+
if (j == 0 && page->count() > 1) {
102102
item->setPositionX(item->getPositionX() - 25.0f);
103+
} else if (j == 1 && page->count() == 2) {
104+
item->setPositionX(item->getPositionX() + 25.0f);
103105
} else if (j == 2) {
104106
item->setPositionX(item->getPositionX() + 25.0f);
105107
}

0 commit comments

Comments
 (0)