Plugin : Undo & Redo

Author:Rex.Rainbow

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.
    • Options : ["No","Yes"]

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 current data.

Push - simple mode

Action:Push

  • Push step.
    • Data ( number or string ) : Data of step

Recorder

Action:Clean

  • Clean all steps.

Redo - dictionary mode

Action:Redo

  • Get next step.

Undo - dictionary mode

Action:Undo

  • Get previosu step.

Expressions

Data

Expression:CurStep

  • Get data in current step.

JSON

Expression:ToString

  • Get JSON from recorder.

Recorder

Expression:StepsCnt

  • Get steps count.

Expression:CurIndex

  • Get current step index.

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.