Tweak load screen padding

This commit is contained in:
drdev
2014-05-26 23:29:04 +00:00
parent a9c43c1ede
commit 58daa4c628

View File

@@ -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);
} }
} }