diff options
Diffstat (limited to 'src/main/java/dev/isxander/yacl/gui/controllers')
-rw-r--r-- | src/main/java/dev/isxander/yacl/gui/controllers/ActionController.java | 5 | ||||
-rw-r--r-- | src/main/java/dev/isxander/yacl/gui/controllers/ControllerWidget.java | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/dev/isxander/yacl/gui/controllers/ActionController.java b/src/main/java/dev/isxander/yacl/gui/controllers/ActionController.java index 673b614..ee3f988 100644 --- a/src/main/java/dev/isxander/yacl/gui/controllers/ActionController.java +++ b/src/main/java/dev/isxander/yacl/gui/controllers/ActionController.java @@ -105,5 +105,10 @@ public class ActionController implements Controller<BiConsumer<YACLScreen, Butto protected int getHoveredControlWidth() { return getUnhoveredControlWidth(); } + + @Override + public boolean matchesSearch(String query) { + return super.matchesSearch(query) || getValueText().getString().toLowerCase().contains(query); + } } } 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<T extends Controller<?>> 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() { |