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
|
|
@ -44,3 +44,15 @@ func _drop_data(at_position: Vector2, data: Variant) -> void:
|
|||
data.icon.show()
|
||||
update_ui()
|
||||
data.update_ui()
|
||||
|
||||
|
||||
func _on_mouse_entered() -> void:
|
||||
print("im real?")
|
||||
if item:
|
||||
Tooltip.show_tip(item.item_name)
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_mouse_exited() -> void:
|
||||
Tooltip.hide_tip()
|
||||
pass # Replace with function body.
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ expand_mode = 3
|
|||
stretch_mode = 4
|
||||
|
||||
[node name="Label" type="Label" parent="Icon"]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
|
|
@ -43,3 +44,6 @@ grow_vertical = 0
|
|||
text = "120 GB"
|
||||
label_settings = SubResource("LabelSettings_ab1u2")
|
||||
horizontal_alignment = 2
|
||||
|
||||
[connection signal="mouse_entered" from="." to="." method="_on_mouse_entered"]
|
||||
[connection signal="mouse_exited" from="." to="." method="_on_mouse_exited"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue