Picked observer, global observer

This commit is contained in:
2025-09-14 04:44:12 +02:00
parent 5e1d88c333
commit f41fc361b8
28 changed files with 183 additions and 103 deletions

View File

@@ -1,18 +1,17 @@
[gd_scene load_steps=3 format=3 uid="uid://84h4l81cuwdv"]
[gd_scene load_steps=4 format=3 uid="uid://84h4l81cuwdv"]
[ext_resource type="Script" uid="uid://ceym82rf2qnxu" path="res://addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://cueb8gkqhbads" path="res://gymkhana/items/inventory/assets/turno_cocina_ajo.png" id="2"]
[ext_resource type="Script" uid="uid://bh55kesnba2x4" path="res://addons/escoria-ui-return-monkey-island/item_components/ESCItemComponentGlobalObserver.gd" id="6_fo2yn"]
[ext_resource type="Texture2D" uid="uid://c47biotravims" path="res://gymkhana/items/inventory/assets/turno_cocina_ajo.png" id="2"]
[ext_resource type="Script" uid="uid://cde2xhhd2twx4" path="res://addons/escoria-ui-return-monkey-island/item_components/ESCItemComponentPickedObserver.gd" id="3_snubi"]
[node name="turno_cocina_ajo" type="Area2D"]
process_mode = 1
script = ExtResource("1")
global_id = "turno_cocina_ajo"
esc_script = "res://gymkhana/items/inventory/turno_cocina_ajo.esc"
combine_when_selected_action_is_in = ["action4"]
combine_when_selected_action_is_in = PackedStringArray("action4")
inventory_texture = ExtResource("2")
dialog_color = Color(1, 1, 1, 1)
inventory_texture_hovered = ExtResource("2")
custom_data = {
"tooltips": {
"action1": "tooltip_turno_cocina_ajo_action1",
@@ -20,7 +19,6 @@ custom_data = {
"action4": "tooltip_common_use"
}
}
animations = null
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(0.101548, 0.101548)
@@ -29,8 +27,6 @@ texture = ExtResource("2")
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
polygon = PackedVector2Array(-7, -6, 7, -6, 7, 6, -7, 6)
[node name="ESCItemComponentGlobalBooleanObserver" type="Node" parent="."]
script = ExtResource("6_fo2yn")
targeted_global_variable = "turno_cocina_ingrediente_ajo_cogido"
inverted = true
metadata/_custom_type_script = "uid://bh55kesnba2x4"
[node name="ESCItemComponentPickedObserver" type="Node" parent="."]
script = ExtResource("3_snubi")
metadata/_custom_type_script = "uid://cde2xhhd2twx4"