(One intermediate revision by one other user not shown)
Line 3:
Line 3:
|Name=Undo Manager
|Name=Undo Manager
}}
}}
See [[Undo]].
The '''UndoManager''' component keeps track of all [[User|user's]] actions in the world, allowing users to [[Undo]] or revert back to a previous step or action. Undoing can be controlled in [[ProtoFlux]] within the [[:Category:ProtoFlux:Undo|Undo Category]], where users create undo batches and steps that this component can utilize. Undoing can be disabled by setting max steps to <code>0</code>.
== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|MaxUndoSteps|Int| The maximum memory for Undoable actions per user for the current world.
|MaxUndoSteps|Int| The maximum memory for Undoable actions per user for the current world.
|UnsavedChanges|Bool|
|UnsavedChanges|Bool| Whether the user has done anything that makes an undo step, which tells the world it has unsaved changes.
The UndoManager component keeps track of all user's actions in the world, allowing users to Undo or revert back to a previous step or action. Undoing can be controlled in ProtoFlux within the Undo Category, where users create undo batches and steps that this component can utilize. Undoing can be disabled by setting max steps to 0.