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

@@ -43,7 +43,9 @@ global_id = "cocina_detras_puerta_cocina"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina_detras/esc/puerta_cocina.esc"
is_exit = true
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"]
@@ -63,7 +65,9 @@ global_id = "cocina_detras_puerta_delante"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina_detras/esc/puerta_delante.esc"
is_exit = true
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Ir delante"
tooltips = {
"action1": "Ir delante"
}
animations = null
[node name="puerta_delante_collision" type="CollisionPolygon2D" parent="puerta_delante"]