Fix errors with tooltip2

This commit is contained in:
2023-02-15 22:38:13 +01:00
parent c722bf5045
commit 9fab2eeacb

View File

@@ -241,7 +241,7 @@ func click_on_item(item_global_id: String, event: InputEvent, action: String) ->
true
)
if (action == ACTION1 && target_obj.tooltip_name != "") || (action == ACTION2 && target_obj.tooltip2_name != ""):
if (action == ACTION1 && target_obj.tooltip_name != "") || (action == ACTION2 && target_obj is ESCItemWithTooltip && target_obj.tooltip2_name != ""):
$tooltip_layer/tooltip.hide()
$tooltip_layer/tooltip2.hide()