From 3b502355eb3c792a2b9d8395877068c679892ea8 Mon Sep 17 00:00:00 2001 From: Wyvest Date: Sat, 1 Jul 2023 23:50:41 +0900 Subject: Add descriptions to chatting configuration and adjust message animation speed calculation --- .../cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/cc/woverflow') diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java b/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java index e71b550..fa88145 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java +++ b/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java @@ -92,7 +92,7 @@ public abstract class GuiNewChatMixin_SmoothMessages { ChatTabs.INSTANCE.setHasCancelledAnimation(false); return; } - chatting$easeOutQuart = new EaseOutQuart(ChattingConfig.INSTANCE.getMessageSpeed() * 1000f, 0f, 1f, false); + chatting$easeOutQuart = new EaseOutQuart((1.0f - ChattingConfig.INSTANCE.getMessageSpeed()) * 1000f, 0f, 1f, false); } @ModifyVariable(method = "setChatLine", at = @At("STORE"), ordinal = 0) -- cgit