Some more changes to GUI to better support high screen resolutions.

This commit is contained in:
LevelX2 2016-02-16 23:15:34 +01:00
parent f54c675c4b
commit 5ca4e3bc7a
9 changed files with 198 additions and 175 deletions

View file

@ -195,7 +195,7 @@ public class GuiDisplayUtil {
manaCost += m;
}
String castingCost = UI.getDisplayManaCost(manaCost);
castingCost = ManaSymbols.replaceSymbolsWithHTML(castingCost, ManaSymbols.Type.CARD);
castingCost = ManaSymbols.replaceSymbolsWithHTML(castingCost, ManaSymbols.Type.TOOLTIP);
int symbolCount = 0;
int offset = 0;
@ -344,7 +344,7 @@ public class GuiDisplayUtil {
// legal = legal.replace("\r\n", "<div style='font-size:5pt'></div>");
legal = legal.replaceAll("\\{this\\}", card.getName().isEmpty() ? "this" : card.getName());
legal = legal.replaceAll("\\{source\\}", card.getName().isEmpty() ? "this" : card.getName());
buffer.append(ManaSymbols.replaceSymbolsWithHTML(legal, ManaSymbols.Type.CARD));
buffer.append(ManaSymbols.replaceSymbolsWithHTML(legal, ManaSymbols.Type.TOOLTIP));
}
buffer.append("<br></body></html>");