From 5e0574b1cb6ef22bf70ce52a0c0e187450189c6c Mon Sep 17 00:00:00 2001 From: xander Date: Sun, 11 Sep 2022 21:52:12 +0100 Subject: 1.1.0 better search - now searches every category rather than the current one option flags - flags are pieces of code ran when certain options' changes are applied (makes required restart redundant) fix scaling problems - make GUI a lot better at scaling bump gradle wrapper --- src/main/java/dev/isxander/yacl/gui/SearchFieldWidget.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java/dev/isxander/yacl/gui/SearchFieldWidget.java') diff --git a/src/main/java/dev/isxander/yacl/gui/SearchFieldWidget.java b/src/main/java/dev/isxander/yacl/gui/SearchFieldWidget.java index fedebdb..68f050f 100644 --- a/src/main/java/dev/isxander/yacl/gui/SearchFieldWidget.java +++ b/src/main/java/dev/isxander/yacl/gui/SearchFieldWidget.java @@ -37,6 +37,13 @@ public class SearchFieldWidget extends TextFieldWidget { super.write(text); } + @Override + public void eraseCharacters(int characterOffset) { + yaclScreen.optionList.setScrollAmount(0); + + super.eraseCharacters(characterOffset); + } + public Text getEmptyText() { return emptyText; } -- cgit