diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-19 20:01:15 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-19 20:01:15 +0200 |
commit | 85a8ae69736f93a1a972b696fd9d2fba5d435884 (patch) | |
tree | a1bc7ce8cc9d8921d21594d0f48ba6fb4459634f /src | |
parent | d862ade47a7994d7752fc51ff34b33921bf6663a (diff) | |
download | OneConfig-85a8ae69736f93a1a972b696fd9d2fba5d435884.tar.gz OneConfig-85a8ae69736f93a1a972b696fd9d2fba5d435884.tar.bz2 OneConfig-85a8ae69736f93a1a972b696fd9d2fba5d435884.zip |
remove unused thing
Diffstat (limited to 'src')
3 files changed, 2 insertions, 9 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/annotations/Option.java b/src/main/java/cc/polyfrost/oneconfig/config/annotations/Option.java index efcadc8..f30f01e 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/annotations/Option.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/annotations/Option.java @@ -44,11 +44,6 @@ public @interface Option { String[] options() default {}; /** - * The places you want dividers to be in a dropdown - */ - int[] dividers() default {}; - - /** * The placeholder in the text field */ String placeholder() default ""; diff --git a/src/main/java/cc/polyfrost/oneconfig/config/interfaces/Config.java b/src/main/java/cc/polyfrost/oneconfig/config/interfaces/Config.java index a11b1d2..694404a 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/interfaces/Config.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/interfaces/Config.java @@ -135,7 +135,7 @@ public class Config { options.add(new ConfigUniSelector(field, instance, option.name(), option.size(), option.options())); break; case DROPDOWN: - options.add(new ConfigDropdown(field, instance, option.name(), option.size(), option.options(), option.dividers())); + options.add(new ConfigDropdown(field, instance, option.name(), option.size(), option.options())); break; case SLIDER: options.add(new ConfigSlider(field, instance, option.name(), option.size(), option.min(), option.max(), option.step())); diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigDropdown.java b/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigDropdown.java index cd0875e..c01228d 100644 --- a/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigDropdown.java +++ b/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigDropdown.java @@ -19,12 +19,10 @@ public class ConfigDropdown extends BasicOption { // TODO: remove dividers and f private final String[] options; private int backgroundColor = OneConfigConfig.GRAY_500; private boolean opened = false; - private int[] dividers; - public ConfigDropdown(Field field, Object parent, String name, int size, String[] options, int [] dividers) { + public ConfigDropdown(Field field, Object parent, String name, int size, String[] options) { super(field, parent, name, size); this.options = options; - this.dividers = dividers; } @Override |