Files
gymkhana-actions/gymkhana/rooms/trasera_cocina/trasera_cocina.tscn
oier 2fdbdaaa6a unified tooltips as dictionary (#8)
## Changes
- From one variable for each tooltip to dictionary
- Should not break the game.

## How to test
- Run game
- In `cocina_delante` every tooltip yould appear as always.
- The rest of the rooms/items appear without tooltip.

## Side effects
- `set_tooltip` ESC command doesn't work untill `tooltip` is set to the in the new way. It changes the tooltip to every object without the new tooltip.
- Should be gone when we update every object.

Reviewed-on: gymkhana/gymkhana#8
Co-authored-by: oier <oierbravo@gmail.com>
Co-committed-by: oier <oierbravo@gmail.com>
2023-09-16 15:56:20 +02:00

154 lines
6.5 KiB
Plaintext

[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://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/items/inventory/turno_cocina_bol_inventario.tscn" type="PackedScene" id=8]
[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/items/inventory/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/items/inventory/caja_herramientas.tscn" type="PackedScene" id=31]
[ext_resource path="res://gymkhana/items/inventory/wrench.tscn" type="PackedScene" id=32]
[sub_resource type="NavigationPolygon" id=1]
vertices = PoolVector2Array( 155, 425, 129, 383, 242, 376, 1511, 445, 1512, 574, 193, 574, 1133, 474, 263, 374, 359, 376, 385, 397, 442, 395, 464, 432, 506, 457, 725, 472, 794, 462, 846, 467, 864, 482, 1318, 435, 1367, 411, 1425, 417, 749, 460, 584, 468, 1249, 454, 981, 480 )
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 ) ]
[node name="ESCRoom" type="Node2D"]
script = ExtResource( 1 )
global_id = "trasera_cocina"
esc_script = "res://gymkhana/rooms/trasera_cocina/esc/trasera_cocina.esc"
player_scene = ExtResource( 7 )
camera_limits = [ Rect2( 0, 0, 1500, 577 ) ]
editor_debug_mode = 1
[node name="ESCBackground" type="TextureRect" parent="."]
margin_right = 1500.0
margin_bottom = 755.0
mouse_filter = 2
texture = ExtResource( 6 )
script = ExtResource( 2 )
[node name="ESCTerrain" type="Navigation2D" parent="."]
script = ExtResource( 4 )
scales = ExtResource( 26 )
scale_min = 0.5
[node name="NavigationPolygonInstance" type="NavigationPolygonInstance" parent="ESCTerrain"]
navpoly = SubResource( 1 )
[node name="ESCLocation" type="Position2D" parent="."]
position = Vector2( 802, 470 )
script = ExtResource( 3 )
global_id = "trasera_cocina_start"
is_start_location = true
[node name="Hotspots" type="Node2D" parent="."]
[node name="entrada_cocina" type="Area2D" parent="Hotspots"]
pause_mode = 1
script = ExtResource( 28 )
global_id = "l_exit"
esc_script = "res://gymkhana/rooms/trasera_cocina/esc/entrada_cocina.esc"
is_exit = true
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
"action1": "Esto es una puerta y tiene una descripcion mu larga",
"action2": "Entrar! con descricion..."
}
action3_target_texts = {
"bombona2": "Usar la bombona con la puerta?"
}
action4_target_texts = {
"bombona2": "Lanzarla contra la puerta"
}
target_when_selected_action_is_in = [ "action3", "action4" ]
animations = null
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/entrada_cocina"]
position = Vector2( 725, -125 )
scale = Vector2( 0.963362, 0.9875 )
polygon = PoolVector2Array( 21, 575, 22, 331, 135, 339, 137, 581 )
[node name="Position2D" type="Position2D" parent="Hotspots/entrada_cocina"]
position = Vector2( 748, 465 )
script = ExtResource( 3 )
[node name="bombona" parent="Hotspots" instance=ExtResource( 27 )]
position = Vector2( 583, 414 )
script = ExtResource( 28 )
global_id = "bombona"
esc_script = "res://gymkhana/rooms/trasera_cocina/esc/bombona.esc"
tooltip_name = "Mirar bombona"
inventory_texture = ExtResource( 29 )
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Mirar bombona"
tooltips = {
"action1": "Mirar bombona"
}
animations = null
[node name="bombona2" parent="Hotspots" instance=ExtResource( 27 )]
position = Vector2( 355, 409 )
script = ExtResource( 28 )
global_id = "bombona2"
esc_script = "res://gymkhana/items/inventory/bombona2.esc"
inventory_texture = ExtResource( 29 )
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
"action1": "Mirar bombona",
"action2": "Coger bombona",
"action3": "Usar",
"action4": "¿Por qué es un dibujo animado?"
}
animations = null
[node name="Columna" type="Sprite" parent="."]
position = Vector2( 235, 294.5 )
scale = Vector2( 0.973684, 1.02358 )
z_index = 400
texture = ExtResource( 25 )
[node name="EnekoSmoking" parent="." instance=ExtResource( 30 )]
position = Vector2( 959, 413 )
tooltip_name = "Objervar sujeto"
dialog_color = Color( 0, 1, 0.462745, 1 )
tooltips = {
"action1": "Objervar sujeto",
"action2": "Hablar"
}
action3_target_texts = {
"bombona2": "Toma, un regalo",
"caja_herramientas": "Regalar"
}
target_when_selected_action_is_in = [ "action3" ]
selectable = true
[node name="ESCLocation" type="Position2D" parent="EnekoSmoking"]
position = Vector2( -169, 179 )
script = ExtResource( 3 )
global_id = "eneko_smoking"
[node name="caja_herramientas" parent="." instance=ExtResource( 31 )]
position = Vector2( 707, 422 )
combine_when_selected_action_is_in = PoolStringArray( )
[node name="wrench" parent="." instance=ExtResource( 32 )]
position = Vector2( 507, 522 )
combine_when_selected_action_is_in = PoolStringArray( )
[node name="ESCItemWithTooltip@ESCLocation" type="Position2D" parent="."]
position = Vector2( -51, 69 )
script = ExtResource( 3 )
global_id = "caja_herramientas"
[node name="turno_cocina_bol_inventario" parent="." instance=ExtResource( 8 )]
position = Vector2( 343, 479 )