Link to patch guide

This commit is contained in:
Anuken
2025-10-28 19:50:51 -04:00
parent 3d4b432540
commit 7d5478ec1d
3 changed files with 6 additions and 1 deletions

View File

@@ -471,6 +471,7 @@ editor.rules = Rules
editor.generation = Generation editor.generation = Generation
editor.objectives = Objectives editor.objectives = Objectives
editor.locales = Locale Bundles editor.locales = Locale Bundles
editor.patches.guide = Patch Guide
editor.patches = Content Patches editor.patches = Content Patches
editor.patch: Patchset: {0} editor.patch: Patchset: {0}
editor.patches.none = [lightgray]No patchsets loaded. editor.patches.none = [lightgray]No patchsets loaded.

View File

@@ -79,6 +79,8 @@ public class Vars implements Loadable{
public static final String discordURL = "https://discord.gg/mindustry"; public static final String discordURL = "https://discord.gg/mindustry";
/** Link to the wiki's modding guide.*/ /** Link to the wiki's modding guide.*/
public static final String modGuideURL = "https://mindustrygame.github.io/wiki/modding/1-modding/"; 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. */ /** 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"}; 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. */ /** URLs to the JSON file containing all the stable servers. */

View File

@@ -23,7 +23,9 @@ public class MapPatchesDialog extends BaseDialog{
shown(this::setup); shown(this::setup);
addCloseButton(); 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(); cont.top();
getCell(cont).grow(); getCell(cont).grow();