diff --git a/gradle.properties b/gradle.properties index 47e5697..4276631 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,6 +13,6 @@ halplibe_version=1.1.4 pedrolibrary_version=1.0.4 # Mod -mod_version=1.0.0 +mod_version=1.0.0.1 mod_group=net.pedroricardo mod_name=subtitles diff --git a/src/main/java/net/pedroricardo/subtitles/mixin/RenderSubtitleMixin.java b/src/main/java/net/pedroricardo/subtitles/mixin/RenderSubtitleMixin.java index b9444ce..4b509ff 100644 --- a/src/main/java/net/pedroricardo/subtitles/mixin/RenderSubtitleMixin.java +++ b/src/main/java/net/pedroricardo/subtitles/mixin/RenderSubtitleMixin.java @@ -74,7 +74,7 @@ public void renderGameOverlay(float partialTicks, boolean flag, int mouseX, int width - (longestStringWidth / 2) - (fontrenderer.getStringWidth(stringToDraw) / 2) - sp - arrowWidth / 2, height - 34 - (subtitleLines * lineHeight) - sp, Color.intToIntARGB( - (int) (Math.min(60.0f, 20.0f + Subtitles.soundsPlaying.get(string)) * 255.0f / 70.0f), 255, + (int) (Math.min(70.0f, 20.0f + Subtitles.soundsPlaying.get(string)) * 255.0f / 70.0f), 255, 255, 255)); if (angleDegrees <= 325 && 215 <= angleDegrees) { @@ -82,14 +82,14 @@ public void renderGameOverlay(float partialTicks, boolean flag, int mouseX, int width - 6 - sp, height - 34 - (subtitleLines * lineHeight) - sp, Color.intToIntARGB( - (int) (Math.min(60.0f, 10.0f + Subtitles.soundsPlaying.get(string)) * 255.0f / 70.0f), 255, + (int) (Math.min(70.0f, 10.0f + Subtitles.soundsPlaying.get(string)) * 255.0f / 70.0f), 255, 255, 255)); } else if (angleDegrees >= 35 && 145 >= angleDegrees) { fontrenderer.drawString("<", width - longestStringWidth - sp - arrowWidth, height - 34 - (subtitleLines * lineHeight) - sp, Color.intToIntARGB( - (int) (Math.min(60.0f, 20.0f + Subtitles.soundsPlaying.get(string)) * 255.0f / 70.0f), 255, + (int) (Math.min(70.0f, 20.0f + Subtitles.soundsPlaying.get(string)) * 255.0f / 70.0f), 255, 255, 255)); } } else {