Rename EditorInterface.get_editor_main_control
to get_editor_main_screen
#65449
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
So this rename, #44524, was a bad idea. The new name implies that this method returns some kind of main editor control, when in reality all it does is returns the control (or rather a
VBoxContainer
container) for hosting main screen plugins and tools.The rename refers to the documentation statements, but the documentation is actually incorrect and very misleading. The rename also refers to the old rename tracker where this was brought up, but in that tracker the name
main_control
was never suggested. The options weremain_container
andmain_screen
, with the latter being the consensus.So this PR re-renames the method to
get_editor_main_screen
, which is by far a better and more accurate name, with which both @Zylann and @aaronfranke agree. This name also matches the term we use in theEditorPlugin
API. It also fixes the docs. And it fixes the conversion tool rule which was set up for a completely wrong method. I've also named the node for ease of debugging the editor.PS. Tutorials in the online documentation also need updating, since the code there has been updated for 4.0 already (godotengine/godot-docs#5064).