mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
* UI: fixed wrong ability text capitalization in mode choose dialog;
This commit is contained in:
parent
944ef84036
commit
6b5108770c
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue