Plugin : Undo & Redo
Author:Rex.Rainbow
- A data structure to support undo&redo steps/states.
Download
Properties
Mode
- Use steps or states mode. They will have different undo/redo behaviors.
- Options : ["Steps","States"]
Max count
- Max count of steps. 0 is infinite.
Official save&load
- Enable to support official save&load.
Actions
JSON
Action:Load steps from JSON string
- Load steps from JSON string.
- JSON string ( string ) : JSON string.
Push
Action:Set data
- Set date.
- Key ( number or string ) : The key of data.
- Value ( number or string ) : The value of data
Push - dictionary mode
Action:Push
Push - simple mode
Action:Push
- Push step.
- Data ( number or string ) : Data of step
Recorder
Action:Clean
Redo - dictionary mode
Action:Redo
Undo - dictionary mode
Action:Undo
Expressions
Data
Expression:CurStep
- Get data in current step.
JSON
Expression:ToString
Recorder
Expression:StepsCnt
Expression:CurIndex
Simple mode
Expression:Undo
- Get previosu step. Used for simple mode.
Expression:Redo
- Get next step. Used for simple mode.
Conditions
Redo
Condition:Can redo
- Retrun true if can redo to next step.
Step
Condition:For each step
- Repeat the event for each step.
Undo
Condition:Can undo
- Retrun true if can undo to previous step.