aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/Features.java
diff options
context:
space:
mode:
authorLorenz <ESs95s3P5z8Pheb>2022-07-15 19:41:05 +0200
committerLorenz <ESs95s3P5z8Pheb>2022-07-15 19:41:05 +0200
commit8918d129525ace873e98840d9d4499e35c92dffe (patch)
treed0dd7e5af3738ab52c20ac69de25f91b9149e7c4 /src/main/java/at/hannibal2/skyhanni/config/Features.java
parent2d923d222ebc58777dbf8523484f69a26313188c (diff)
downloadskyhanni-8918d129525ace873e98840d9d4499e35c92dffe.tar.gz
skyhanni-8918d129525ace873e98840d9d4499e35c92dffe.tar.bz2
skyhanni-8918d129525ace873e98840d9d4499e35c92dffe.zip
added repo support
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/Features.java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/Features.java23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/Features.java b/src/main/java/at/hannibal2/skyhanni/config/Features.java
index 4d81e8f01..4120d6581 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/Features.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/Features.java
@@ -13,7 +13,9 @@ import net.minecraft.client.Minecraft;
public class Features {
private void editOverlay(String activeConfig, int width, int height, Position position) {
- Minecraft.getMinecraft().displayGuiScreen(new GuiPositionEditor(position, width, height, () -> {}, () -> {}, () -> SkyHanniMod.screenToOpen = new GuiScreenElementWrapper(new ConfigEditor(SkyHanniMod.feature, activeConfig))));
+ Minecraft.getMinecraft().displayGuiScreen(new GuiPositionEditor(position, width, height, () -> {
+ }, () -> {
+ }, () -> SkyHanniMod.screenToOpen = new GuiScreenElementWrapper(new ConfigEditor(SkyHanniMod.feature, activeConfig))));
}
public void executeRunnable(String runnableId) {
@@ -53,9 +55,6 @@ public class Features {
}
@Expose
- public String apiKey = "";
-
- @Expose
@Category(name = "Chat", desc = "Chat related features.")
public Chat chat = new Chat();
@@ -80,6 +79,10 @@ public class Features {
public Misc misc = new Misc();
@Expose
+ @Category(name = "Apis", desc = "Api Data")
+ public ApiData apiData = new ApiData();
+
+ @Expose
@Category(name = "Debug", desc = "Debug and test stuff.")
public Debug debug = new Debug();
@@ -293,6 +296,18 @@ public class Features {
public boolean configButtonOnPause = true;
}
+ public static class ApiData {
+
+ @Expose
+ public String apiKey = "";
+
+ @Expose
+ @ConfigOption(name = "Repo Auto Update", desc = "Update the repository on every startup.")
+ @ConfigEditorBoolean
+ public boolean repoAutoUpdate = true;
+
+ }
+
public static class Debug {
@Expose