Added link to modding guide
This commit is contained in:
@@ -70,6 +70,7 @@ mods.alphainfo = Keep in mind that mods are in alpha, and[scarlet] may be very b
|
|||||||
mods.alpha = [accent](Alpha)
|
mods.alpha = [accent](Alpha)
|
||||||
mods = Mods
|
mods = Mods
|
||||||
mods.none = [LIGHT_GRAY]No mods found!
|
mods.none = [LIGHT_GRAY]No mods found!
|
||||||
|
mods.guide = Modding Guide
|
||||||
mod.enabled = [lightgray]Enabled
|
mod.enabled = [lightgray]Enabled
|
||||||
mod.disabled = [scarlet]Disabled
|
mod.disabled = [scarlet]Disabled
|
||||||
mod.disable = Disable
|
mod.disable = Disable
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ public class Vars implements Loadable{
|
|||||||
public static final String discordURL = "https://discord.gg/mindustry";
|
public static final String discordURL = "https://discord.gg/mindustry";
|
||||||
/** URL for sending crash reports to */
|
/** URL for sending crash reports to */
|
||||||
public static final String crashReportURL = "http://mins.us.to/report";
|
public static final String crashReportURL = "http://mins.us.to/report";
|
||||||
|
/** URL the links to the wiki's modding guide.*/
|
||||||
|
public static final String modGuideURL = "https://mindustrygame.github.io/wiki/modding/";
|
||||||
/** list of built-in servers.*/
|
/** list of built-in servers.*/
|
||||||
public static final Array<String> defaultServers = Array.with(/*"mins.us.to"*/);
|
public static final Array<String> defaultServers = Array.with(/*"mins.us.to"*/);
|
||||||
/** maximum distance between mine and core that supports automatic transferring */
|
/** maximum distance between mine and core that supports automatic transferring */
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ public class ModsDialog extends FloatingDialog{
|
|||||||
public ModsDialog(){
|
public ModsDialog(){
|
||||||
super("$mods");
|
super("$mods");
|
||||||
addCloseButton();
|
addCloseButton();
|
||||||
|
buttons.addImageTextButton("$mods.guide", Icon.wiki,
|
||||||
|
() -> Core.net.openURI(modGuideURL))
|
||||||
|
.size(290f, 64f);
|
||||||
|
|
||||||
shown(this::setup);
|
shown(this::setup);
|
||||||
|
|
||||||
hidden(() -> {
|
hidden(() -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user