summaryrefslogtreecommitdiff
path: root/scene/gui/rich_text_label.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-08 14:54:51 +0100
committerGitHub <noreply@github.com>2020-01-08 14:54:51 +0100
commitb942f488b287016e53aa286bf93939d17138f50f (patch)
tree011a7b5d701d97ac511cd14b3803776549d15e31 /scene/gui/rich_text_label.cpp
parentae21664655a16526b1a8e3e30f4e03d9a7c9c67c (diff)
parent4293f76cf104027c7ded89fc6d3d0ce11a758fb0 (diff)
Merge pull request #34912 from timothyqiu/mouse-exit
Emits meta_hover_ended when mouse exit RichTextLabel
Diffstat (limited to 'scene/gui/rich_text_label.cpp')
-rw-r--r--scene/gui/rich_text_label.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp
index 100c06955a..6c2928c65c 100644
--- a/scene/gui/rich_text_label.cpp
+++ b/scene/gui/rich_text_label.cpp
@@ -935,6 +935,14 @@ void RichTextLabel::_notification(int p_what) {
switch (p_what) {
+ case NOTIFICATION_MOUSE_EXIT: {
+ if (meta_hovering) {
+ meta_hovering = NULL;
+ emit_signal("meta_hover_ended", current_meta);
+ current_meta = false;
+ update();
+ }
+ } break;
case NOTIFICATION_RESIZED: {
main->first_invalid_line = 0; //invalidate ALL