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

Show tooltips normally when the scene tree is paused #29365

Closed
wants to merge 2 commits into from
Closed

Show tooltips normally when the scene tree is paused #29365

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jun 1, 2019

Tooltips are managed on the root viewport's NOTIFICATION_INTERNAL_PROCESS. The root viewport has a PAUSE_MODE_INHERIT by default, preventing tooltips from being shown when the scene tree is paused.

This PR adds a new pause mode, PAUSE_MODE_SELF_PROCESS. that allows a node to process without affecting children behavior, and sets the root viewport to it.

Beside this fix, the mode may also be useful in some other cases. For example, when using content provided by third parties, or dealing with existing codebases that rely on the exact tree structure.

Fixes #29362

toasteater added 2 commits June 1, 2019 05:34
This pause mode allows a node to process without affecting children behavior.
It can be useful when dealing with uncontrolled content (e.g. root viewport),
or existing codebases that rely on the exact tree structure.
Tooltips are managed on the root viewport's NOTIFICATION_INTERNAL_PROCESS. The
root viewport has a PAUSE_MODE_INHERIT by default, preventing tooltips from
being shown when the scene tree is paused.

This sets the root viewport to PAUSE_MODE_SELF_PROCESS, which allows it to
show tooltips while paused, without affecting children behavior.
@ghost
Copy link
Author

ghost commented Sep 4, 2019

Closing because I don't intend to continue working on this PR.

@ghost ghost closed this Sep 4, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tooltips are not shown when the scene tree is paused.
1 participant