custom tooltip working except for not shrinking
This commit is contained in:
parent
270dd2a6f6
commit
aa81f860b5
6 changed files with 72 additions and 18 deletions
10
tooltip.gd
10
tooltip.gd
|
|
@ -9,4 +9,12 @@ func _ready() -> void:
|
|||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
global_position = get_global_mouse_position() + Vector2(1,1)
|
||||
global_position = get_global_mouse_position() + Vector2(12,-6)
|
||||
|
||||
func show_tip(text : String):
|
||||
tooltip_label.text = text
|
||||
show()
|
||||
|
||||
func hide_tip():
|
||||
hide()
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue