8000 widget/tooltip: Check if the parent Visibility before rendering by xescugc · Pull Request #178 · ebitenui/ebitenui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

widget/tooltip: Check if the parent Visibility before rendering #178

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

Merged
merged 1 commit into from
Sep 21, 2024

Conversation

xescugc
Copy link
Contributor
@xescugc xescugc commented Sep 10, 2024

Ok so this makes the example I wrote work, but I would like @mcarpenter622 to take a deeper look just to check if it's actually accurate or I missed something else totally.

I'll check if this works on my game as it has much more complex ToolTips.

Closes #177

@xescugc
Copy link
Contributor Author
xescugc commented Sep 10, 2024

I've changed the implementation as the one I had did not work for more complex examples (my game) so the current one works and makes much more sense :).

I'll check later for the #162 as I think it's the same so I'll be opening a new PR for that if it's the case.

@xescugc
Copy link
Contributor Author
xescugc commented Sep 10, 2024

This last commit uses the new function in places in which that same logic was repeated, though the function checks parents and the other places did not I think it fits.

If not I can just remove the commit :)

So we do not render ToolTips of hidden parents
@mcarpenter622 mcarpenter622 merged commit cfb03ff into ebitenui:master Sep 21, 2024
1 of 2 checks passed
@xescugc xescugc deleted the fg-tooltip-fix branch September 23, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Tooltip keeps bgging present after Visibility_Hide of a parent container
2 participants
0