Specify global tooltip scene in the project settings. #12343
theDapperRaven
started this conversation in
GUI
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The basic tooltip for controls, while decent, is kind of bare. Godot has _make_custom_tooltip to solve this, which lets you make your own custom tooltip. This works great for most games, where all your card scenes have a plain Control to make the tooltip and all that rot, but for something like an app, where your button needs a tooltip, your slider needs a tooltip, and your tree needs a tooltip, it is very annoying to have to attach a script to every one of your control nodes just to implement _make_custom_tooltip individually for each of them.
I propose a global tooltip scene in the project settings, that lets you specify a scene to use for all tooltips.
If _make_custom_tooltip is not overwritten, godot will use this scene to create the tooltip.
The only restriction would be that the root node needs to have a property called "text" so the tooltip can actually be filled in you know. If your root doesn't have a "text" property, just add one in a script. Done!
I hope this isn't too selfish of a suggestion, (it might only benefit me) but I'm sure that at least one other individual would find this useful!
Beta Was this translation helpful? Give feedback.
All reactions