Added sleep modifier:

This commit is contained in:
dginovker
2019-10-03 13:28:45 -04:00
parent cd355c3e49
commit 14c5a1aac9
64 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -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());
}