From 23eed71a9cbeb8a7b80643e8291b51a7983c19ca Mon Sep 17 00:00:00 2001 From: yugecin Date: Tue, 4 Oct 2016 12:40:01 +0200 Subject: [PATCH] Put the text above the repo buttons so that the fps counter will not block it --- src/itdelatrisu/opsu/states/MainMenu.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/itdelatrisu/opsu/states/MainMenu.java b/src/itdelatrisu/opsu/states/MainMenu.java index da6f6837..5a4c969d 100644 --- a/src/itdelatrisu/opsu/states/MainMenu.java +++ b/src/itdelatrisu/opsu/states/MainMenu.java @@ -295,7 +295,7 @@ public class MainMenu extends BasicGameState { String text = "opsu!"; int fheight = Fonts.SMALL.getLineHeight(); int fwidth = Fonts.SMALL.getWidth(text); - Fonts.SMALL.drawString(repoButton.getX() - fwidth / 2, height * 0.997f - fheight, text, Color.white); + Fonts.SMALL.drawString(repoButton.getX() - fwidth / 2, repoButton.getY() - repoButton.getImage().getHeight() / 2 - fheight, text, Color.white); } if (danceRepoButton != null) { @@ -303,7 +303,7 @@ public class MainMenu extends BasicGameState { String text = "opsu!dance"; int fheight = Fonts.SMALL.getLineHeight(); int fwidth = Fonts.SMALL.getWidth(text); - Fonts.SMALL.drawString(danceRepoButton.getX() - fwidth / 2, height * 0.997f - fheight, text, Color.white); + Fonts.SMALL.drawString(danceRepoButton.getX() - fwidth / 2, repoButton.getY() - repoButton.getImage().getHeight() / 2 - fheight, text, Color.white); } // draw update button