Moved I_Bombona to gymkhana/items/inventory

This commit is contained in:
2023-02-15 23:16:29 +01:00
parent 9fab2eeacb
commit bbe4b2c92f
6 changed files with 51 additions and 39 deletions

View File

@@ -2,4 +2,6 @@
say player "Es naranja"
:action2
say player "Pesa demasiado!"
say player "Voy a cogerla"
inventory_add I_Bombona
set_active I_Bombona false

View File

@@ -26,9 +26,7 @@
[ext_resource path="res://gymkhana/rooms/trasera_cocina/assets/eneko-anim/unscreen-008.png" type="Texture" id=24]
[ext_resource path="res://gymkhana/rooms/trasera_cocina/assets/columna.png" type="Texture" id=25]
[ext_resource path="res://gymkhana/rooms/trasera_cocina/assets/background trasera cocina-pix-height.png" type="Texture" id=26]
[ext_resource path="res://gymkhana/addons/escoria-ui-return-monkey-island/item.gd" type="Script" id=27]
[ext_resource path="res://gymkhana/addons/escoria-ui-return-monkey-island/tooltip-reworked/tooltip-action2.tscn" type="PackedScene" id=28]
[ext_resource path="res://gymkhana/addons/escoria-ui-return-monkey-island/tooltip-reworked/tooltip-action1.tscn" type="PackedScene" id=29]
[ext_resource path="res://gymkhana/items/inventory/I_Bombona.tscn" type="PackedScene" id=27]
[sub_resource type="SpriteFrames" id=2]
animations = [ {
@@ -143,36 +141,8 @@ offset = Vector2( -0.09375, 20.0582 )
margin_right = 40.0
margin_bottom = 40.0
[node name="I_Bombona" type="Area2D" parent="."]
pause_mode = 1
position = Vector2( 557, 408 )
script = ExtResource( 27 )
global_id = "i_bombona"
esc_script = "res://gymkhana/rooms/trasera_cocina/esc/i_bombona.esc"
default_action = "action1"
combine_when_selected_action_is_in = [ ]
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Mirar bombona"
action2_text = "Coger bombona"
animations = null
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="I_Bombona"]
polygon = PoolVector2Array( -13, -19, -14, -3, -15, 30, -4, 34, 10, 32, 20, 29, 22, 16, 22, -6, 21, -19, 12, -28, 1, -28 )
[node name="action1" parent="I_Bombona" instance=ExtResource( 29 )]
position = Vector2( -53, -48 )
[node name="action2" parent="I_Bombona" instance=ExtResource( 28 )]
position = Vector2( -13, 51 )
[node name="ESCLocation" type="Position2D" parent="I_Bombona"]
position = Vector2( -65, 57 )
script = ExtResource( 3 )
[node name="bombona" parent="Hotspots" instance=ExtResource( 27 )]
[connection signal="mouse_entered" from="TextureRect" to="Area2D/CollisionPolygon2D" method="_on_TextureRect_mouse_entered"]
[connection signal="mouse_entered" from="Area2D" to="Area2D/CollisionPolygon2D" method="_on_Area2D_mouse_entered"]
[connection signal="mouse_exited" from="Area2D" to="Area2D/CollisionPolygon2D" method="_on_Area2D_mouse_exited"]
[connection signal="mouse_entered" from="I_Bombona" to="I_Bombona/action1" method="_on_ESCItemWithTooltip_mouse_entered"]
[connection signal="mouse_entered" from="I_Bombona" to="I_Bombona/action2" method="_on_ESCItemWithTooltip_mouse_entered"]
[connection signal="mouse_exited" from="I_Bombona" to="I_Bombona/action1" method="_on_ESCItemWithTooltip_mouse_exited"]
[connection signal="mouse_exited" from="I_Bombona" to="I_Bombona/action2" method="_on_ESCItemWithTooltip_mouse_exited"]