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>
This commit is contained in:
2023-09-16 15:56:20 +02:00
committed by Oier Bravo
parent ef82e45e10
commit 2fdbdaaa6a
28 changed files with 212 additions and 121 deletions

View File

@@ -59,8 +59,10 @@ 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 )
action1_text = "Esto es una puerta y tiene una descripcion mu larga"
action2_text = "Entrar! con descricion..."
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?"
}
@@ -88,6 +90,9 @@ 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 )]
@@ -97,10 +102,12 @@ global_id = "bombona2"
esc_script = "res://gymkhana/items/inventory/bombona2.esc"
inventory_texture = ExtResource( 29 )
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Mirar bombona"
action2_text = "Coger bombona"
action3_text = "Usar"
action4_text = "¿Por qué es un dibujo animado?"
tooltips = {
"action1": "Mirar bombona",
"action2": "Coger bombona",
"action3": "Usar",
"action4": "¿Por qué es un dibujo animado?"
}
animations = null
[node name="Columna" type="Sprite" parent="."]
@@ -113,8 +120,10 @@ texture = ExtResource( 25 )
position = Vector2( 959, 413 )
tooltip_name = "Objervar sujeto"
dialog_color = Color( 0, 1, 0.462745, 1 )
action1_text = "Objervar sujeto"
action2_text = "Hablar"
tooltips = {
"action1": "Objervar sujeto",
"action2": "Hablar"
}
action3_target_texts = {
"bombona2": "Toma, un regalo",
"caja_herramientas": "Regalar"