Small fixes
This commit is contained in:
parent
1c7e6cf814
commit
1e3ed6a55d
11 changed files with 92 additions and 12 deletions
|
|
@ -2,17 +2,16 @@ extends GPUParticles3D
|
|||
|
||||
|
||||
@export var inventory: Inventory
|
||||
@export var particles: GPUParticles3D
|
||||
var tween: Tween
|
||||
|
||||
func _on_inventory_reacted_with_gasses(gasses: Array[RuntimeSubstanceData]) -> void:
|
||||
if tween:
|
||||
tween.kill()
|
||||
tween = create_tween()
|
||||
particles.emitting = true
|
||||
emitting = true
|
||||
tween.tween_interval(2.)
|
||||
tween.tween_callback(func():
|
||||
particles.emitting = false
|
||||
emitting = false
|
||||
for gas in gasses:
|
||||
inventory.extract_substance(gas.substance.get_formula(),gas.amount)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -76,17 +76,26 @@ bottom_radius = 0.772
|
|||
radial_segments = 16
|
||||
rings = 0
|
||||
|
||||
[sub_resource type="Curve" id="Curve_tvmew"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.8611111, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_aukgj"]
|
||||
curve = SubResource("Curve_tvmew")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_u7u8q"]
|
||||
emission_shape_scale = Vector3(0.755, 0.93, 0.755)
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 1.0
|
||||
gravity = Vector3(0, 1, 0)
|
||||
alpha_curve = SubResource("CurveTexture_aukgj")
|
||||
collision_mode = 1
|
||||
collision_friction = 0.0
|
||||
collision_bounce = 0.0
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_t5c10"]
|
||||
transparency = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_texture = ExtResource("6_rqua0")
|
||||
billboard_mode = 1
|
||||
|
||||
|
|
@ -127,16 +136,19 @@ script = ExtResource("3_0xufn")
|
|||
display_type = 1
|
||||
|
||||
[node name="GPUParticlesCollisionBox3D" type="GPUParticlesCollisionBox3D" parent="Flash" unique_id=330053589]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5932534, 0)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.593, 0)
|
||||
size = Vector3(2.7734375, 1.1738281, 3.2333984)
|
||||
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="Flash" unique_id=2054685714]
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="Flash" unique_id=2054685714 node_paths=PackedStringArray("inventory")]
|
||||
emitting = false
|
||||
amount = 16
|
||||
lifetime = 3.0
|
||||
speed_scale = 3.0
|
||||
local_coords = true
|
||||
process_material = SubResource("ParticleProcessMaterial_u7u8q")
|
||||
draw_pass_1 = SubResource("QuadMesh_iuc1c")
|
||||
script = ExtResource("7_wadb5")
|
||||
inventory = NodePath("../../Inventory")
|
||||
|
||||
[node name="Inventory" type="Node" parent="." unique_id=1748297338]
|
||||
unique_name_in_owner = true
|
||||
|
|
|
|||
|
|
@ -50,10 +50,14 @@ offset_bottom = 40.0
|
|||
[node name="ProgressBar" type="HSlider" parent="Interaction/HBoxContainer" unique_id=1037338095]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
max_value = 10.0
|
||||
step = 0.5
|
||||
allow_greater = true
|
||||
|
||||
[node name="SpinBox" type="SpinBox" parent="Interaction/HBoxContainer" unique_id=194740698]
|
||||
layout_mode = 2
|
||||
max_value = 10.0
|
||||
step = 0.5
|
||||
allow_greater = true
|
||||
suffix = "мл."
|
||||
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ grow_vertical = 2
|
|||
|
||||
[node name="TabBar" parent="HSplitContainer" unique_id=877427232 instance=ExtResource("1_p7vwb")]
|
||||
layout_mode = 2
|
||||
tab_count = 3
|
||||
tab_2/title = "Завершить отчёт"
|
||||
tab_3/title = "Очистить стол"
|
||||
|
||||
[node name="InspectorPanel" type="PanelContainer" parent="HSplitContainer" unique_id=918152974]
|
||||
layout_mode = 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue