Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RichTextLabel meta_hover_start and meta_hover_end don’t work along the margins. #31199

Closed
ghost opened this issue Aug 8, 2019 · 2 comments · Fixed by #34912
Closed

RichTextLabel meta_hover_start and meta_hover_end don’t work along the margins. #31199

ghost opened this issue Aug 8, 2019 · 2 comments · Fixed by #34912
Milestone

Comments

@ghost
Copy link

ghost commented Aug 8, 2019

Godot version:

ef05306

OS/device including version:

Win10 64bit

Issue description:

@willnationsdev Found this feature #12984, and it is exactly what I need, but I am having issues with it not signaling when the hover exits from the edges when the text is right along a margin.

issue

Steps to reproduce:

  1. Create a RichTextLabel with a URL BBCode tag around text that is along an edge or corner.
  2. Connect meta_hover_start and meta_hover_end signals.
  3. Move control away from the corner of the window.
  4. Run the project and move cursor in and out of the URL tagged text along an edge.

Minimal reproduction project:

3.1 RichTextLabel Meta Hover Issue.zip

@girng
Copy link

girng commented Aug 9, 2019

workaround is connecting a mouse_exited signal. but yeah. it's technically a bug within rtl
nice catch!

@ghost
Copy link
Author

ghost commented Aug 9, 2019

@girng Yeah, luckily that can be done. Also need to connect a mouse_enter, and use a flag to track the last meta signals. The state is frozen where it last was when going in or out.

My use case is for creating a tooltip inside of RTLs.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants