diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-04-28 20:45:50 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-04-28 20:45:50 +0200 |
commit | 117d80ff0e343eecf260fd363db896166d8061d7 (patch) | |
tree | 8ef0ead687b69caf646874458beefa1d1710a38a /src/main/java/io/polyfrost/oneconfig/config/interfaces | |
parent | 7c5123ff64c751c19411982189321be3511a9815 (diff) | |
download | OneConfig-117d80ff0e343eecf260fd363db896166d8061d7.tar.gz OneConfig-117d80ff0e343eecf260fd363db896166d8061d7.tar.bz2 OneConfig-117d80ff0e343eecf260fd363db896166d8061d7.zip |
better mousepressed handling, some more option types and some other things I forgor
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/config/interfaces')
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java | 8 |
1 files changed, 7 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 06e3e4e..37114cf 100644 --- a/src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java +++ b/src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java @@ -6,9 +6,10 @@ 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.test.TestConfig; +import io.polyfrost.oneconfig.gui.elements.config.ConfigTextBox; import java.io.*; import java.lang.reflect.Field; @@ -93,6 +94,11 @@ public class Config { case SWITCH: options.add(new ConfigSwitch(field, option.name(), option.size())); break; + case CHECKBOX: + options.add(new ConfigCheckbox(field, option.name(), option.size())); + break; + case TEXT: + options.add(new ConfigTextBox(field, option.name(), option.size(), option.placeholder(), option.secure(), option.multiLine())); } } } |