aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/internal/utils/Notification.java
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-09-04 13:29:43 +0200
committerGitHub <noreply@github.com>2022-09-04 07:29:43 -0400
commit17cfe96255f1ec3ab5609aa153d4abed2075c435 (patch)
tree5fd414d196140a97492ef25ef4d0ea925e107ac3 /src/main/java/cc/polyfrost/oneconfig/internal/utils/Notification.java
parent4c60b452efda24794c0faa5f300fdd830edcd383 (diff)
downloadOneConfig-17cfe96255f1ec3ab5609aa153d4abed2075c435.tar.gz
OneConfig-17cfe96255f1ec3ab5609aa153d4abed2075c435.tar.bz2
OneConfig-17cfe96255f1ec3ab5609aa153d4abed2075c435.zip
Disable the flashbang feature (#124)
Bang! I get up, I get down and I'm jumping around And the rumpus and ruckus are comfortable now Been a hell of a ride but I'm thinking it's time to grow Bang! Bang! Bang! So I got an apartment across from the park Put quinoa in my fridge, still I'm not feeling grown Been a hell of a ride but I'm thinking it's time to go Bang! Bang! Bang! (Here we go) So put your best face on everybody Pretend you know this song Everybody come hang (come hang) Let's go out with a bang Bang! Bang! Bang! I'm way too young to lie here forever I'm way too old to try so whatever come hang (come hang) Let's go out with a bang Bang! Bang! Bang! Feel like I'm gonna puke 'cause my taxes are due Do my password begin with a one or a two? Been a hell of a ride but I'm thinking it's time to grow Bang! Bang! Bang! (Metronome) Man, I'm up to something (up to something) Ooh de la de do, thank you all for coming (all for coming) I hope you like the show 'Cause it's on a budget (on a budget) So ooh de la de do Yeah, come on, here we go Yeah, come on (Here we go) So put your best face on everybody Pretend you know this song Everybody come hang (come hang) Let's go out with a bang Bang! Bang! Bang! I'm way too young to lie here forever I'm way too old to try so whatever come hang (come hang) Let's go out with a bang Bang! Bang! Bang! (Bang! Bang! Bang! Bang!) Bang! Bang! Bang! (Bang! Bang! Bang! Bang! Bang! Bang!) Been a hell of a ride but I'm thinking it's time to go So put your best face on everybody Pretend you know this song Everybody come hang Let's go out with a bang Bang! Bang! Bang! (Here we go) So put your best face on everybody Pretend you know this song Everybody come hang (come hang) Let's go out with a bang Bang! Bang! Bang! (Bang! Bang! Bang! Bang! Bang! Bang!) I'm way too young to lie here forever I'm way too old to try so whatever come hang (come hang) Let's go out with a bang Bang! Bang! Bang! (Here we go) Bang! Bang!
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/internal/utils/Notification.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/internal/utils/Notification.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/internal/utils/Notification.java b/src/main/java/cc/polyfrost/oneconfig/internal/utils/Notification.java
index e2c0b05..5d18580 100644
--- a/src/main/java/cc/polyfrost/oneconfig/internal/utils/Notification.java
+++ b/src/main/java/cc/polyfrost/oneconfig/internal/utils/Notification.java
@@ -69,10 +69,10 @@ public final class Notification {
this.action = action;
}
- public float draw(final long vg, float y, float scale) {
+ public float draw(final long vg, float y, float scale, float deltaTime) {
RenderManager.scale(vg, scale, scale);
inputHandler.scale(scale, scale);
- float x = (UResolution.getWindowWidth() / scale - animation.get(hovered ? 0 : GuiUtils.getDeltaTime()));
+ float x = (UResolution.getWindowWidth() / scale - animation.get(hovered ? 0 : deltaTime));
float textX = icon == null ? x + 16 : x + 64;
float textMaxLength = icon == null ? 268 : 220;
float messageHeight = RenderManager.getWrappedStringHeight(vg, message, textMaxLength, 12f, 1.75f, Fonts.REGULAR);