diff --git a/src/main/java/com/wynntils/modules/core/instances/MainMenuButtons.java b/src/main/java/com/wynntils/modules/core/instances/MainMenuButtons.java index c1131e987..2e3f83f08 100644 --- a/src/main/java/com/wynntils/modules/core/instances/MainMenuButtons.java +++ b/src/main/java/com/wynntils/modules/core/instances/MainMenuButtons.java @@ -68,12 +68,7 @@ public static void actionPerformed(GuiMainMenu on, GuiButton button, List lines = new ArrayList() {{ add(line1); add(line2); - add("Update now or when leaving Minecraft?"); + add(line3); }}; int spacing = this.fontRenderer.FONT_HEIGHT + 2; // 11 @@ -81,13 +85,13 @@ public void drawScreen(int mouseX, int mouseY, float partialTicks) { for (GuiButton button : buttonList) { if (button.isMouseOver()) { if (button.id == 0) { - drawHoveringText("View the changelog for this update", mouseX, mouseY); + drawHoveringText("Open a link to the Artemis Modrinth page", mouseX, mouseY); } else if (button.id == 1) { - drawHoveringText("Update now and exit Minecraft", mouseX, mouseY); + drawHoveringText("Copy your favorites to your clipboard", mouseX, mouseY); } else if (button.id == 2) { - drawHoveringText("Update when you exit Minecraft", mouseX, mouseY); + drawHoveringText("Copy your waypoints to your clipboard", mouseX, mouseY); } else if (button.id == 3) { - drawHoveringText("Ignore this update", mouseX, mouseY); + drawHoveringText("Continue to Wynncraft", mouseX, mouseY); } else if (button.id == 4) { drawHoveringText("Cancel", mouseX, mouseY); } @@ -97,12 +101,18 @@ public void drawScreen(int mouseX, int mouseY, float partialTicks) { @Override public void actionPerformed(GuiButton button) { - if (button.id == 1 || button.id == 2) { - // Update - CoreDBConfig.INSTANCE.showChangelogs = true; - CoreDBConfig.INSTANCE.lastVersion = Reference.VERSION; - CoreDBConfig.INSTANCE.saveSettings(CoreModule.getModule()); - McIf.mc().displayGuiScreen(new UpdatingScreen(button.id == 1)); + if (button.id == 1) { + List combinedList = new ArrayList<>(); + combinedList.addAll(UtilitiesConfig.INSTANCE.favoriteItems); + combinedList.addAll(UtilitiesConfig.INSTANCE.favoriteIngredients); + combinedList.addAll(UtilitiesConfig.INSTANCE.favoritePowders); + combinedList.addAll(UtilitiesConfig.INSTANCE.favoriteEmeraldPouches); + + Utils.copyToClipboard("wynntilsFavorites," + String.join(",", combinedList)); + } else if (button.id == 2) { + JsonArray array = new JsonArray(); + MapConfig.Waypoints.INSTANCE.waypoints.stream().map(WaypointProfile::toArtemisObject).forEach(array::add); + Utils.copyToClipboard(GSON.toJson(array)); } else if (button.id == 3) { // Ignore WebManager.skipJoinUpdate(); @@ -111,9 +121,7 @@ public void actionPerformed(GuiButton button) { // Cancel McIf.mc().displayGuiScreen(null); } else if (button.id == 0) { - // View changelog - boolean major = CoreDBConfig.INSTANCE.updateStream == UpdateStream.STABLE; - ChangelogUI.loadChangelogAndShow(this, major); + Utils.openUrl("https://modrinth.com/mod/wynntils/version/latest"); } }