tooltips and ui

This commit was merged in pull request #42.
This commit is contained in:
2026-07-02 20:57:06 +00:00
parent c296531214
commit 15f38c096b
91 changed files with 2105 additions and 556 deletions

21
core/tooltips/tooltip.gd Normal file
View File

@@ -0,0 +1,21 @@
@tool
extends HBoxContainer
@export var image: Texture:
set(value):
image = value
if is_inside_tree() and has_node("%Texture"):
$%Texture.texture = image
@export var text: String:
set(value):
text = value
if is_inside_tree() and has_node("%Label"):
$%Label.text = text
func _ready():
if image != null and has_node("%Texture"):
$%Texture.texture = image
if is_inside_tree() and has_node("%Label"):
$%Label.text = text