GBX.lua.ChangeHistoryService (Service): Difference between revisions
From Goodblox Wiki
Jump to navigationJump to search
No edit summary |
m (→Functions) |
||
Line 11: | Line 11: | ||
*<font color="red">#</font> [[Redo (Function)|Redo]] | *<font color="red">#</font> [[Redo (Function)|Redo]] | ||
*<font color="red">#</font> [[SetEnabled (Function)|SetEnabled]] | *<font color="red">#</font> [[SetEnabled (Function)|SetEnabled]] | ||
*<font color="red">#</font> [[SetWaypoint (Function)| | *<font color="red">#</font> [[SetWaypoint (Function)|SetWaypoint]] | ||
*<font color="red">#</font> [[Undo (Function)|Undo]] | *<font color="red">#</font> [[Undo (Function)|Undo]] | ||
Latest revision as of 21:47, 24 September 2021
Note: This is a Game Service, and therefore isn't like other Objects in the Class Explorer. You have to call it with :
game:GetService("<Service name>")
The ChangeHistoryService provides a way to undo and redo script changes made in GoodBlox Studio. It only works in the Command bar or in a script ran from a local file (Tools > Execute Script...)
Functions
In addition to the global functions, the ChangeHistoryService also has these functions:
# indicates a locked function. These should NOT be tampered with.
- # GetCanRedo
- # GetCanUndo
- # Redo
- # SetEnabled
- # SetWaypoint
- # Undo
Properties
The ChangeHistoryService object only incorporates the global properties.
Events
The ChangeHistoryService object only incorporates the global events.