GBX.lua.ChangeHistoryService (Service): Difference between revisions

From Goodblox Wiki
Jump to navigationJump to search
(Created page with "{{CatUp|Class reference}} __NOTOC__ The ChangeHistoryService object. {{Service}} ==Functions== In addition to the global functions, the ChangeHistoryService also has these...")
 
No edit summary
Line 1: Line 1:
{{CatUp|Class reference}}
{{CatUp|Class reference}}
__NOTOC__
The ChangeHistoryService object.
{{Service}}
{{Service}}
The ChangeHistoryService provides a way to undo and redo script changes made in [[GoodBlox Studio]]. It only works in the [[GoodBlox_Studio#The Command Bar|Command bar]] or in a script ran from a local file (Tools > Execute Script...)


==Functions==
==Functions==
In addition to the global functions, the ChangeHistoryService also has these functions:<br>
In addition to the global functions, the ChangeHistoryService also has these functions:
 
''<font color="red"># indicates a locked function. These should NOT be tampered with.</font>''
''<font color="red"># indicates a locked function. These should NOT be tampered with.</font>''
 
*<font color="red">#</font> [[GetCanRedo (Function)|GetCanRedo]]
*<font color="red">#</font>[[GetCanRedo (Function)|GetCanRedo]]
*<font color="red">#</font> [[GetCanUndo (Function)|GetCanUndo]]
*<font color="red">#</font>[[GetCanUndo (Function)|GetCanUndo]]
*<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)|Waypoint]]
*<font color="red">#</font>[[SetWaypoint (Function)|Waypoint]]
*<font color="red">#</font> [[Undo (Function)|Undo]]
*<font color="red">#</font>[[Undo (Function)|Undo]]


==Properties==
==Properties==
Line 23: Line 20:
The ChangeHistoryService object only incorporates the global events.
The ChangeHistoryService object only incorporates the global events.


 
[[Category:GoodBlox Lua Objects]]
[[Category:GoodBlox Lua Services]]
[[Category:GoodBlox Lua Services]]
[[Category:Stubs]]

Revision as of 08:33, 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.

Properties

The ChangeHistoryService object only incorporates the global properties.

Events

The ChangeHistoryService object only incorporates the global events.