This commit is contained in:
Rendo 2026-01-30 11:39:09 +05:00
commit 2f2ac7c540
20 changed files with 218 additions and 30 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=15 format=4 uid="uid://bjxjcx2qu16q5"]
[gd_scene format=4 uid="uid://bjxjcx2qu16q5"]
[ext_resource type="Script" uid="uid://bjnv2g1ni0525" path="res://src/drag/draggable_object.gd" id="1_0xufn"]
[ext_resource type="Material" uid="uid://64m17act0kwu" path="res://assets/materials/mat_glass.tres" id="2_dbm1u"]
@ -68,22 +68,22 @@ bottom_radius = 0.772
radial_segments = 16
rings = 0
[node name="Flask" type="Area3D" node_paths=PackedStringArray("interactible") groups=["flask"]]
[node name="Flask" type="Area3D" unique_id=516093165 node_paths=PackedStringArray("interactible") groups=["flask"]]
collision_layer = 5
script = ExtResource("1_0xufn")
interactible = NodePath("Interactible")
mask = PackedStringArray("flask")
[node name="DragArea" type="CollisionShape3D" parent="."]
[node name="DragArea" type="CollisionShape3D" parent="." unique_id=1005865273]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
shape = SubResource("CapsuleShape3D_vcwhe")
[node name="Flash" type="MeshInstance3D" parent="."]
[node name="Flash" type="MeshInstance3D" parent="." unique_id=829971384]
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0.1, 0)
mesh = SubResource("ArrayMesh_nvewc")
skeleton = NodePath("")
[node name="FillLiquid" type="MeshInstance3D" parent="Flash"]
[node name="FillLiquid" type="MeshInstance3D" parent="Flash" unique_id=439339804]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.8061247, 0)
visible = false
material_override = SubResource("StandardMaterial3D_ailwx")
@ -91,7 +91,7 @@ mesh = SubResource("CylinderMesh_h7awq")
skeleton = NodePath("")
script = ExtResource("3_0xufn")
[node name="FillSolid" type="MeshInstance3D" parent="Flash"]
[node name="FillSolid" type="MeshInstance3D" parent="Flash" unique_id=390551675]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8061155, 0)
visible = false
material_override = SubResource("StandardMaterial3D_kkw7a")
@ -100,13 +100,13 @@ skeleton = NodePath("")
script = ExtResource("3_0xufn")
display_type = 1
[node name="Inventory" type="Node" parent="."]
[node name="Inventory" type="Node" parent="." unique_id=1748297338]
unique_name_in_owner = true
script = ExtResource("7_h7awq")
open_on_top = true
metadata/_custom_type_script = "uid://82ettbegollp"
[node name="Interactible" type="ConfirmationDialog" parent="."]
[node name="Interactible" type="ConfirmationDialog" parent="." unique_id=1877318778]
oversampling_override = 1.0
title = "Перелить вещество в колбе?"
position = Vector2i(0, 36)
@ -115,24 +115,24 @@ ok_button_text = "Перелить"
cancel_button_text = "Нет"
script = ExtResource("4_dbm1u")
[node name="HBoxContainer" type="HBoxContainer" parent="Interactible"]
[node name="HBoxContainer" type="HBoxContainer" parent="Interactible" unique_id=1430463296]
offset_left = 8.0
offset_top = 8.0
offset_right = 293.0
offset_bottom = 51.0
[node name="Label" type="Label" parent="Interactible/HBoxContainer"]
[node name="Label" type="Label" parent="Interactible/HBoxContainer" unique_id=578568523]
layout_mode = 2
text = "000%"
[node name="HSlider" type="HSlider" parent="Interactible/HBoxContainer"]
[node name="HSlider" type="HSlider" parent="Interactible/HBoxContainer" unique_id=1518009939]
layout_mode = 2
size_flags_horizontal = 3
max_value = 1.0
step = 0.01
value = 1.0
[node name="Interaction" type="Node" parent="Interactible"]
[node name="Interaction" type="Node" parent="Interactible" unique_id=703093826]
script = ExtResource("5_pmegg")
[connection signal="inventory_changed" from="Inventory" to="Flash/FillLiquid" method="update_material_unfiltered"]