From 38aebfc23ec50798c44d2e0790924e62f4c46f98 Mon Sep 17 00:00:00 2001 From: isXander Date: Mon, 19 Sep 2022 19:44:42 +0100 Subject: make tooltips max width just a little smaller & allow search query to match ActionController value text --- src/main/java/dev/isxander/yacl/gui/controllers/ControllerWidget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/dev/isxander/yacl/gui/controllers/ControllerWidget.java') diff --git a/src/main/java/dev/isxander/yacl/gui/controllers/ControllerWidget.java b/src/main/java/dev/isxander/yacl/gui/controllers/ControllerWidget.java index dded9c1..8385dfb 100644 --- a/src/main/java/dev/isxander/yacl/gui/controllers/ControllerWidget.java +++ b/src/main/java/dev/isxander/yacl/gui/controllers/ControllerWidget.java @@ -81,7 +81,7 @@ public abstract class ControllerWidget> extends Abstract } private void updateTooltip() { - this.wrappedTooltip = MultilineText.create(textRenderer, control.option().tooltip(), screen.width / 3 * 2); + this.wrappedTooltip = MultilineText.create(textRenderer, control.option().tooltip(), screen.width / 3 * 2 - 10); } protected int getControlWidth() { -- cgit