diff --git a/build-tools/src/main/java/com/skcraft/launcher/buildtools/BuildTools.java b/build-tools/src/main/java/com/skcraft/launcher/buildtools/BuildTools.java index 8db5fe4..97e3224 100644 --- a/build-tools/src/main/java/com/skcraft/launcher/buildtools/BuildTools.java +++ b/build-tools/src/main/java/com/skcraft/launcher/buildtools/BuildTools.java @@ -222,6 +222,13 @@ public class BuildTools { } }); + frame.getDocsButton().addActionListener(new ActionListener() { + @Override + public void actionPerformed(ActionEvent e) { + SwingHelper.openURL("https://github.com/SKCraft/Launcher/wiki", frame); + } + }); + frame.setVisible(true); } diff --git a/build-tools/src/main/java/com/skcraft/launcher/buildtools/ToolsFrame.java b/build-tools/src/main/java/com/skcraft/launcher/buildtools/ToolsFrame.java index b471c9b..a638d1a 100644 --- a/build-tools/src/main/java/com/skcraft/launcher/buildtools/ToolsFrame.java +++ b/build-tools/src/main/java/com/skcraft/launcher/buildtools/ToolsFrame.java @@ -25,6 +25,7 @@ public class ToolsFrame extends JFrame { private final JButton clearInstanceButton = new JButton("Delete Instance from Test Launcher", SwingHelper.readImageIcon(ToolsFrame.class, "clean.png")); private final JButton clearWebRootButton = new JButton("Delete Generated Modpack Files", SwingHelper.readImageIcon(ToolsFrame.class, "clean.png")); private final JButton openConsoleButton = new JButton("Re-open Console", SwingHelper.readImageIcon(ToolsFrame.class, "log.png")); + private final JButton docsButton = new JButton("View Documentation", SwingHelper.readImageIcon(ToolsFrame.class, "help.png")); public ToolsFrame() { super("Modpack Build Tools"); @@ -52,6 +53,7 @@ public class ToolsFrame extends JFrame { container.add(clearInstanceButton, "grow, tag ok"); container.add(clearWebRootButton, "grow, tag ok"); container.add(openConsoleButton, "grow, tag ok"); + container.add(docsButton, "grow, tag ok"); add(container, BorderLayout.CENTER); } diff --git a/build-tools/src/main/resources/com/skcraft/launcher/buildtools/help.png b/build-tools/src/main/resources/com/skcraft/launcher/buildtools/help.png new file mode 100644 index 0000000..7bb1c35 Binary files /dev/null and b/build-tools/src/main/resources/com/skcraft/launcher/buildtools/help.png differ