From c6917856b9d1aeb6e5a84ac986a24bb77a95ee89 Mon Sep 17 00:00:00 2001 From: yugecin Date: Sun, 26 Feb 2017 00:34:03 +0100 Subject: [PATCH] make the bubble notif bg slightly transparant --- .../core/state/specialstates/BubbleNotificationState.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/yugecin/opsudance/core/state/specialstates/BubbleNotificationState.java b/src/yugecin/opsudance/core/state/specialstates/BubbleNotificationState.java index 9251142b..8cdfb083 100644 --- a/src/yugecin/opsudance/core/state/specialstates/BubbleNotificationState.java +++ b/src/yugecin/opsudance/core/state/specialstates/BubbleNotificationState.java @@ -222,13 +222,15 @@ public class BubbleNotificationState implements EventListener BubbleNotificationState.DISPLAY_TIME) { isFading = true; float progress = (float) (timeShown - BubbleNotificationState.DISPLAY_TIME) / BubbleNotificationState.OUT_TIME; - textColor.a = borderColor.a = bgcol.a = 1f - progress; + textColor.a = borderColor.a = 1f - progress; + bgcol.a = borderColor.a * 0.8f; } }