forked from External/mage
* GUI: added card popup info in choose dialog (example: choose dungeon, #8012);
* GUI: added texts popup info in choose dialog (example: choose from any list);
This commit is contained in:
parent
b73f10a0ab
commit
d587cc9151
12 changed files with 322 additions and 36 deletions
|
|
@ -162,6 +162,14 @@ public final class GUISizeHelper {
|
|||
enlargedImageHeight = 25 * PreferencesDialog.getCachedValue(PreferencesDialog.KEY_GUI_ENLARGED_IMAGE_SIZE, 20);
|
||||
}
|
||||
|
||||
public static int getTooltipCardWidth() {
|
||||
return 20 * GUISizeHelper.cardTooltipFontSize - 50;
|
||||
}
|
||||
|
||||
public static int getTooltipCardHeight() {
|
||||
return 12 * GUISizeHelper.cardTooltipFontSize - 20;
|
||||
}
|
||||
|
||||
public static void changePopupMenuFont(JPopupMenu popupMenu) {
|
||||
for (Component comp : popupMenu.getComponents()) {
|
||||
if (comp instanceof JMenuItem) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue