mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +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()) {
|
if (rule.isEmpty()) {
|
||||||
rule = ability.toString();
|
rule = ability.toString();
|
||||||
}
|
}
|
||||||
|
if (!rule.isEmpty()) {
|
||||||
rule = Character.toUpperCase(rule.charAt(0)) + rule.substring(1);
|
rule = Character.toUpperCase(rule.charAt(0)) + rule.substring(1);
|
||||||
|
}
|
||||||
return rule;
|
return rule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2096,6 +2096,9 @@ public class HumanPlayer extends PlayerImpl {
|
||||||
modeText = "(selected " + timesSelected + "x) " + modeText;
|
modeText = "(selected " + timesSelected + "x) " + modeText;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!modeText.isEmpty()) {
|
||||||
|
modeText = Character.toUpperCase(modeText.charAt(0)) + modeText.substring(1);
|
||||||
|
}
|
||||||
modeMap.put(mode.getId(), modeIndex + ". " + modeText);
|
modeMap.put(mode.getId(), modeIndex + ". " + modeText);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue