Skip to content

Commit f6a709d

Browse files
committed
fix controller misalignment in gauntletselectlayer
1 parent f63332f commit f6a709d

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/GauntletSelectLayer.cpp

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,33 @@ using namespace geode::node_ids;
1212
this->getChildByType<CCSprite>(0)->setID("background");
1313
this->getChildByType<CCSprite>(1)->setID("title-sprite");
1414

15+
size_t idx = 0;
1516
setIDs(
1617
this,
17-
0,
18+
idx,
1819
"background",
1920
"title",
2021
"bottom-left-corner",
2122
"bottom-right-corner",
2223
"top-left-corner",
2324
"top-right-corner",
2425
"scroll-buttons-menu",
25-
"back-menu",
26+
"back-menu"
27+
);
28+
idx += 8;
29+
30+
if (PlatformToolbox::isControllerConnected()) {
31+
// ID assigned in GameToolbox::addBackButton
32+
idx += 1;
33+
}
34+
35+
setIDs(
36+
this,
37+
idx,
2638
"loading-circle",
2739
"try-again-text"
2840
);
41+
idx += 2;
2942

3043
if (auto arrowsMenu = this->getChildByID("scroll-buttons-menu")) {
3144
setIDs(

0 commit comments

Comments
 (0)