Easy Godot Tooltips Tutorial

Поділитися
Вставка
  • Опубліковано 5 лют 2025
  • 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 UA-cam Library:
    -Don't Fret - Quincas Moreira
    .
    .
    .
    .
    .
    .
    How to make a tooltip in Godot tooltips godot tutorial how to tooltip easy tooltip godot Yagazem Dungeons

КОМЕНТАРІ • 6

  • @ElementalKnight1
    @ElementalKnight1 2 місяці тому +1

    Thanks! So many Godot tooltip-making tutorials out there are about how to make your own from scratch, without using the virtual function to override existing behavior - basically, rebuilding tooltip functionality from scratch. This is much more in line with what I wanted to do, and i feel like I learned a lot from doing it.
    (Definitely had to watch it a few times, and then do one more go-through pausing every few seconds. But that's okay! I appreciate you respecting my time.)

  • @danielbarlow1453
    @danielbarlow1453 7 місяців тому +8

    Not sure who your target audience is... I did like an idea i had seen but it would've been nice to have some context on setup, node setup, organization, a little code including how you would have referenced the tooltip data - externally, resource, etc.

  • @GianlucaGini
    @GianlucaGini 2 місяці тому +1

    were you in a rush? =)

  • @morganp7238
    @morganp7238 6 місяців тому +1

    that's good, thank you.

  • @RyanGamedev
    @RyanGamedev 4 місяці тому

    Please teach how to make a skill system that changes according to its "element", like a Devil Fruit from One Piece that changes its skill according to its fruit, because I'm recreating the Blox Fruits. 😊😊 For example, if you press the "z", "v", "c" and "x" keys on the keyboard with a certain "fruit" they are skills and when you "eat another fruit" these skills change, teach me please😊😊

  • @mehrzad734
    @mehrzad734 5 місяців тому +4

    Too fast 🥹 elaborate more