mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
CMatchUI.getAbilityToPlay trim multi-line ability descs for menu
This commit is contained in:
@@ -927,7 +927,11 @@ public final class CMatchUI
|
|||||||
if (enabled && firstEnabled < 0) {
|
if (enabled && firstEnabled < 0) {
|
||||||
firstEnabled = index;
|
firstEnabled = index;
|
||||||
}
|
}
|
||||||
GuiUtils.addMenuItem(menu, FSkin.encodeSymbols(ab.toString(), true),
|
String s = ab.toString();
|
||||||
|
if (s.contains("\n")) {
|
||||||
|
s = s.substring(0, s.indexOf("\n"));
|
||||||
|
}
|
||||||
|
GuiUtils.addMenuItem(menu, FSkin.encodeSymbols(s, true),
|
||||||
shortcut > 0 ? KeyStroke.getKeyStroke(shortcut, 0) : null,
|
shortcut > 0 ? KeyStroke.getKeyStroke(shortcut, 0) : null,
|
||||||
new Runnable() {
|
new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user