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,7 +59,9 @@ esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/puerta_detras.esc"
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"]
@@ -81,7 +83,9 @@ esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/puerta_delante.esc"
is_exit = true
combine_when_selected_action_is_in = [ ]
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Salir de la cocina"
tooltips = {
"action1": "Salir de la cocina"
}
animations = null
[node name="puerta_delante_collision" type="CollisionPolygon2D" parent="puerta_delante"]
@@ -125,8 +129,10 @@ global_id = "cocina_fregadero_der"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/fregadero_der.esc"
combine_when_selected_action_is_in = [ ]
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Mirar fregadero"
action2_text = "Usar"
tooltips = {
"action1": "Mirar fregadero",
"action2": "Usar"
}
action3_target_texts = {
"turno_cocina_bol": "Llenar el bol de agua",
"turno_cocina_bol_lentejas": "Llenar el bol de agua"
@@ -148,8 +154,10 @@ global_id = "cocina_fregadero_izq"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/fregadero_izq.esc"
combine_when_selected_action_is_in = [ ]
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Mirar fregadero"
action2_text = "Usar"
tooltips = {
"action1": "Mirar fregadero",
"action2": "Usar"
}
action3_target_texts = {
"turno_cocina_bol": "Llenar el bol de agua",
"turno_cocina_bol_lentejas": "Llenar el bol de agua"
@@ -171,8 +179,10 @@ global_id = "cocina_debajo_sofa"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/debajo_sofa.esc"
combine_when_selected_action_is_in = [ "action4" ]
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Mirar debajo del sofa"
action2_text = "Meter la mano"
tooltips = {
"action1": "Mirar debajo del sofa",
"action2": "Meter la mano"
}
action3_target_texts = {
"turno_cocina_frontal": "Mirar denajo del sofa"
}