Deleted ESCHotspot (use ESCItem instead)

Moved duplicated movement code from ESCPlayer and ESCItem/ESCHotspot to its own script.
Added talking animations management.
Fixed bug: character was turning to last_direction after talking, if coming from another direction than speaking direction.
Continued removing unfree stuff.
This commit is contained in:
Julian Murgia
2021-01-12 23:05:23 +01:00
parent 933122f085
commit ff56816205
73 changed files with 1211 additions and 1652 deletions

View File

@@ -31,30 +31,6 @@ func _on_right_click_on_bg(position : Vector2):
##################################################################################
func _on_mouse_entered_hotspot(hotspot_global_id : String) -> void:
printt("Hotspot focused : ", hotspot_global_id)
is_hotspot_focused = true
escoria.main.current_scene.game.element_focused(hotspot_global_id)
func _on_mouse_exited_hotspot() -> void:
print("Hotspot unfocused")
is_hotspot_focused = false
escoria.main.current_scene.game.element_unfocused()
func _on_mouse_left_clicked_hotspot(hotspot_global_id : String, event : InputEvent) -> void:
printt("Hotspot left clicked", hotspot_global_id, event)
escoria.main.current_scene.game.left_click_on_hotspot(hotspot_global_id, event)
func _on_mouse_right_clicked_hotspot(hotspot_global_id : String, event : InputEvent) -> void:
printt("Hotspot right clicked", hotspot_global_id, event)
escoria.main.current_scene.game.right_click_on_hotspot(hotspot_global_id, event)
func _on_mouse_left_double_clicked_hotspot(hotspot_global_id : String, event : InputEvent) -> void:
printt("Hotspot right clicked", hotspot_global_id, event)
escoria.main.current_scene.game.left_double_click_on_hotspot(hotspot_global_id, event)
##################################################################################
func _on_mouse_left_click_inventory_item(inventory_item_global_id, event : InputEvent) -> void:
printt("Inventory item left clicked ", inventory_item_global_id)
escoria.main.current_scene.game.left_click_on_inventory_item(inventory_item_global_id, event)