aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/config')
-rw-r--r--src/main/java/io/polyfrost/oneconfig/config/OneConfigConfig.java1
-rw-r--r--src/main/java/io/polyfrost/oneconfig/config/core/ConfigCore.java8
-rw-r--r--src/main/java/io/polyfrost/oneconfig/config/data/ModType.java1
-rw-r--r--src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java2
4 files changed, 7 insertions, 5 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/config/OneConfigConfig.java b/src/main/java/io/polyfrost/oneconfig/config/OneConfigConfig.java
index f10111c..955f7a4 100644
--- a/src/main/java/io/polyfrost/oneconfig/config/OneConfigConfig.java
+++ b/src/main/java/io/polyfrost/oneconfig/config/OneConfigConfig.java
@@ -33,6 +33,7 @@ public class OneConfigConfig extends Config {
public static final int BLUE_600 = new Color(20, 82, 204, 255).getRGB(); // Blue 600 // button blue normal
public static final int BLUE_600_80 = new Color(20, 82, 204, 204).getRGB(); // Blue 600 80% // button blue click
public static final int BLUE_500 = new Color(25, 103, 255, 255).getRGB(); // Blue 500 // button blue hover
+ public static final int WHITE_50 = new Color(255, 255, 255, 127).getRGB(); // White 60%
public static final int WHITE_60 = new Color(255, 255, 255, 153).getRGB(); // White 60%
public static final int WHITE_80 = new Color(255, 255, 255, 204).getRGB(); // White 80%
public static final int WHITE_90 = new Color(255, 255, 255, 229).getRGB(); // White 90%
diff --git a/src/main/java/io/polyfrost/oneconfig/config/core/ConfigCore.java b/src/main/java/io/polyfrost/oneconfig/config/core/ConfigCore.java
index 9be25e9..6cce197 100644
--- a/src/main/java/io/polyfrost/oneconfig/config/core/ConfigCore.java
+++ b/src/main/java/io/polyfrost/oneconfig/config/core/ConfigCore.java
@@ -6,17 +6,17 @@ import io.polyfrost.oneconfig.hud.HudCore;
import java.util.ArrayList;
public class ConfigCore {
- public static ArrayList<Mod> OneConfigMods = new ArrayList<>();
+ public static ArrayList<Mod> oneConfigMods = new ArrayList<>();
public static void saveAll() {
- for (Mod modData : OneConfigMods) {
+ for (Mod modData : oneConfigMods) {
modData.config.save();
}
}
public static void reInitAll() {
- ArrayList<Mod> data = new ArrayList<>(OneConfigMods);
- OneConfigMods.clear();
+ ArrayList<Mod> data = new ArrayList<>(oneConfigMods);
+ oneConfigMods.clear();
HudCore.huds.clear();
for (Mod modData : data) {
modData.config.init(modData);
diff --git a/src/main/java/io/polyfrost/oneconfig/config/data/ModType.java b/src/main/java/io/polyfrost/oneconfig/config/data/ModType.java
index d2c5549..9769584 100644
--- a/src/main/java/io/polyfrost/oneconfig/config/data/ModType.java
+++ b/src/main/java/io/polyfrost/oneconfig/config/data/ModType.java
@@ -1,7 +1,6 @@
package io.polyfrost.oneconfig.config.data;
public enum ModType {
- PERFORMANCE,
PVP,
HUD,
UTIL_QOL,
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 c68162e..0539d5f 100644
--- a/src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java
+++ b/src/main/java/io/polyfrost/oneconfig/config/interfaces/Config.java
@@ -2,6 +2,7 @@ package io.polyfrost.oneconfig.config.interfaces;
import com.google.gson.*;
import io.polyfrost.oneconfig.config.annotations.Option;
+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;
@@ -34,6 +35,7 @@ public class Config {
else save();
mod.config = this;
generateOptionList(this.getClass(), mod.defaultPage);
+ ConfigCore.oneConfigMods.add(mod);
}
/**