mirror of
https://github.com/2006Scape-Scripts/ParaScript.git
synced 2026-07-03 00:38:36 +00:00
Close window on script stop
This commit is contained in:
Generated
-21
@@ -3,28 +3,7 @@
|
|||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="3ab8e8a0-ccfd-4b0b-9547-98173085dc38" name="Default Changelist" comment="">
|
<list default="true" id="3ab8e8a0-ccfd-4b0b-9547-98173085dc38" name="Default Changelist" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/ParaScript.iml" beforeDir="false" afterPath="$PROJECT_DIR$/ParaScript.iml" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/main/java/ParaScript/Main.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/ParaScript/Main.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/main/java/ParaScript/Main.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/ParaScript/Main.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/main/java/ParaScript/data/Variables.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/ParaScript/data/Variables.java" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/main/java/ParaScript/ui/UI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/ParaScript/ui/UI.java" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/data/Variables.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/data/variables/Ores.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/data/variables/Trees.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/data/variables/Zone.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/strategies/Bank.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/strategies/HandleLogin$1.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/strategies/HandleLogin.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/strategies/MakeArrowShafts.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/strategies/Mine.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/strategies/ScriptState.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/strategies/Thieving.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/strategies/Walk.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/strategies/WoodcutTree.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/ui/UI$1.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/ui/UI$2.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/ui/UI$3.class" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/target/classes/ParaScript/ui/UI.class" beforeDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
|||||||
@@ -19,11 +19,10 @@ import java.util.ArrayList;
|
|||||||
public class Main extends Script implements MessageListener, Paintable {
|
public class Main extends Script implements MessageListener, Paintable {
|
||||||
|
|
||||||
private final ArrayList<Strategy> strategies = new ArrayList<Strategy>();
|
private final ArrayList<Strategy> strategies = new ArrayList<Strategy>();
|
||||||
|
private UI ui = new UI();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onExecute() {
|
public boolean onExecute() {
|
||||||
|
|
||||||
UI ui = new UI();
|
|
||||||
ui.setVisible(true);
|
ui.setVisible(true);
|
||||||
while (!Variables.running) {
|
while (!Variables.running) {
|
||||||
Time.sleep(300);
|
Time.sleep(300);
|
||||||
@@ -50,6 +49,7 @@ public class Main extends Script implements MessageListener, Paintable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFinish() {
|
public void onFinish() {
|
||||||
|
ui.dispose();
|
||||||
System.out.println("Script Stopped");
|
System.out.println("Script Stopped");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user