This commit is contained in:
rendo 2026-04-24 12:07:46 +05:00
commit 21a4adf229
16 changed files with 136 additions and 24 deletions

12
ui/tooltip.gd Normal file
View file

@ -0,0 +1,12 @@
extends Control
func _process(delta: float) -> void:
global_position = get_global_mouse_position()
func set_text(text: String):
$Label.text = text
visible = true
func clear():
$Label.text = ""
visible = false

1
ui/tooltip.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://bu3exvpul8jhk

15
ui/tooltip.tscn Normal file
View file

@ -0,0 +1,15 @@
[gd_scene format=3 uid="uid://dtpy85f2ycbur"]
[ext_resource type="Script" uid="uid://bu3exvpul8jhk" path="res://ui/tooltip.gd" id="1_np3dp"]
[node name="Tooltip" type="PanelContainer" unique_id=246590363]
visible = false
offset_right = 1.0
offset_bottom = 23.0
size_flags_horizontal = 0
size_flags_vertical = 0
script = ExtResource("1_np3dp")
[node name="Label" type="Label" parent="." unique_id=1174493236]
layout_mode = 2
size_flags_horizontal = 0