mirror of
https://github.com/SKCraft/Launcher.git
synced 2024-11-24 12:16:28 +01:00
[Build Tools] Add documentation button.
This commit is contained in:
parent
0c1358124b
commit
ac3ac99ee8
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 792 B |
Loading…
Reference in New Issue
Block a user