Tooltip
This commit is contained in:
parent
d4b50bdda0
commit
21a4adf229
16 changed files with 136 additions and 24 deletions
12
ui/tooltip.gd
Normal file
12
ui/tooltip.gd
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue