mirror of
https://github.com/2006-Scape/Script-Factory.git
synced 2026-07-02 16:49:10 +00:00
Added sleep modifier:
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user