tooltip rework

This commit is contained in:
2023-02-25 06:56:42 +01:00
parent 04474d5012
commit 0275c66a12
11 changed files with 204 additions and 109 deletions

View File

@@ -0,0 +1,2 @@
:ready
camera_set_target 0 player

View File

@@ -1,9 +1,10 @@
[gd_scene load_steps=15 format=2]
[gd_scene load_steps=17 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]
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_location.gd" type="Script" id=3]
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_terrain.gd" type="Script" id=4]
[ext_resource path="res://addons/escoria-core/game/core-scripts/resources/esc_animationresource.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://gymkhana/rooms/trasera_cocina/assets/columna.png" type="Texture" id=25]
@@ -19,6 +20,13 @@ vertices = PoolVector2Array( 155, 425, 129, 383, 242, 376, 1511, 445, 1512, 574,
polygons = [ PoolIntArray( 0, 1, 2 ), PoolIntArray( 3, 4, 5, 6 ), PoolIntArray( 5, 0, 2, 7, 8, 9 ), PoolIntArray( 9, 10, 11, 5 ), PoolIntArray( 5, 11, 12 ), PoolIntArray( 13, 14, 15, 16, 5 ), PoolIntArray( 17, 18, 19, 3 ), PoolIntArray( 13, 20, 14 ), PoolIntArray( 5, 12, 21 ), PoolIntArray( 22, 17, 3 ), PoolIntArray( 5, 21, 13 ), PoolIntArray( 6, 22, 3 ), PoolIntArray( 23, 6, 5 ), PoolIntArray( 5, 16, 23 ) ]
outlines = [ PoolVector2Array( 263, 374, 359, 376, 385, 397, 442, 395, 464, 432, 506, 457, 584, 468, 725, 472, 749, 460, 794, 462, 846, 467, 864, 482, 981, 480, 1133, 474, 1249, 454, 1318, 435, 1367, 411, 1425, 417, 1511, 445, 1512, 574, 193, 574, 155, 425, 129, 383, 242, 376 ) ]
[sub_resource type="Resource" id=2]
script = ExtResource( 5 )
dir_angles = [ ]
directions = [ ]
idles = [ ]
speaks = [ ]
[node name="ESCRoom" type="Node2D"]
script = ExtResource( 1 )
global_id = "trasera_cocina"
@@ -28,10 +36,8 @@ camera_limits = [ Rect2( 0, 0, 1500, 577 ) ]
editor_debug_mode = 1
[node name="ESCBackground" type="TextureRect" parent="."]
margin_left = 17.0
margin_top = 4.0
margin_right = 1517.0
margin_bottom = 581.0
margin_right = 1500.0
margin_bottom = 755.0
mouse_filter = 2
texture = ExtResource( 6 )
script = ExtResource( 2 )
@@ -45,7 +51,7 @@ scale_min = 0.5
navpoly = SubResource( 1 )
[node name="ESCLocation" type="Position2D" parent="."]
position = Vector2( 796, 480 )
position = Vector2( 802, 470 )
script = ExtResource( 3 )
global_id = "trasera_cocina_start"
is_start_location = true
@@ -61,11 +67,13 @@ is_exit = true
tooltip_name = "Esto es una puerta y tiene una descripcion mu larga"
combine_when_selected_action_is_in = [ ]
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Esto es una puerta y tiene una descripcion mu larga"
action2_text = "Entrar! con descricion..."
tooltip2_name = "Entrar! con descricion..."
animations = null
animations = SubResource( 2 )
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/entrada_cocina"]
position = Vector2( 740.494, -123.8 )
position = Vector2( 725, -125 )
scale = Vector2( 0.963362, 0.9875 )
polygon = PoolVector2Array( 21, 575, 22, 331, 135, 339, 137, 581 )
@@ -82,13 +90,15 @@ tooltip_name = "TT Mirar bombona"
combine_when_selected_action_is_in = [ ]
inventory_texture = ExtResource( 29 )
dialog_color = Color( 1, 1, 1, 1 )
tooltip2_name = "TT2 Coger bombona"
action1_text = "TT Mirar bombona"
action2_text = "TT2 Coger bombona"
action3_text = "¿Cómo ha entrado en mi bolsillo?"
action4_text = "¿Por qué es una llave inglesa?"
tooltip2_name = "TT2 Coger bombona"
animations = null
[node name="bombona2" parent="Hotspots" instance=ExtResource( 27 )]
position = Vector2( 357, 408 )
position = Vector2( 355, 409 )
script = ExtResource( 28 )
global_id = "i_bombona2"
esc_script = "res://gymkhana/rooms/trasera_cocina/esc/i_bombona2.esc"
@@ -97,30 +107,19 @@ combine_when_selected_action_is_in = [ "action1", "action3" ]
use_from_inventory_only = true
inventory_texture = ExtResource( 29 )
dialog_color = Color( 1, 1, 1, 1 )
tooltip2_name = "TT2 Coger bombona"
action1_text = "TT Mirar bombona"
action2_text = "TT2 Coger bombona"
action3_text = "Usar"
action4_text = "¿Por qué es una llave inglesa?"
tooltip2_name = "TT Mirar bombona"
animations = null
[node name="Columna" type="Sprite" parent="."]
position = Vector2( 253.25, 294.5 )
position = Vector2( 235, 294.5 )
scale = Vector2( 0.973684, 1.02358 )
z_index = 400
texture = ExtResource( 25 )
[node name="TextureRect" type="TextureRect" parent="."]
margin_left = 598.0
margin_top = 283.0
margin_right = 692.0
margin_bottom = 464.0
[node name="Area2D" type="Area2D" parent="."]
position = Vector2( 598, 283 )
[node name="TextureRect" type="TextureRect" parent="Area2D"]
margin_right = 40.0
margin_bottom = 40.0
[node name="EnekoSmoking" parent="." instance=ExtResource( 30 )]
position = Vector2( 959, 413 )
tooltip_name = "Objervar sujeto"
@@ -136,12 +135,14 @@ script = ExtResource( 3 )
global_id = "eneko_smoking"
[node name="ESCItemWithTooltip" parent="." instance=ExtResource( 31 )]
position = Vector2( 728, 424 )
position = Vector2( 707, 422 )
esc_script = "res://gymkhana/rooms/trasera_cocina/esc/i_caja_herramientas.esc"
tooltip_name = "¿Que es esto?"
tooltip2_name = "Coger"
action1_text = "¿Que es esto?"
action2_text = "Coger"
action3_text = "Mirar dentro"
action4_text = "Usar"
tooltip2_name = "Coger"
[node name="ESCLocation" type="Position2D" parent="ESCItemWithTooltip"]
position = Vector2( -51, 69 )