diff options
author | Redth <redth1206@proton.me> | 2023-10-27 22:51:34 +0800 |
---|---|---|
committer | Redth <redth1206@proton.me> | 2023-10-27 22:51:34 +0800 |
commit | cd25a22ebade375a5be4000c04743ba738f9b71f (patch) | |
tree | adbe53e48c1e8ac681db5522d4cb1a4c1ed6aba9 /src/main/java/cc/woverflow/chatting/mixin/GuiChatMixin.java | |
parent | 08aa76c496a6be564bbe68c367134745c187fdfc (diff) | |
download | Chatting-cd25a22ebade375a5be4000c04743ba738f9b71f.tar.gz Chatting-cd25a22ebade375a5be4000c04743ba738f9b71f.tar.bz2 Chatting-cd25a22ebade375a5be4000c04743ba738f9b71f.zip |
input box color
Diffstat (limited to 'src/main/java/cc/woverflow/chatting/mixin/GuiChatMixin.java')
-rw-r--r-- | src/main/java/cc/woverflow/chatting/mixin/GuiChatMixin.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiChatMixin.java b/src/main/java/cc/woverflow/chatting/mixin/GuiChatMixin.java index cc015ab..a12aea1 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiChatMixin.java +++ b/src/main/java/cc/woverflow/chatting/mixin/GuiChatMixin.java @@ -92,7 +92,12 @@ public abstract class GuiChatMixin extends GuiScreen { @ModifyArg(method = "drawScreen", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiChat;drawRect(IIIII)V"), index = 2) private int modifyRight(int right) { - return ChattingConfig.INSTANCE.getCompactInputBox() ? (MathHelper.ceiling_float_int((float)mc.ingameGUI.getChatGUI().getChatWidth() / mc.ingameGUI.getChatGUI().getChatScale()) + 6) : right; + return ChattingConfig.INSTANCE.getCompactInputBox() ? (MathHelper.ceiling_float_int((float) mc.ingameGUI.getChatGUI().getChatWidth() / mc.ingameGUI.getChatGUI().getChatScale()) + 6) : right; + } + + @ModifyArg(method = "drawScreen", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiChat;drawRect(IIIII)V"), index = 4) + private int modifyInputBoxColor(int color) { + return ChattingConfig.INSTANCE.getInputBoxBackgroundColor().getRGB(); } @Inject(method = "mouseClicked", at = @At("HEAD")) |