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...") |
m (→Functions) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{CatUp|Class reference}} | {{CatUp|Class reference}} | ||
{{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: | 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)|SetWaypoint]] | ||
*<font color="red">#</font>[[SetWaypoint (Function)| | *<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]] | ||
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.