From eea8a7b60344637df1318b04e11ccf1cdc7c4c12 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Sun, 1 May 2022 13:40:30 +0200 Subject: start on dropdown --- src/main/java/io/polyfrost/oneconfig/config/data/OptionType.java | 3 +++ src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/main/java/io/polyfrost/oneconfig/config') 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; } } } -- cgit