mirror of
https://github.com/godotengine/godot.git
synced 2025-04-01 00:41:35 +08:00
Merge pull request #104703 from bruvzg/loc_dir_icons
Fix updating editor icons on translation change.
This commit is contained in:
commit
fd02ff8d02
@ -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();
|
||||
|
@ -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")));
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -104,7 +104,8 @@ void ControlPositioningWarning::gui_input(const Ref<InputEvent> &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();
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user