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

@@ -44,7 +44,9 @@ esc_script = "res://gymkhana/rooms/turno_cocina/cocina_delante/esc/puerta_cocina
is_exit = true
combine_when_selected_action_is_in = [ ]
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Entrar en la cocina"
tooltips = {
"action1": "Entrar en la cocina"
}
animations = null
[node name="puerta_cocina_collision" type="CollisionPolygon2D" parent="puerta_cocina"]
@@ -65,7 +67,9 @@ esc_script = "res://gymkhana/rooms/turno_cocina/cocina_delante/esc/puerta_despen
is_exit = true
combine_when_selected_action_is_in = [ ]
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Bajar a la despensa"
tooltips = {
"action1": "Bajar a la despensa"
}
animations = null
[node name="puerta_despensa_collision" type="CollisionPolygon2D" parent="puerta_despensa"]
@@ -86,7 +90,9 @@ esc_script = "res://gymkhana/rooms/turno_cocina/cocina_delante/esc/puerta_detras
is_exit = true
combine_when_selected_action_is_in = [ ]
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Ir detrás"
tooltips = {
"action1": "Ir detrás"
}
animations = null
[node name="puerta_detras_collision" type="CollisionPolygon2D" parent="puerta_detras"]
@@ -101,10 +107,11 @@ global_id = "puerta_detras_start"
[node name="EnekoSmoking" parent="." instance=ExtResource( 8 )]
position = Vector2( 813, 440 )
tooltip_name = "Objervar sujeto"
dialog_color = Color( 0, 1, 0.462745, 1 )
action1_text = "Objervar sujeto"
action2_text = "Hablar"
tooltips = {
"action1": "Observar sujeto",
"action2": "Hablar"
}
action3_target_texts = {
"bombona2": "Toma, un regalo",
"caja_herramientas": "Regalar"