From df3d2b25d8088e3475fe868683501e74b5baa065 Mon Sep 17 00:00:00 2001 From: Franklin Sobrinho Date: Mon, 15 Aug 2016 14:52:03 -0300 Subject: [PATCH] Update EditorPlugin doc (cherry picked from commit a27d2e4c291975f4a5e9fabe89501584e33a3326) --- doc/base/classes.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index f53484a1117..06101580b43 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -11495,6 +11495,13 @@ Get the undo/redo object. Most actions in the editor can be undoable, so use this object to make sure this happens when it's worth it. + + + + + Get the GUI layout of the plugin. This is used to save the project's editor layout when the [method EditorPlugin.queue_save_layout] is called or the editor layout was changed(For example changing the position of a dock). + + @@ -11519,6 +11526,11 @@ Remember that you have to manage the visibility of all your editor controls manually. + + + Queue save the project's editor layout. + + @@ -11554,6 +11566,11 @@ Remove the import plugin, don't forget to call this on exit. + + + This method is called after the editor save the project or when the it's closed. It asks the plugin to save edited external scenes/resources. + + @@ -11561,6 +11578,13 @@ Restore the state saved by [method EditorPlugin.get_state]. + + + + + Restore the plugin GUI layout saved by [method EditorPlugin.get_window_layout]. + +