diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 8e876d94a98..f979fd2a140 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -144,6 +144,11 @@ void FindReplaceBar::_notification(int p_what) { _update_toggle_replace_button(replace_text->is_visible_in_tree()); } break; + case NOTIFICATION_LAYOUT_DIRECTION_CHANGED: + case NOTIFICATION_TRANSLATION_CHANGED: { + _update_toggle_replace_button(replace_text->is_visible_in_tree()); + } break; + case NOTIFICATION_VISIBILITY_CHANGED: { set_process_input(is_visible_in_tree()); } break; @@ -1649,6 +1654,13 @@ void CodeTextEditor::_notification(int p_what) { _update_text_editor_theme(); } break; + case NOTIFICATION_LAYOUT_DIRECTION_CHANGED: + case NOTIFICATION_TRANSLATION_CHANGED: { + if (toggle_scripts_button->is_visible()) { + update_toggle_scripts_button(); + } + } break; + case NOTIFICATION_VISIBILITY_CHANGED: { if (toggle_scripts_button->is_visible()) { update_toggle_scripts_button(); diff --git a/editor/editor_dock_manager.cpp b/editor/editor_dock_manager.cpp index 32ab261204e..308301eaf3e 100644 --- a/editor/editor_dock_manager.cpp +++ b/editor/editor_dock_manager.cpp @@ -856,6 +856,8 @@ EditorDockManager::EditorDockManager() { void DockContextPopup::_notification(int p_what) { switch (p_what) { + case Control::NOTIFICATION_LAYOUT_DIRECTION_CHANGED: + case NOTIFICATION_TRANSLATION_CHANGED: case NOTIFICATION_THEME_CHANGED: { if (make_float_button) { make_float_button->set_button_icon(get_editor_theme_icon(SNAME("MakeFloating"))); diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index c6397c98c78..2712eb51b69 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -3236,6 +3236,8 @@ void EditorHelp::_notification(int p_what) { update_toggle_scripts_button(); } break; + case NOTIFICATION_LAYOUT_DIRECTION_CHANGED: + case NOTIFICATION_TRANSLATION_CHANGED: case NOTIFICATION_VISIBILITY_CHANGED: { update_toggle_scripts_button(); } break; diff --git a/editor/gui/editor_scene_tabs.cpp b/editor/gui/editor_scene_tabs.cpp index e8d487f276e..01343c334d7 100644 --- a/editor/gui/editor_scene_tabs.cpp +++ b/editor/gui/editor_scene_tabs.cpp @@ -67,6 +67,11 @@ void EditorSceneTabs::_notification(int p_what) { _scene_tabs_resized(); } } break; + + case NOTIFICATION_LAYOUT_DIRECTION_CHANGED: + case NOTIFICATION_TRANSLATION_CHANGED: { + _scene_tabs_resized(); + } break; } } diff --git a/editor/gui/editor_spin_slider.cpp b/editor/gui/editor_spin_slider.cpp index 5461c9b8773..e68e3dcc9f4 100644 --- a/editor/gui/editor_spin_slider.cpp +++ b/editor/gui/editor_spin_slider.cpp @@ -457,6 +457,8 @@ void EditorSpinSlider::_notification(int p_what) { _update_value_input_stylebox(); } break; + case NOTIFICATION_LAYOUT_DIRECTION_CHANGED: + case NOTIFICATION_TRANSLATION_CHANGED: case NOTIFICATION_THEME_CHANGED: { _update_value_input_stylebox(); } break; diff --git a/editor/plugins/control_editor_plugin.cpp b/editor/plugins/control_editor_plugin.cpp index 93a6a85214e..55d2ba196fc 100644 --- a/editor/plugins/control_editor_plugin.cpp +++ b/editor/plugins/control_editor_plugin.cpp @@ -104,7 +104,8 @@ void ControlPositioningWarning::gui_input(const Ref &p_event) { void ControlPositioningWarning::_notification(int p_notification) { switch (p_notification) { - case NOTIFICATION_ENTER_TREE: + case NOTIFICATION_LAYOUT_DIRECTION_CHANGED: + case NOTIFICATION_TRANSLATION_CHANGED: case NOTIFICATION_THEME_CHANGED: _update_warning(); _update_toggler(); diff --git a/editor/plugins/sprite_frames_editor_plugin.cpp b/editor/plugins/sprite_frames_editor_plugin.cpp index c3526052085..13adc83095a 100644 --- a/editor/plugins/sprite_frames_editor_plugin.cpp +++ b/editor/plugins/sprite_frames_editor_plugin.cpp @@ -672,6 +672,11 @@ void SpriteFramesEditor::_notification(int p_what) { _update_show_settings(); } break; + case NOTIFICATION_LAYOUT_DIRECTION_CHANGED: + case NOTIFICATION_TRANSLATION_CHANGED: { + _update_show_settings(); + } break; + case NOTIFICATION_READY: { add_theme_constant_override("autohide", 1); // Fixes the dragger always showing up. } break;