aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/config/interfaces
diff options
context:
space:
mode:
authornextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-05-01 12:36:32 +0100
committernextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-05-01 12:36:32 +0100
commit60f1c29872465a25be4f2c4ca8c5eb1abf69f988 (patch)
tree6ae8f5a36d80106852478f670df9b45ae137dd20 /src/main/java/io/polyfrost/oneconfig/config/interfaces
parent5514e4b97ab2a7a37bf25cf4a4a57baf8f94e052 (diff)
downloadOneConfig-60f1c29872465a25be4f2c4ca8c5eb1abf69f988.tar.gz
OneConfig-60f1c29872465a25be4f2c4ca8c5eb1abf69f988.tar.bz2
OneConfig-60f1c29872465a25be4f2c4ca8c5eb1abf69f988.zip
config elements
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/config/interfaces')
-rw-r--r--src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java4
1 files changed, 3 insertions, 1 deletions
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 af3d037..35b299b 100644
--- a/src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java
+++ b/src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java
@@ -110,11 +110,13 @@ public class Config {
options.add(new ConfigTextBox(field, option.name(), option.size(), option.placeholder(), option.secure(), option.multiLine()));
break;
case DUAL_OPTION:
- options.add(new ConfigDualOption(field, option.name(), option.size(), option.optionLeft(), option.optionRight()));
+ options.add(new ConfigDualOption(field, option.name(), option.size(), option.options()));
break;
case UNI_SELECTOR:
options.add(new ConfigUniSelector(field, option.name(), option.size(), option.options()));
break;
+ case SLIDER:
+ options.add(new ConfigSlider(field, option.name(), option.size(), option.min(), option.max(), option.step()));
}
}
}