mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2025-01-30 18:39:18 +01:00
Fixed error when double clicking an item in the DemoPicker
This commit is contained in:
parent
ca1839c633
commit
6edec919e8
@ -19,6 +19,7 @@ This document lists new features, improvements, changes, and bug fixes in every
|
||||
|
||||
- Fixed `GSAIKinematicBody3DAgent` and `GSAIRigidBody3DAgent` trying to use `global_position` instead of `transform.origin`.
|
||||
- The `SeekFleeDemo`'s boundaries will now match the size of the screen.
|
||||
- Fixed error when double clicking an item in the DemoPicker.
|
||||
|
||||
## Godot Steering AI Framework 2.0.0 ##
|
||||
|
||||
|
@ -15,7 +15,7 @@ func _ready() -> void:
|
||||
# warning-ignore:return_value_discarded
|
||||
list.connect("demo_selected", self, "set_demo_path")
|
||||
# warning-ignore:return_value_discarded
|
||||
list.connect("item_activated", self, "emit_signal", ["demo_requested"])
|
||||
list.connect("item_activated", self, "_on_ItemList_item_activated")
|
||||
# warning-ignore:return_value_discarded
|
||||
button.connect("pressed", self, "emit_signal", ["demo_requested"])
|
||||
demo_path = list.file_paths[0]
|
||||
@ -23,3 +23,7 @@ func _ready() -> void:
|
||||
|
||||
func set_demo_path(value: String) -> void:
|
||||
demo_path = value
|
||||
|
||||
|
||||
func _on_ItemList_item_activated(_index: int) -> void:
|
||||
emit_signal("demo_requested")
|
||||
|
Loading…
Reference in New Issue
Block a user