Easy Tooltips
A lightweight Tooltip system for Godot 4.7+
Attach a TooltipTrigger node under any Control node to get a tooltip panel with title / body / footer / custom rich content. Supports 9-point alignment, screen overflow handling, mouse following, keyboard focus triggering, pinning, and content nesting
Features
- Separation of content and style:
TooltipTriggerhandles content, whileTooltipTemplatehandles appearance. You can customize the template to change the look. - Easy configuration: Global default settings + per-trigger overrides (
INHERIT). - Robust display: 9-point alignment, screen edge flipping / clamping, mouse following.
- Trigger modes: Mouse hover, keyboard focus, or both.
- Content support: Supports instantiating scenes as child content of the Tooltip.
- Customizable animations: Default open/close animations (fade in with scale / fade out with shrink) can be replaced via public methods in the global
EasyTooltipsscript. Animations can be globally toggled usingenable_animation. - High performance: Panels are automatically destroyed when hidden, leaving no orphaned nodes.
Quick Start
- Copy
addons/easy_tooltips/to theaddons/directory of your project. - Enable Easy Tooltips in "Project Settings → Plugins". The plugin will automatically add the
EasyTooltipsAutoload and theeasy_tooltips_pininput action. If the editor does not load the Autoload/input action immediately, simply restart the editor. - Add a
TooltipTriggernode under the host node (which must inherit fromControl) to use it. - Fill in the properties in the Inspector or update them dynamically via code.
- Run. The host defaults to the parent node, but can also be manually specified in the
hostproperty.
Animations
Example of custom animation:
func _ready() -> void:
var fade_in := func(tooltip: TooltipTemplate) -> Tween:
tooltip.modulate.a = 0.0
var tween := tooltip.create_tween()
tween.tween_property(tooltip, "modulate:a", 1.0, 0.2)
return tween
EasyTooltips.set_open_animation(fade_in)
Custom Content
TooltipTrigger.contents is an Array[PackedScene]. Every time it is displayed, each scene is instantiated once and mounted under the template's content_holder; different Tooltips do not affect each other.
In the editor, simply drag the .tscn file into the contents array.
Custom Templates
Just ensure the root node is TooltipTemplate; everything else can be customized.
| Property | Required | Description |
|---|---|---|
title_label |
Yes | Title RichTextLabel |
body_label |
No | Body RichTextLabel |
content_holder |
Yes | Parent container for custom content (its child nodes can only be interacted with after pinning) |
footer_label |
Yes | Footer RichTextLabel |
title_separator |
No | Title separator line, automatically hidden when the title is empty |
pin_icon |
No | Icon node displayed when pinned |
The panel will call setup() to populate text and content after being added to the scene tree. Subclasses can override when_empty() for additional processing.
Examples
The plugin provides an example scene. You can open addons/easy_tooltips/examples/examples.tscn and run it to see the effects.
License
Copyright (c) 2026 Suzuran28
Changelog for version v1.0.0
2026-11-11 01:44:53
No changelog provided for this version.