diff options
author | xander <xander@isxander.dev> | 2022-09-11 21:52:12 +0100 |
---|---|---|
committer | xander <xander@isxander.dev> | 2022-09-11 21:52:12 +0100 |
commit | 5e0574b1cb6ef22bf70ce52a0c0e187450189c6c (patch) | |
tree | 58bceadeac982cb4e3853d1d81332c51e855f04e /src/main/java/dev/isxander/yacl/gui/SearchFieldWidget.java | |
parent | 20132e61aaa18849e46c7a3f4e28ec163585dc0c (diff) | |
download | YetAnotherConfigLib-5e0574b1cb6ef22bf70ce52a0c0e187450189c6c.tar.gz YetAnotherConfigLib-5e0574b1cb6ef22bf70ce52a0c0e187450189c6c.tar.bz2 YetAnotherConfigLib-5e0574b1cb6ef22bf70ce52a0c0e187450189c6c.zip |
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
Diffstat (limited to 'src/main/java/dev/isxander/yacl/gui/SearchFieldWidget.java')
-rw-r--r-- | src/main/java/dev/isxander/yacl/gui/SearchFieldWidget.java | 7 |
1 files changed, 7 insertions, 0 deletions
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; } |