Reset cursor on event done

This commit is contained in:
eneko committed 2023-02-17 00:26:17 +01:00
1 parent a83e5f2778
commit bf66988190
2 files changed
+5 -2

No files matched your search

@@ -389,8 +389,11 @@ func update_tooltip_following_mouse_position(tooltip: Object):
func _on_event_done(return_code: int, _event_name: String):
if return_code == ESCExecution.RC_OK:
escoria.action_manager.clear_current_action()
# Show tooltips, they were hiddeen while performing action
$tooltip_layer/tooltip.show()
$tooltip_layer/tooltip2.show()
# Reset mouse cursor to (perhaps we were using an inventory item)
Input.set_custom_mouse_cursor(null)
func _on_MenuButton_pressed() -> void:
@@ -63,7 +63,7 @@ script = ExtResource( 2 )
position = Vector2( 1476, 363 )
scale = Vector2( 0.634168, 0.634168 )
frames = SubResource( 2 )
frame = 5
frame = 12
playing = true
flip_h = true
@@ -71,7 +71,7 @@ flip_h = true
position = Vector2( 1018, 333 )
scale = Vector2( 0.867751, 0.867751 )
frames = SubResource( 2 )
frame = 4
frame = 11
playing = true
offset = Vector2( -0.09375, 20.0582 )