From 0a027fb8b89860e592021e20f9b92a5943ff2284 Mon Sep 17 00:00:00 2001 From: yugecin Date: Sun, 22 Jan 2017 12:21:54 +0100 Subject: [PATCH] improve bar notif text position --- .../core/state/specialstates/BarNotificationState.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yugecin/opsudance/core/state/specialstates/BarNotificationState.java b/src/yugecin/opsudance/core/state/specialstates/BarNotificationState.java index db753197..51b419de 100644 --- a/src/yugecin/opsudance/core/state/specialstates/BarNotificationState.java +++ b/src/yugecin/opsudance/core/state/specialstates/BarNotificationState.java @@ -103,8 +103,8 @@ public class BarNotificationState implements EventListener private void calculatePosition() { this.lines = Fonts.wrap(Fonts.LARGE, message, (int) (displayContainer.width * 0.96f), true); int textHeight = (int) (Fonts.LARGE.getLineHeight() * (lines.size() + 0.5f)); - textY = (displayContainer.height - textHeight) / 2 + Fonts.LARGE.getLineHeight() / 8; - barHalfTargetHeight = textHeight / 2 + Fonts.LARGE.getLineHeight() / 8; + textY = (displayContainer.height - textHeight) / 2 + (int) (Fonts.LARGE.getLineHeight() / 5f); + barHalfTargetHeight = textHeight / 2; } @Override