diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2020-01-08 21:01:08 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2020-01-08 21:01:08 +0800 |
commit | 4293f76cf104027c7ded89fc6d3d0ce11a758fb0 (patch) | |
tree | 011a7b5d701d97ac511cd14b3803776549d15e31 | |
parent | ae21664655a16526b1a8e3e30f4e03d9a7c9c67c (diff) |
Emits meta_hover_ended when mouse exit RichTextLabel
-rw-r--r-- | scene/gui/rich_text_label.cpp | 8 |
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 |