small fixes
This commit is contained in:
parent
49b09b9bb8
commit
1c7e6cf814
9 changed files with 102 additions and 3 deletions
65
scenes/substance_jar_alt.tscn
Normal file
65
scenes/substance_jar_alt.tscn
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
[gd_scene format=3 uid="uid://t432slq7xiyg"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bjnv2g1ni0525" path="res://src/drag/draggable_object.gd" id="1_ojiag"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://b5bxc1qinl3gw" path="res://assets/meshes/Drip_Cylinder.res" id="2_ojiag"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://5aw6ifbhbmu4" path="res://assets/meshes/Drip_Cylinder_001.res" id="3_kbrga"]
|
||||
[ext_resource type="Script" uid="uid://c8epd7gguvyop" path="res://src/substance_holder.gd" id="4_bxvcb"]
|
||||
[ext_resource type="Script" uid="uid://bl0ojhc0thk1p" path="res://src/interactible/interactible.gd" id="5_mhyp3"]
|
||||
[ext_resource type="Script" uid="uid://bhnptwotw5bs8" path="res://src/interactible/substance_jar_interaction.gd" id="6_p0fvg"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_pcpcb"]
|
||||
resource_local_to_scene = true
|
||||
transparency = 1
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_kfk5m"]
|
||||
height = 0.6569824
|
||||
radius = 0.32421875
|
||||
|
||||
[node name="SubstanceJar" type="Area3D" unique_id=904812958 node_paths=PackedStringArray("interactible")]
|
||||
collision_layer = 5
|
||||
script = ExtResource("1_ojiag")
|
||||
interactible = NodePath("Interaction")
|
||||
mask = PackedStringArray("flask")
|
||||
|
||||
[node name="Jar" type="MeshInstance3D" parent="." unique_id=985146813]
|
||||
transform = Transform3D(0.14479385, 0.13796644, 0, -0.13796644, 0.14479385, 0, 0, 0, 0.2, 0.022179853, 0.41104287, 0)
|
||||
mesh = ExtResource("2_ojiag")
|
||||
|
||||
[node name="JarFill" type="MeshInstance3D" parent="." unique_id=1364277535]
|
||||
transform = Transform3D(0.14479385, 0.13796644, 0, -0.13796644, 0.14479385, 0, 0, 0, 0.2, 0.050798316, 0.33528638, 0)
|
||||
material_override = SubResource("StandardMaterial3D_pcpcb")
|
||||
mesh = ExtResource("3_kbrga")
|
||||
|
||||
[node name="DragArea" type="CollisionShape3D" parent="." unique_id=960002167]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3272705, 0)
|
||||
shape = SubResource("CylinderShape3D_kfk5m")
|
||||
|
||||
[node name="SubstanceData" type="Node" parent="." unique_id=1379108671]
|
||||
script = ExtResource("4_bxvcb")
|
||||
|
||||
[node name="Interaction" type="ConfirmationDialog" parent="." unique_id=1225848265]
|
||||
title = "Добавить вещество?"
|
||||
ok_button_text = "Добавить"
|
||||
cancel_button_text = "Не добавлять"
|
||||
script = ExtResource("5_mhyp3")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="Interaction" unique_id=1504866588]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="ProgressBar" type="HSlider" parent="Interaction/HBoxContainer" unique_id=1037338095]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
allow_greater = true
|
||||
|
||||
[node name="SpinBox" type="SpinBox" parent="Interaction/HBoxContainer" unique_id=194740698]
|
||||
layout_mode = 2
|
||||
allow_greater = true
|
||||
suffix = "мл."
|
||||
|
||||
[node name="Interaction" type="Node" parent="Interaction" unique_id=729724369]
|
||||
script = ExtResource("6_p0fvg")
|
||||
|
||||
[connection signal="interacted" from="Interaction" to="Interaction/Interaction" method="_on_interaction_interacted"]
|
||||
[connection signal="value_changed" from="Interaction/HBoxContainer/ProgressBar" to="Interaction/Interaction" method="_on_progress_bar_value_changed"]
|
||||
[connection signal="value_changed" from="Interaction/HBoxContainer/SpinBox" to="Interaction/Interaction" method="_on_spin_box_value_changed"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue