From d1c36c2412b98350f8336e38361e49b3655982d5 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sun, 1 Aug 2021 23:43:10 +0900 Subject: Too many changes to describe Config gui overhaul. --- src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java b/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java index 4c60c090..396d244d 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java @@ -19,7 +19,7 @@ package kr.syeyoung.dungeonsguide.features; import com.google.gson.JsonObject; -import kr.syeyoung.dungeonsguide.config.guiconfig.old.GuiConfig; +import kr.syeyoung.dungeonsguide.config.guiconfig.nyu.GuiConfigV2; import kr.syeyoung.dungeonsguide.config.guiconfig.location.GuiGuiLocationConfig; import kr.syeyoung.dungeonsguide.config.types.GUIRectangle; import kr.syeyoung.dungeonsguide.config.types.TypeConverterRegistry; @@ -135,11 +135,11 @@ public abstract class GuiFeature extends AbstractFeature implements ScreenRender setOnActionPerformed(() -> { GuiScreen guiScreen = guiGuiLocationConfig.getBefore(); if (guiScreen == null) { - guiScreen = new GuiConfig(); + guiScreen = new GuiConfigV2(); } Minecraft.getMinecraft().displayGuiScreen(guiScreen); - if (guiScreen instanceof GuiConfig) { - ((GuiConfig) guiScreen).getTabbedPane().setCurrentPage(getEditRoute((GuiConfig) guiScreen)); + if (guiScreen instanceof GuiConfigV2) { + ((GuiConfigV2) guiScreen).getRootConfigPanel().setCurrentPageAndPushHistory(getEditRoute(((GuiConfigV2) guiScreen).getRootConfigPanel())); } }); } -- cgit