Skip to content

Commit

Permalink
Constructed as default mode (#6358)
Browse files Browse the repository at this point in the history
Co-authored-by: Agetian <[email protected]>
  • Loading branch information
nwg5817 and Agetian authored Oct 17, 2024
1 parent e862f4d commit 2571aff
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion forge-gui-mobile/src/forge/adventure/scene/NewGameScene.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,21 @@ private NewGameScene() {
AdventureModes.Custom.setModes(custom);
}
String[] modeNames = new String[modes.size];
for (int i = 0; i < modes.size; i++)
int constructedIndex = -1;

for (int i = 0; i < modes.size; i++) {
modeNames[i] = modes.get(i).getName();
if (modes.get(i) == AdventureModes.Constructed) {
constructedIndex = i;
}
}

mode.setTextList(modeNames);
mode.setCurrentIndex(constructedIndex != -1 ? constructedIndex : 0);

AdventureModes initialMode = modes.get(mode.getCurrentIndex());
starterEdition.setVisible(initialMode == AdventureModes.Standard);
starterEditionLabel.setVisible(initialMode == AdventureModes.Standard);

gender.setTextList(new String[]{Forge.getLocalizer().getMessage("lblMale") + "[%120][CYAN] \u2642",
Forge.getLocalizer().getMessage("lblFemale") + "[%120][MAGENTA] \u2640"});
Expand Down

0 comments on commit 2571aff

Please sign in to comment.