mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Tweak load screen padding
This commit is contained in:
@@ -29,8 +29,8 @@ public class MatchLoader extends FOverlay {
|
|||||||
|
|
||||||
float padding = w * HomeScreen.INSETS_FACTOR;
|
float padding = w * HomeScreen.INSETS_FACTOR;
|
||||||
float logoSize = w * HomeScreen.LOGO_SIZE_FACTOR;
|
float logoSize = w * HomeScreen.LOGO_SIZE_FACTOR;
|
||||||
float fontHeight = FONT.getLineHeight();
|
float fontHeight = FONT.getCapHeight();
|
||||||
float panelHeight = logoSize + fontHeight + 2 * insets + 3 * padding;
|
float panelHeight = logoSize + fontHeight + 4 * padding;
|
||||||
|
|
||||||
float y = (getHeight() - panelHeight) / 2;
|
float y = (getHeight() - panelHeight) / 2;
|
||||||
g.fillRect(BACK_COLOR, x, y, w, panelHeight);
|
g.fillRect(BACK_COLOR, x, y, w, panelHeight);
|
||||||
@@ -38,6 +38,6 @@ public class MatchLoader extends FOverlay {
|
|||||||
y += padding;
|
y += padding;
|
||||||
g.drawImage(FSkinImage.LOGO, (getWidth() - logoSize) / 2f, y, logoSize, logoSize);
|
g.drawImage(FSkinImage.LOGO, (getWidth() - logoSize) / 2f, y, logoSize, logoSize);
|
||||||
y += logoSize + padding;
|
y += logoSize + padding;
|
||||||
g.drawText("Loading new game...", FONT, FORE_COLOR, x, y, w, fontHeight, false, HAlignment.CENTER, true);
|
g.drawText("Loading new game...", FONT, FORE_COLOR, x, y, w, getHeight(), false, HAlignment.CENTER, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user