diff options
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/config')
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/config/data/OptionType.java | 3 | ||||
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/config/data/OptionType.java b/src/main/java/io/polyfrost/oneconfig/config/data/OptionType.java index 8376786..9145790 100644 --- a/src/main/java/io/polyfrost/oneconfig/config/data/OptionType.java +++ b/src/main/java/io/polyfrost/oneconfig/config/data/OptionType.java @@ -24,6 +24,9 @@ public enum OptionType { TEXT, SLIDER, COLOR, + /** + * Type: int + */ DROPDOWN, MULTI_DROPDOWN, INFO diff --git a/src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java b/src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java index 211c2ce..8ed51f8 100644 --- a/src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java +++ b/src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java @@ -120,6 +120,9 @@ public class Config { case UNI_SELECTOR: options.add(new ConfigUniSelector(field, option.name(), option.size(), option.options())); break; + case DROPDOWN: + options.add(new ConfigDropdown(field, option.name(), option.size(), option.options())); + break; } } } |