-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
BeginTooltipEx and disallowed focus navigation. #1294
Comments
Nicolas,
I'm not sure I understand the details of your post. Could you clarify what you mean and what you want? Are you suggesting that |
Sorry for being unclear. To display the tooltip is fine, or i would just not call the code for it. What i am talking about is the window navigation cycle system ( hold square/X + LB/RB in your default setup ). When the tooltip is just an informative text, it feels wrong to have the navigation selection frame able to show on it, the tooltip should not be a valid target. The argument to BeginTooltip i desire is to let it set ImGuiWindowFlags_NoNavFocus to prevent that. |
Oh, I see! So it becomes a very simple problem, because tooltips are not meant to be interacted with, this should be the default. (as they follow the mouse cursor you typically cannot interact with them at all). Will add it now. |
Should be fixed now. Let me know if it works for you! |
Fixed. |
Hi,
Currently, the navigation branch navigation focus can pick any drawn tooltip, but in the case of a mere informative text display, it feels wrong.
Sadly, BeginTooltip is parameter less, there is no such things like SetNextWindowFlags and ImGuiWindowFlags_Tooltip is marked private ( to call Begin with the proper flags of a tooltip in addition to the extra navigation flags i need )
It looks like the other need you were looking for arise :
// Not exposed publicly as BeginTooltip() because bool parameters are evil. Let's see if other needs arise first.
static void BeginTooltipEx(bool override_previous_tooltip)
The text was updated successfully, but these errors were encountered: