Smoke on the water. Closes #38

This commit is contained in:
2024-02-10 20:22:40 +01:00
parent 8f9e8680b3
commit 396db338cf
12 changed files with 75 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -0,0 +1,8 @@
extends Node
func _process(delta: float):
if(escoria.globals_manager.get_global("turno_cocina_economica_encendida") == true):
self.visible = true
else:
self.visible = false

View File

@@ -0,0 +1,8 @@
extends Node
func _process(delta: float):
if escoria.globals_manager.get_global("turno_cocina_economica_encendida") and not escoria.globals_manager.get_global("turno_cocina_economica_con_olla"):
self.visible = true
else:
self.visible = false

View File

@@ -1,8 +1,10 @@
[gd_scene load_steps=4 format=2]
[gd_scene load_steps=6 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/turno_cocina_olla_inv_con_agua.png" type="Texture" id=2]
[ext_resource path="res://gymkhana/items/inventory/assets/turno_cocina_olla.png" type="Texture" id=3]
[ext_resource path="res://gymkhana/particles/SmokeParticles.tscn" type="PackedScene" id=4]
[ext_resource path="res://gymkhana/items/inventory/scripts/turno_cocina_olla_llena_economica_encendida_observer.gd" type="Script" id=5]
[node name="turno_cocina_olla_llena" type="Area2D"]
pause_mode = 1
@@ -21,9 +23,9 @@ tooltips = {
action3_target_texts = {
"turno_cocina_ajo": "Echar en la olla.",
"turno_cocina_bol_lentejas": "Echar en la olla.",
"turno_cocina_madera": "Meter leña en la económica",
"turno_cocina_patata": "Echar en la olla.",
"turno_cocina_romero": "Echar en la olla.",
"turno_cocina_madera": "Meter leña en la económica"
"turno_cocina_romero": "Echar en la olla."
}
target_when_selected_action_is_in = [ "action3" ]
animations = null
@@ -33,3 +35,6 @@ texture = ExtResource( 3 )
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
polygon = PoolVector2Array( -59, 25, -59, 47, -35, 56, 7, 58, 54, 52, 55, -13, 61, -50, 35, -60, -18, -60, -62, -54 )
[node name="SmokeParticles" parent="." instance=ExtResource( 4 )]
script = ExtResource( 5 )

View File

@@ -0,0 +1,5 @@
:observe
> [!turno_cocina_economica_encendida]
custom turno_cocina_olla_llena SmokeParticles hidden
> [turno_cocina_economica_encendida]
custom turno_cocina_olla_llena SmokeParticles hidden