First you’re gonna want to prepare your custom control scene for the tooltip you want to show. In my case, for my game Yagazem Dungeons I want to show the player the stats of the perks they bought, so I’m just adding a rich text label inside of a margin container. Keep in mind that this scene will be a child of a Popup Panel so if you want to fairly easily change how that will look make your own custom theme and add a Popup Panel and create an empty style box for it so that is invisible. I’ll make mine black with reduced opacity. Once you have your custom scene make sure to save it somewhere and now go over to the node which will react to the mouse hover. You’re going to want to apply your theme to this node and then add a script to that node and override a virtual method called make_custom_tooltip, which takes one mandatory argument that will be of type string. Inside the method you want to instantiate your tooltip scene and configure it by getting the respective nodes. A better approach would be to attach a custom script to that tooltip and utilize encapsulation so that the parent node doesn’t need to know the specifics of the implementation and instead it would only propagate the string argument to its child. Lastly to change how quickly tooltips appear, you need to go into project settings and underneath GUI timers you’ll find Tooltip delay in seconds.
.
If you liked this tutorial I would really appreciate it if you leave a like in return. Also you can subscribe to this channel if you want to see more tutorials like this one. But anyhow, have a good one! ;)
.
Music from Youtube Library:
-Don't Fret - Quincas Moreira
.
.
.
.
.
.
How to make a tooltip in Godot tooltips godot tutorial how to tooltip easy tooltip godot Yagazem Dungeons
Watch video Easy Godot Tooltips Tutorial online without registration, duration hours minute second in high quality. This video was added by user CirilXD 02 July 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,64 once and liked it 5 people.