Player with tooltips

This commit is contained in:
2023-02-24 19:28:52 +01:00
parent 8e72e44a4c
commit 825d38636a
12 changed files with 274 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=34 format=2]
[gd_scene load_steps=33 format=2]
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_room.gd" type="Script" id=1]
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_background.gd" type="Script" id=2]
@@ -7,7 +7,6 @@
[ext_resource path="res://gymkhana/rooms/trasera_cocina/HoverStartAnimation.gd" type="Script" id=5]
[ext_resource path="res://gymkhana/rooms/trasera_cocina/assets/background trasera cocina-1500x577-noItems.jpg" type="Texture" id=6]
[ext_resource path="res://gymkhana/characters/oier/oier.tscn" type="PackedScene" id=7]
[ext_resource path="res://game/items/inventory/wrench.png" type="Texture" id=8]
[ext_resource path="res://gymkhana/rooms/trasera_cocina/assets/eneko-anim/unscreen-014.png" type="Texture" id=9]
[ext_resource path="res://gymkhana/rooms/trasera_cocina/assets/eneko-anim/unscreen-011.png" type="Texture" id=10]
[ext_resource path="res://gymkhana/rooms/trasera_cocina/assets/eneko-anim/unscreen-002.png" type="Texture" id=11]
@@ -29,7 +28,7 @@
[ext_resource path="res://gymkhana/items/inventory/I_Bombona.tscn" type="PackedScene" id=27]
[ext_resource path="res://gymkhana/addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd" type="Script" id=28]
[ext_resource path="res://gymkhana/items/inventory/assets/bombona-inv.png" type="Texture" id=29]
[ext_resource path="res://gymkhana/characters/eneko/eneko-smoking.tscn" type="PackedScene" id=30]
[ext_resource path="res://gymkhana/characters/eneko/eneko_smoking.tscn" type="PackedScene" id=30]
[ext_resource path="res://gymkhana/items/inventory/I_caja_herramientas.tscn" type="PackedScene" id=31]
[sub_resource type="SpriteFrames" id=2]
@@ -66,6 +65,7 @@ script = ExtResource( 2 )
position = Vector2( 1154, 358 )
scale = Vector2( 0.867751, 0.867751 )
frames = SubResource( 2 )
frame = 11
playing = true
offset = Vector2( -0.09375, 20.0582 )
@@ -164,17 +164,29 @@ margin_right = 40.0
margin_bottom = 40.0
[node name="EnekoSmoking" parent="." instance=ExtResource( 30 )]
position = Vector2( 961, 382 )
is_movable = true
position = Vector2( 962, 375 )
tooltip_name = "Objervar sujeto"
dialog_color = Color( 0, 1, 0.462745, 1 )
action1_text = "Objervar sujeto"
action2_text = "Hablar"
tooltip2_name = "Hablar"
selectable = true
[node name="ESCLocation" type="Position2D" parent="EnekoSmoking"]
position = Vector2( -111, 102 )
position = Vector2( -124, 124 )
script = ExtResource( 3 )
global_id = "eneko_smoking"
[node name="ESCItemWithTooltip" parent="." instance=ExtResource( 31 )]
position = Vector2( 728, 424 )
esc_script = "res://gymkhana/rooms/trasera_cocina/esc/i_caja_herramientas.esc"
tooltip_name = "¿Que es esto?"
tooltip2_name = "Coger"
[node name="ESCLocation" type="Position2D" parent="ESCItemWithTooltip"]
position = Vector2( -51, 69 )
script = ExtResource( 3 )
global_id = "caja_herramientas"
[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"]