mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Rename EditorInterface.get_editor_main_control to get_editor_main_screen
This commit is contained in:
parent
432c4c40a9
commit
1459507ed2
21 changed files with 38 additions and 38 deletions
|
|
@ -60,11 +60,10 @@
|
|||
Returns the edited (current) scene's root [Node].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_editor_main_control">
|
||||
<return type="Control" />
|
||||
<method name="get_editor_main_screen">
|
||||
<return type="VBoxContainer" />
|
||||
<description>
|
||||
Returns the main editor control. Use this as a parent for main screens.
|
||||
[b]Note:[/b] This returns the main editor control containing the whole editor, not the 2D or 3D viewports specifically.
|
||||
Returns the editor control responsible for main screen plugins and tools. Use it with plugins that implement [method EditorPlugin._has_main_screen].
|
||||
[b]Warning:[/b] Removing and freeing this node will render a part of the editor useless and may cause a crash.
|
||||
</description>
|
||||
</method>
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@
|
|||
|
||||
func _enter_tree():
|
||||
plugin_control = preload("my_plugin_control.tscn").instantiate()
|
||||
get_editor_interface().get_editor_main_control().add_child(plugin_control)
|
||||
get_editor_interface().get_editor_main_screen().add_child(plugin_control)
|
||||
plugin_control.hide()
|
||||
|
||||
func _has_main_screen():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue