* UI: fixed wrong ability text capitalization in mode choose dialog;

This commit is contained in:
Oleg Agafonov 2020-05-19 00:27:42 +04:00
parent 944ef84036
commit 6b5108770c
2 changed files with 6 additions and 1 deletions

View file

@ -49,7 +49,9 @@ public class AbilityPickerView implements Serializable {
if (rule.isEmpty()) {
rule = ability.toString();
}
if (!rule.isEmpty()) {
rule = Character.toUpperCase(rule.charAt(0)) + rule.substring(1);
}
return rule;
}

View file

@ -2096,6 +2096,9 @@ public class HumanPlayer extends PlayerImpl {
modeText = "(selected " + timesSelected + "x) " + modeText;
}
}
if (!modeText.isEmpty()) {
modeText = Character.toUpperCase(modeText.charAt(0)) + modeText.substring(1);
}
modeMap.put(mode.getId(), modeIndex + ". " + modeText);
}
}