mirror of
https://github.com/2006-Scape/Script-Factory.git
synced 2026-07-02 16:49:10 +00:00
Merge pull request #2 from dginovker/add_sleep_modifier
Added sleep modifier:
This commit is contained in:
+1
-3
@@ -1,8 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7">
|
||||
<output url="file://$MODULE_DIR$/target/classes" />
|
||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="true">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
||||
|
||||
@@ -20,7 +20,7 @@ import static scriptfactory.VarsMethods.log;
|
||||
* Welcome to AIO AIO - ScriptFactory. Make your own scripts!
|
||||
*/
|
||||
|
||||
@ScriptManifest(author = "Before", name = "Script Factory 1.5", category = Category.OTHER, version = 1.5, description = "Create your own scripts!", servers = "All")
|
||||
@ScriptManifest(author = "Before", name = "Script Factory 1.6", category = Category.OTHER, version = 1.6, description = "Create your own scripts!", servers = "All")
|
||||
public class Core extends Script implements Paintable {
|
||||
|
||||
private ArrayList<Action> actions = new ArrayList<>();
|
||||
|
||||
@@ -8,11 +8,12 @@ import java.util.ArrayList;
|
||||
public class UncommonActionGuiInfo extends NewStatementGUI {
|
||||
public UncommonActionGuiInfo(ArrayList<Action> actionList, Consumer<Integer> updateTextField)
|
||||
{
|
||||
String[] actionTypes = new String[]{"Comment", "Run subscript", "Bank all except IDs"};
|
||||
String[] actionTypes = new String[]{"Comment", "Run subscript", "Bank all except IDs", "Change Tick Speed"};
|
||||
NewStatementGUI.Descriptions[] setDescs = {
|
||||
new Descriptions("Enter any text to be your comment."),
|
||||
new Descriptions("Enter the file name of the subscript (cAsE sEnSiTiVe)"),
|
||||
new Descriptions("Enter the IDs to keep (comma separated) (i.e. \"995,150,356\") (can be blank)"),
|
||||
new Descriptions("Enter the new Tick Speed (in ms), which is time delayed between each line (default 1200)"),
|
||||
};
|
||||
initGui("Add new uncommon action", actionList, updateTextField, actionTypes, setDescs);
|
||||
}
|
||||
|
||||
@@ -114,6 +114,9 @@ public class ActionExecutor {
|
||||
case "Bank all except IDs":
|
||||
actionHandler.bankAllExcept(action);
|
||||
break;
|
||||
case "Change Tick Speed":
|
||||
VarsMethods.tickSpeed = action.getParam(0);
|
||||
break;
|
||||
default:
|
||||
log("Error: Unimplemented action: " + action.getAction());
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user