mirror of
https://github.com/SKCraft/Launcher.git
synced 2024-11-24 12:16:28 +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 JButton okButton = new JButton(_("button.ok"));
|
||||
private final JButton cancelButton = new JButton(_("button.cancel"));
|
||||
private final JButton logButton = new JButton(_("options.launcherConsole"));
|
||||
|
||||
/**
|
||||
* Create a new configuration dialog.
|
||||
@ -114,6 +115,7 @@ public class ConfigurationDialog extends JDialog {
|
||||
SwingHelper.removeOpaqueness(advancedPanel);
|
||||
tabbedPane.addTab(_("options.advancedTab"), SwingHelper.alignTabbedPane(advancedPanel));
|
||||
|
||||
buttonsPanel.addElement(logButton);
|
||||
buttonsPanel.addGlue();
|
||||
buttonsPanel.addElement(okButton);
|
||||
buttonsPanel.addElement(cancelButton);
|
||||
@ -133,6 +135,13 @@ public class ConfigurationDialog extends JDialog {
|
||||
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.gameKey=Game key\:
|
||||
options.advancedTab=Advanced
|
||||
options.launcherConsole=Launcher console
|
||||
|
||||
instance.openFolder=Open folder
|
||||
instance.openSaves=Open saves folder
|
||||
|
Loading…
Reference in New Issue
Block a user