mirror of
https://github.com/SKCraft/Launcher.git
synced 2025-02-17 01:51:24 +01:00
Added "Launcher console" button to config dialog.
This commit is contained in:
parent
0645de7f20
commit
41d412d3b5
@ -49,6 +49,7 @@ public class ConfigurationDialog extends JDialog {
|
|||||||
private final LinedBoxPanel buttonsPanel = new LinedBoxPanel(true);
|
private final LinedBoxPanel buttonsPanel = new LinedBoxPanel(true);
|
||||||
private final JButton okButton = new JButton(_("button.ok"));
|
private final JButton okButton = new JButton(_("button.ok"));
|
||||||
private final JButton cancelButton = new JButton(_("button.cancel"));
|
private final JButton cancelButton = new JButton(_("button.cancel"));
|
||||||
|
private final JButton logButton = new JButton(_("options.launcherConsole"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new configuration dialog.
|
* Create a new configuration dialog.
|
||||||
@ -114,6 +115,7 @@ public class ConfigurationDialog extends JDialog {
|
|||||||
SwingHelper.removeOpaqueness(advancedPanel);
|
SwingHelper.removeOpaqueness(advancedPanel);
|
||||||
tabbedPane.addTab(_("options.advancedTab"), SwingHelper.alignTabbedPane(advancedPanel));
|
tabbedPane.addTab(_("options.advancedTab"), SwingHelper.alignTabbedPane(advancedPanel));
|
||||||
|
|
||||||
|
buttonsPanel.addElement(logButton);
|
||||||
buttonsPanel.addGlue();
|
buttonsPanel.addGlue();
|
||||||
buttonsPanel.addElement(okButton);
|
buttonsPanel.addElement(okButton);
|
||||||
buttonsPanel.addElement(cancelButton);
|
buttonsPanel.addElement(cancelButton);
|
||||||
@ -133,6 +135,13 @@ public class ConfigurationDialog extends JDialog {
|
|||||||
save();
|
save();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
logButton.addActionListener(new ActionListener() {
|
||||||
|
@Override
|
||||||
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
ConsoleFrame.showMessages();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -42,6 +42,7 @@ options.proxyPassword=Proxy password\:
|
|||||||
options.proxyTab=Proxy
|
options.proxyTab=Proxy
|
||||||
options.gameKey=Game key\:
|
options.gameKey=Game key\:
|
||||||
options.advancedTab=Advanced
|
options.advancedTab=Advanced
|
||||||
|
options.launcherConsole=Launcher console
|
||||||
|
|
||||||
instance.openFolder=Open folder
|
instance.openFolder=Open folder
|
||||||
instance.openSaves=Open saves folder
|
instance.openSaves=Open saves folder
|
||||||
|
Loading…
Reference in New Issue
Block a user