mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 00:37:55 +00:00
Fix for mac users
This commit is contained in:
@@ -29,9 +29,8 @@ public class BotDialog extends JDialog {
|
||||
botUI.setVisible(true);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public void setDimensions(Dimension dimension) {
|
||||
|
||||
public void setDimensions(Dimension dimension) {
|
||||
setUndecorated(true);
|
||||
getRootPane().setOpaque(false);
|
||||
setBackground(new Color(0, 0, 0, 0));
|
||||
|
||||
@@ -53,6 +53,13 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
|
||||
JMenu scripts = new JMenu("Script");
|
||||
|
||||
JMenuItem proxy = new JMenuItem("Network");
|
||||
final JMenuItem dialog = new JCheckBoxMenuItem("Disable dialog");
|
||||
dialog.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
BotDialog.getInstance().setVisible(!dialog.isSelected());
|
||||
}
|
||||
});
|
||||
JMenuItem exit = new JMenuItem("Exit");
|
||||
|
||||
run = new JMenuItem("Run");
|
||||
@@ -74,6 +81,7 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
|
||||
stop.addActionListener(this);
|
||||
|
||||
file.add(proxy);
|
||||
file.add(dialog);
|
||||
file.add(exit);
|
||||
|
||||
scripts.add(run);
|
||||
|
||||
Reference in New Issue
Block a user