0 votes

Yeah so I narrowed down the reason why tool tips do not render, it is because I set get_tree().paused = true. I already have set the parent node Pause Mode to Process.

Is there a way to fix this (get tool tips to show while tree is paused) ? I really do not want to write pause functionality myself since above works great otherwise.

Godot version 3.2.3.stable
related to an answer for: Tooltips do not display
in Engine by (87 points)

1 Answer

0 votes
Best answer

Tooltips simply can't show when paused since the nodes aren't processing input. Or anything else. If you want tooltips to show, then don't pause them. I don't see anything wrong with setting Pause Mode to process.

by (7,839 points)
selected by

I already have set the parent node Pause Mode to Process.

What do you mean ?

Edit oh you mean that its a glitch or something, and pause mode process should work ?

Okay, after some experimenting, it looks like the scene tree is the one that handles tooltips. So if you pause the scene tree, tooltips won't work. Try pausing a node lower in the hierarchy (pausing the node with the tooltip won't disable tooltips as long as the scene tree isn't paused).

Hmm, hopefully later version of Godot adds option for project settings to keep tool tips processing even when paused.

I do not think there is pause function for nodes, and settings parent nodes process to false does not seem to affect its childrens...

Therefore I wrote this ugly pause function:

for i in Game.scene.get_node("YSort").get_children():
    i.set_process(!pause)
    i.set_process_input(!pause)
    i.set_physics_process(!pause)
    i.set_process_internal(!pause)
    i.set_process_unhandled_input(!pause)
    i.set_process_unhandled_key_input(!pause)

This solved the tool tips issue atleast ! Thanks

You can just set a node's pause mode to stop to pause it.

I've found a pull request that solves this, but it was never merged. https://github.com/godotengine/godot/pull/43693

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.