diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2024-10-17 09:15:25 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2024-10-25 16:13:45 +0800 |
commit | 6424b201e2afa8efab30fd0cb0acc153255f1bd0 (patch) | |
tree | f73e55d82701f95487c5720e500579b2f1949c8d /scene | |
parent | 78a4e634f08b8d2e6825695dad45abc11792fa6f (diff) | |
download | redot-engine-6424b201e2afa8efab30fd0cb0acc153255f1bd0.tar.gz |
Don't override auto translate mode of custom tooltip
Diffstat (limited to 'scene')
-rw-r--r-- | scene/main/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 8755d5f51e..54f66e8d4e 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1478,12 +1478,12 @@ void Viewport::_gui_show_tooltip() { gui.tooltip_label = memnew(Label); gui.tooltip_label->set_theme_type_variation(SNAME("TooltipLabel")); gui.tooltip_label->set_text(gui.tooltip_text); + gui.tooltip_label->set_auto_translate_mode(tooltip_owner->get_tooltip_auto_translate_mode()); base_tooltip = gui.tooltip_label; panel->connect(SceneStringName(mouse_entered), callable_mp(this, &Viewport::_gui_cancel_tooltip)); } base_tooltip->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT); - base_tooltip->set_auto_translate_mode(tooltip_owner->get_tooltip_auto_translate_mode()); panel->set_transient(true); panel->set_flag(Window::FLAG_NO_FOCUS, true); |