Reset cursor on event done
This commit is contained in:
@@ -389,8 +389,11 @@ func update_tooltip_following_mouse_position(tooltip: Object):
|
|||||||
func _on_event_done(return_code: int, _event_name: String):
|
func _on_event_done(return_code: int, _event_name: String):
|
||||||
if return_code == ESCExecution.RC_OK:
|
if return_code == ESCExecution.RC_OK:
|
||||||
escoria.action_manager.clear_current_action()
|
escoria.action_manager.clear_current_action()
|
||||||
|
# Show tooltips, they were hiddeen while performing action
|
||||||
$tooltip_layer/tooltip.show()
|
$tooltip_layer/tooltip.show()
|
||||||
$tooltip_layer/tooltip2.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:
|
func _on_MenuButton_pressed() -> void:
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ script = ExtResource( 2 )
|
|||||||
position = Vector2( 1476, 363 )
|
position = Vector2( 1476, 363 )
|
||||||
scale = Vector2( 0.634168, 0.634168 )
|
scale = Vector2( 0.634168, 0.634168 )
|
||||||
frames = SubResource( 2 )
|
frames = SubResource( 2 )
|
||||||
frame = 5
|
frame = 12
|
||||||
playing = true
|
playing = true
|
||||||
flip_h = true
|
flip_h = true
|
||||||
|
|
||||||
@@ -71,7 +71,7 @@ flip_h = true
|
|||||||
position = Vector2( 1018, 333 )
|
position = Vector2( 1018, 333 )
|
||||||
scale = Vector2( 0.867751, 0.867751 )
|
scale = Vector2( 0.867751, 0.867751 )
|
||||||
frames = SubResource( 2 )
|
frames = SubResource( 2 )
|
||||||
frame = 4
|
frame = 11
|
||||||
playing = true
|
playing = true
|
||||||
offset = Vector2( -0.09375, 20.0582 )
|
offset = Vector2( -0.09375, 20.0582 )
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user