## 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>
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://gymkhana/addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd" type="Script" id=1]
|
|
[ext_resource path="res://gymkhana/items/inventory/assets/caja-herramientas.png" type="Texture" id=2]
|
|
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_location.gd" type="Script" id=3]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 22.5, 12.5 )
|
|
|
|
[node name="caja_herramientas" type="Area2D"]
|
|
pause_mode = 1
|
|
script = ExtResource( 1 )
|
|
global_id = "caja_herramientas"
|
|
esc_script = "res://gymkhana/items/inventory/caja_herramientas.esc"
|
|
combine_when_selected_action_is_in = [ "action4" ]
|
|
inventory_texture = ExtResource( 2 )
|
|
dialog_color = Color( 1, 1, 1, 1 )
|
|
tooltips = {
|
|
"action1": "¿Que es esto?",
|
|
"action2": "Coger",
|
|
"action3": "Mirar dentro",
|
|
"action4": "Usar"
|
|
}
|
|
action3_target_texts = {
|
|
"wrench": "Guardarla en la caja"
|
|
}
|
|
target_when_selected_action_is_in = [ "action3" ]
|
|
animations = null
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
position = Vector2( -2, 0 )
|
|
scale = Vector2( 0.5, 0.5 )
|
|
texture = ExtResource( 2 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2( -1.5, -0.5 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="ESCLocation" type="Position2D" parent="."]
|
|
position = Vector2( -51, 69 )
|
|
script = ExtResource( 3 )
|