Fixed bug where walk action initiated by ESC would never call finished().

Also removed call to inexisting function in ESCInventoryContainer.
This commit is contained in:
Julian Murgia
2021-01-28 13:32:14 +01:00
parent 14e85edba7
commit e6f4af74a8
51 changed files with 1515 additions and 35 deletions

View File

@@ -37,6 +37,3 @@ func remove_item(inventory_item : ESCInventoryItem):
remove_child(node_to_remove)
node_to_remove.queue_free()
func _on_gui_input(event : InputEvent, inventory_item : ESCInventoryItem):
if event is InputEventMouseButton and event.is_pressed():
inventory_item._on_inventory_item_pressed()

View File

@@ -35,6 +35,3 @@ func remove_item(inventory_item : ESCInventoryItem):
remove_child(node_to_remove)
node_to_remove.queue_free()
#func _on_gui_input(event : InputEvent, inventory_item : ESCInventoryItem):
# if event is InputEventMouseButton and event.is_pressed():
# inventory_item._on_inventory_item_pressed()