From 7d5478ec1de8442552e2a65b09fd2270da35d39f Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 28 Oct 2025 19:50:51 -0400 Subject: [PATCH] Link to patch guide --- core/assets/bundles/bundle.properties | 1 + core/src/mindustry/Vars.java | 2 ++ core/src/mindustry/editor/MapPatchesDialog.java | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index a649edf7ad..4e62e68383 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -471,6 +471,7 @@ editor.rules = Rules editor.generation = Generation editor.objectives = Objectives editor.locales = Locale Bundles +editor.patches.guide = Patch Guide editor.patches = Content Patches editor.patch: Patchset: {0} editor.patches.none = [lightgray]No patchsets loaded. diff --git a/core/src/mindustry/Vars.java b/core/src/mindustry/Vars.java index 2bac555a86..742579eecd 100644 --- a/core/src/mindustry/Vars.java +++ b/core/src/mindustry/Vars.java @@ -79,6 +79,8 @@ public class Vars implements Loadable{ public static final String discordURL = "https://discord.gg/mindustry"; /** Link to the wiki's modding guide.*/ public static final String modGuideURL = "https://mindustrygame.github.io/wiki/modding/1-modding/"; + /** Link to the wiki's patch guide.*/ + public static final String patchesGuideURL = "https://mindustrygame.github.io/wiki/contentpatches/"; /** URLs to the JSON file containing all the BE servers. Only queried in BE. */ public static final String[] serverJsonBeURLs = {"https://raw.githubusercontent.com/Anuken/MindustryServerList/master/servers_be.json", "https://cdn.jsdelivr.net/gh/anuken/mindustryserverlist/servers_be.json"}; /** URLs to the JSON file containing all the stable servers. */ diff --git a/core/src/mindustry/editor/MapPatchesDialog.java b/core/src/mindustry/editor/MapPatchesDialog.java index 46667502c4..6f1de9c1cc 100644 --- a/core/src/mindustry/editor/MapPatchesDialog.java +++ b/core/src/mindustry/editor/MapPatchesDialog.java @@ -23,7 +23,9 @@ public class MapPatchesDialog extends BaseDialog{ shown(this::setup); addCloseButton(); - buttons.button("@add", Icon.add, () -> showImport(this::addPatch)).size(210f, 64f); + buttons.button("@editor.patches.guide", Icon.link, () -> Core.app.openURI(patchesGuideURL)).size(200, 64f); + + buttons.button("@add", Icon.add, () -> showImport(this::addPatch)).size(200f, 64f); cont.top(); getCell(cont).grow();