aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/Features.java
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-09-08 18:11:29 +0200
committerLorenz <lo.scherf@gmail.com>2022-09-08 18:11:29 +0200
commit7e4eb4d5c83f6ef2d0dc86834870c55ce7774f12 (patch)
tree55a4d8c73484a71657f9ea1e6dfa8f08fbbad43f /src/main/java/at/hannibal2/skyhanni/config/Features.java
parentd6389173d423ce406b9710724dce04b4ef07098b (diff)
downloadSkyHanni-7e4eb4d5c83f6ef2d0dc86834870c55ce7774f12.tar.gz
SkyHanni-7e4eb4d5c83f6ef2d0dc86834870c55ce7774f12.tar.bz2
SkyHanni-7e4eb4d5c83f6ef2d0dc86834870c55ce7774f12.zip
updated config structure from neu
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/Features.java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/Features.java19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/Features.java b/src/main/java/at/hannibal2/skyhanni/config/Features.java
index 854ef91bc..d4803d679 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/Features.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/Features.java
@@ -1,22 +1,25 @@
package at.hannibal2.skyhanni.config;
import at.hannibal2.skyhanni.SkyHanniMod;
+import at.hannibal2.skyhanni.config.core.GuiElement;
+import at.hannibal2.skyhanni.config.core.GuiScreenElementWrapper;
+import at.hannibal2.skyhanni.config.core.config.Config;
+import at.hannibal2.skyhanni.config.core.config.Position;
+import at.hannibal2.skyhanni.config.core.config.annotations.Category;
+import at.hannibal2.skyhanni.config.core.config.gui.GuiPositionEditor;
import at.hannibal2.skyhanni.config.features.*;
-import at.hannibal2.skyhanni.config.gui.config.ConfigEditor;
-import at.hannibal2.skyhanni.config.gui.core.GuiElement;
-import at.hannibal2.skyhanni.config.gui.core.GuiScreenElementWrapper;
-import at.hannibal2.skyhanni.config.gui.core.config.Position;
-import at.hannibal2.skyhanni.config.gui.core.config.annotations.Category;
-import at.hannibal2.skyhanni.config.gui.core.config.gui.GuiPositionEditor;
import com.google.gson.annotations.Expose;
import net.minecraft.client.Minecraft;
-public class Features {
+public class Features extends Config {
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))));
}
+ @Override
public void executeRunnable(String runnableId) {
String activeConfigCategory = null;
if (Minecraft.getMinecraft().currentScreen instanceof GuiScreenElementWrapper) {