aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/config/interfaces
diff options
context:
space:
mode:
authornextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-04-30 11:54:24 +0100
committernextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-04-30 11:54:24 +0100
commit026aebb4748747f08d5088947056a75740550b17 (patch)
tree23583932e47825a91250ff60807d8a201b9557c3 /src/main/java/io/polyfrost/oneconfig/config/interfaces
parent78fab84df48759e8968c477924b4bcc3b81e6cee (diff)
downloadOneConfig-026aebb4748747f08d5088947056a75740550b17.tar.gz
OneConfig-026aebb4748747f08d5088947056a75740550b17.tar.bz2
OneConfig-026aebb4748747f08d5088947056a75740550b17.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.java12
1 files changed, 8 insertions, 4 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 0cade35..ee72fee 100644
--- a/src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java
+++ b/src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java
@@ -6,10 +6,7 @@ import io.polyfrost.oneconfig.config.core.ConfigCore;
import io.polyfrost.oneconfig.config.data.Mod;
import io.polyfrost.oneconfig.config.data.OptionPage;
import io.polyfrost.oneconfig.config.profiles.Profiles;
-import io.polyfrost.oneconfig.gui.elements.config.ConfigCheckbox;
-import io.polyfrost.oneconfig.gui.elements.config.ConfigPage;
-import io.polyfrost.oneconfig.gui.elements.config.ConfigSwitch;
-import io.polyfrost.oneconfig.gui.elements.config.ConfigTextBox;
+import io.polyfrost.oneconfig.gui.elements.config.*;
import java.io.*;
import java.lang.reflect.Field;
@@ -99,6 +96,13 @@ public class Config {
break;
case TEXT:
options.add(new ConfigTextBox(field, option.name(), option.size(), option.secure(), option.multiLine()));
+ break;
+ case DUAL_OPTION:
+ options.add(new ConfigDualOption(field, option.name(), option.size(), option.optionLeft(), option.optionRight()));
+ break;
+ case UNI_SELECTOR:
+ options.add(new ConfigUniSelector(field, option.name(), option.size(), option.options()));
+ break;
}
}
}