mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Constructed as default mode (#6358)
Co-authored-by: Agetian <stavdev@mail.ru>
This commit is contained in:
@@ -123,9 +123,21 @@ public class NewGameScene extends MenuScene {
|
||||
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"});
|
||||
|
||||
Reference in New Issue
Block a user