runelite-client: add --no-rs option
This commit is contained in:
@@ -87,6 +87,7 @@ public class RuneLite
|
|||||||
|
|
||||||
OptionParser parser = new OptionParser();
|
OptionParser parser = new OptionParser();
|
||||||
parser.accepts("developer-mode");
|
parser.accepts("developer-mode");
|
||||||
|
parser.accepts("no-rs");
|
||||||
options = parser.parse(args);
|
options = parser.parse(args);
|
||||||
|
|
||||||
runelite = new RuneLite();
|
runelite = new RuneLite();
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ final class ClientPanel extends JPanel
|
|||||||
|
|
||||||
private Applet rs;
|
private Applet rs;
|
||||||
|
|
||||||
public ClientPanel() throws Exception
|
public ClientPanel(boolean loadRs) throws Exception
|
||||||
{
|
{
|
||||||
setSize(new Dimension(PANEL_WIDTH, PANEL_HEIGHT));
|
setSize(new Dimension(PANEL_WIDTH, PANEL_HEIGHT));
|
||||||
setMinimumSize(new Dimension(PANEL_WIDTH, PANEL_HEIGHT));
|
setMinimumSize(new Dimension(PANEL_WIDTH, PANEL_HEIGHT));
|
||||||
@@ -51,6 +51,11 @@ final class ClientPanel extends JPanel
|
|||||||
setLayout(new BorderLayout());
|
setLayout(new BorderLayout());
|
||||||
setBackground(Color.black);
|
setBackground(Color.black);
|
||||||
|
|
||||||
|
if (!loadRs)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ClientLoader loader = new ClientLoader();
|
ClientLoader loader = new ClientLoader();
|
||||||
|
|
||||||
rs = loader.load();
|
rs = loader.load();
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ public final class ClientUI extends JFrame
|
|||||||
container = new JPanel();
|
container = new JPanel();
|
||||||
container.setLayout(new BorderLayout(0, 0));
|
container.setLayout(new BorderLayout(0, 0));
|
||||||
|
|
||||||
panel = new ClientPanel();
|
panel = new ClientPanel(!RuneLite.getOptions().has("no-rs"));
|
||||||
container.add(panel, BorderLayout.CENTER);
|
container.add(panel, BorderLayout.CENTER);
|
||||||
|
|
||||||
navContainer = new JPanel();
|
navContainer = new JPanel();
|
||||||
|
|||||||
Reference in New Issue
Block a user