Merge pull request #65449 from YuriSizov/editor-main-control-screen-container-node
Rename `EditorInterface.get_editor_main_control` to `get_editor_main_screen`
This commit is contained in:
commit
c1150428c6
21 changed files with 38 additions and 38 deletions
|
|
@ -1617,7 +1617,7 @@ void AssetLibraryEditorPlugin::make_visible(bool p_visible) {
|
|||
AssetLibraryEditorPlugin::AssetLibraryEditorPlugin() {
|
||||
addon_library = memnew(EditorAssetLibrary);
|
||||
addon_library->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
EditorNode::get_singleton()->get_main_control()->add_child(addon_library);
|
||||
EditorNode::get_singleton()->get_main_screen_control()->add_child(addon_library);
|
||||
addon_library->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
|
||||
addon_library->hide();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ void Camera3DEditorPlugin::make_visible(bool p_visible) {
|
|||
|
||||
Camera3DEditorPlugin::Camera3DEditorPlugin() {
|
||||
/* camera_editor = memnew( CameraEditor );
|
||||
EditorNode::get_singleton()->get_main_control()->add_child(camera_editor);
|
||||
EditorNode::get_singleton()->get_main_screen_control()->add_child(camera_editor);
|
||||
|
||||
camera_editor->set_anchor(SIDE_LEFT,Control::ANCHOR_END);
|
||||
camera_editor->set_anchor(SIDE_RIGHT,Control::ANCHOR_END);
|
||||
|
|
|
|||
|
|
@ -5459,7 +5459,7 @@ void CanvasItemEditorPlugin::set_state(const Dictionary &p_state) {
|
|||
CanvasItemEditorPlugin::CanvasItemEditorPlugin() {
|
||||
canvas_item_editor = memnew(CanvasItemEditor);
|
||||
canvas_item_editor->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
EditorNode::get_singleton()->get_main_control()->add_child(canvas_item_editor);
|
||||
EditorNode::get_singleton()->get_main_screen_control()->add_child(canvas_item_editor);
|
||||
canvas_item_editor->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
|
||||
canvas_item_editor->hide();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ void CPUParticles3DEditorPlugin::make_visible(bool p_visible) {
|
|||
|
||||
CPUParticles3DEditorPlugin::CPUParticles3DEditorPlugin() {
|
||||
particles_editor = memnew(CPUParticles3DEditor);
|
||||
EditorNode::get_singleton()->get_main_control()->add_child(particles_editor);
|
||||
EditorNode::get_singleton()->get_main_screen_control()->add_child(particles_editor);
|
||||
|
||||
particles_editor->hide();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -454,7 +454,7 @@ void GPUParticles3DEditorPlugin::make_visible(bool p_visible) {
|
|||
|
||||
GPUParticles3DEditorPlugin::GPUParticles3DEditorPlugin() {
|
||||
particles_editor = memnew(GPUParticles3DEditor);
|
||||
EditorNode::get_singleton()->get_main_control()->add_child(particles_editor);
|
||||
EditorNode::get_singleton()->get_main_screen_control()->add_child(particles_editor);
|
||||
|
||||
particles_editor->hide();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -567,7 +567,7 @@ void MeshInstance3DEditorPlugin::make_visible(bool p_visible) {
|
|||
|
||||
MeshInstance3DEditorPlugin::MeshInstance3DEditorPlugin() {
|
||||
mesh_editor = memnew(MeshInstance3DEditor);
|
||||
EditorNode::get_singleton()->get_main_control()->add_child(mesh_editor);
|
||||
EditorNode::get_singleton()->get_main_screen_control()->add_child(mesh_editor);
|
||||
|
||||
mesh_editor->options->hide();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -319,7 +319,7 @@ void MeshLibraryEditorPlugin::make_visible(bool p_visible) {
|
|||
MeshLibraryEditorPlugin::MeshLibraryEditorPlugin() {
|
||||
mesh_library_editor = memnew(MeshLibraryEditor);
|
||||
|
||||
EditorNode::get_singleton()->get_main_control()->add_child(mesh_library_editor);
|
||||
EditorNode::get_singleton()->get_main_screen_control()->add_child(mesh_library_editor);
|
||||
mesh_library_editor->set_anchors_and_offsets_preset(Control::PRESET_TOP_WIDE);
|
||||
mesh_library_editor->set_end(Point2(0, 22));
|
||||
mesh_library_editor->hide();
|
||||
|
|
|
|||
|
|
@ -379,7 +379,7 @@ void MultiMeshEditorPlugin::make_visible(bool p_visible) {
|
|||
|
||||
MultiMeshEditorPlugin::MultiMeshEditorPlugin() {
|
||||
multimesh_editor = memnew(MultiMeshEditor);
|
||||
EditorNode::get_singleton()->get_main_control()->add_child(multimesh_editor);
|
||||
EditorNode::get_singleton()->get_main_screen_control()->add_child(multimesh_editor);
|
||||
|
||||
multimesh_editor->options->hide();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8449,7 +8449,7 @@ void Node3DEditor::remove_gizmo_plugin(Ref<EditorNode3DGizmoPlugin> p_plugin) {
|
|||
Node3DEditorPlugin::Node3DEditorPlugin() {
|
||||
spatial_editor = memnew(Node3DEditor);
|
||||
spatial_editor->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
EditorNode::get_singleton()->get_main_control()->add_child(spatial_editor);
|
||||
EditorNode::get_singleton()->get_main_screen_control()->add_child(spatial_editor);
|
||||
|
||||
spatial_editor->hide();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4049,7 +4049,7 @@ void ScriptEditorPlugin::edited_scene_changed() {
|
|||
|
||||
ScriptEditorPlugin::ScriptEditorPlugin() {
|
||||
script_editor = memnew(ScriptEditor);
|
||||
EditorNode::get_singleton()->get_main_control()->add_child(script_editor);
|
||||
EditorNode::get_singleton()->get_main_screen_control()->add_child(script_editor);
|
||||
script_editor->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
|
||||
script_editor->hide();
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ void Skeleton2DEditorPlugin::make_visible(bool p_visible) {
|
|||
|
||||
Skeleton2DEditorPlugin::Skeleton2DEditorPlugin() {
|
||||
sprite_editor = memnew(Skeleton2DEditor);
|
||||
EditorNode::get_singleton()->get_main_control()->add_child(sprite_editor);
|
||||
EditorNode::get_singleton()->get_main_screen_control()->add_child(sprite_editor);
|
||||
make_visible(false);
|
||||
|
||||
//sprite_editor->options->hide();
|
||||
|
|
|
|||
|
|
@ -604,7 +604,7 @@ void Sprite2DEditorPlugin::make_visible(bool p_visible) {
|
|||
|
||||
Sprite2DEditorPlugin::Sprite2DEditorPlugin() {
|
||||
sprite_editor = memnew(Sprite2DEditor);
|
||||
EditorNode::get_singleton()->get_main_control()->add_child(sprite_editor);
|
||||
EditorNode::get_singleton()->get_main_screen_control()->add_child(sprite_editor);
|
||||
make_visible(false);
|
||||
|
||||
//sprite_editor->options->hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue