diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-19 09:23:32 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-19 09:23:32 +0200 |
commit | 97a6c9f16d6c84e281e3cf5eea49263b2b81be34 (patch) | |
tree | 68bf8a07b01d0735d5bfe082b0bb8d2831781ac7 /doc/classes/UndoRedo.xml | |
parent | 49891e4c2fc0b783e9b81e9e600a805d319f4088 (diff) | |
parent | b3997191d8b750b845294b49b08f327e7679d509 (diff) |
Merge pull request #66070 from KoBeWi/call_of_undo
Change UndoRedo to use Callables
Diffstat (limited to 'doc/classes/UndoRedo.xml')
-rw-r--r-- | doc/classes/UndoRedo.xml | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/doc/classes/UndoRedo.xml b/doc/classes/UndoRedo.xml index 3ef59b1c39..7258efbdda 100644 --- a/doc/classes/UndoRedo.xml +++ b/doc/classes/UndoRedo.xml @@ -62,12 +62,11 @@ <tutorials> </tutorials> <methods> - <method name="add_do_method" qualifiers="vararg"> + <method name="add_do_method"> <return type="void" /> - <param index="0" name="object" type="Object" /> - <param index="1" name="method" type="StringName" /> + <param index="0" name="callable" type="Callable" /> <description> - Register a [param method] that will be called when the action is committed. + Register a [Callable] that will be called when the action is committed. </description> </method> <method name="add_do_property"> @@ -86,12 +85,11 @@ Register a reference for "do" that will be erased if the "do" history is lost. This is useful mostly for new nodes created for the "do" call. Do not use for resources. </description> </method> - <method name="add_undo_method" qualifiers="vararg"> + <method name="add_undo_method"> <return type="void" /> - <param index="0" name="object" type="Object" /> - <param index="1" name="method" type="StringName" /> + <param index="0" name="callable" type="Callable" /> <description> - Register a [param method] that will be called when the action is undone. + Register a [Callable] that will be called when the action is undone. </description> </method> <method name="add_undo_property"> |