Modern GUI to Experimental Config -- Default: False

This commit is contained in:
Kam committed 2025-03-25 11:34:14 -04:00
1 parent 9597f68a5e
commit 82c2a0f10f
5 files changed
+44 -13

No files matched your search

@@ -23,7 +23,7 @@ import noppes.npcs.client.gui.util.GuiContainerNPCInterface;
import noppes.npcs.client.gui.util.GuiNPCInterface;
import noppes.npcs.client.gui.util.IPlayerDataInfo;
import noppes.npcs.client.gui.util.IScrollData;
import noppes.npcs.config.ConfigClient;
import noppes.npcs.config.ConfigExperimental;
import noppes.npcs.constants.EnumGuiType;
import noppes.npcs.constants.EnumScrollData;
import noppes.npcs.controllers.data.Dialog;
@@ -195,7 +195,7 @@ public class NoppesUtil {
dialog.readNBT(compound);
GuiScreen gui = Minecraft.getMinecraft().currentScreen;
if(!(gui instanceof GuiDialogInteract)) {
if (ConfigClient.ModernGuiSystem) {
if (ConfigExperimental.ModernGuiSystem) {
if (dialog.hasQuest()) {
CustomNpcs.proxy.openGui(player, new GuiModernQuestDialog(npc, dialog.getQuest(), dialog, -2));
} else {
@@ -1,7 +1,6 @@
package noppes.npcs.client.gui.player.modern;
import kamkeel.npcs.network.PacketClient;
import kamkeel.npcs.network.packets.data.npc.DialogPacket;
import kamkeel.npcs.network.packets.player.CheckPlayerValue;
import kamkeel.npcs.network.packets.player.DialogSelectPacket;
import net.minecraft.client.Minecraft;
@@ -17,7 +16,6 @@ import net.minecraft.util.IChatComponent;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import noppes.npcs.CustomNpcs;
import noppes.npcs.NoppesUtilPlayer;
import noppes.npcs.api.handler.data.IDialogImage;
import noppes.npcs.api.handler.data.IQuestObjective;
import noppes.npcs.api.item.IItemStack;
@@ -29,8 +27,7 @@ import noppes.npcs.client.gui.util.GuiNPCInterface;
import noppes.npcs.client.gui.util.GuiNpcButton;
import noppes.npcs.client.gui.util.GuiTexturedButton;
import noppes.npcs.client.gui.util.IGuiClose;
import noppes.npcs.config.ConfigClient;
import noppes.npcs.constants.EnumPlayerPacket;
import noppes.npcs.config.ConfigExperimental;
import noppes.npcs.controllers.FactionController;
import noppes.npcs.controllers.PlayerDataController;
import noppes.npcs.controllers.data.*;
@@ -345,7 +342,7 @@ public class GuiModernQuestDialog extends GuiNPCInterface implements IGuiClose {
if(optionId!=-2){
PacketClient.sendClient(new DialogSelectPacket(prevDialog.id, optionId));
}else{
if(ConfigClient.ModernGuiSystem) {
if(ConfigExperimental.ModernGuiSystem) {
CustomNpcs.proxy.openGui(player, new GuiModernDialogInteract(npc, prevDialog));
}
else {