rhetorical

This commit is contained in:
Rendo 2025-11-13 21:07:11 +05:00
commit 4525ab50ff
12 changed files with 138 additions and 2 deletions

View file

@ -1,6 +1,8 @@
[gd_scene load_steps=5 format=3 uid="uid://bjxjcx2qu16q5"]
[gd_scene load_steps=7 format=3 uid="uid://bjxjcx2qu16q5"]
[ext_resource type="Script" uid="uid://bjnv2g1ni0525" path="res://src/drag/draggable_object.gd" id="1_vcwhe"]
[ext_resource type="Script" uid="uid://ctu7escah5lo1" path="res://src/interactible/interaction_source.gd" id="2_627mb"]
[ext_resource type="Script" uid="uid://e8xu57ewvb5a" path="res://src/interactible/proximity_rotator.gd" id="3_00eeh"]
[sub_resource type="SphereShape3D" id="SphereShape3D_vcwhe"]
radius = 0.49570328
@ -21,9 +23,17 @@ script = ExtResource("1_vcwhe")
shape = SubResource("SphereShape3D_vcwhe")
[node name="InteractionArea" type="Area3D" parent="."]
script = ExtResource("2_627mb")
[node name="CollisionShape3D" type="CollisionShape3D" parent="InteractionArea"]
shape = SubResource("CapsuleShape3D_vcwhe")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("CylinderMesh_627mb")
[node name="ProximityRotator" type="Node" parent="."]
script = ExtResource("3_00eeh")
[connection signal="drag_ended" from="." to="InteractionArea" method="request_interaction"]
[connection signal="interaction_reciever_entered" from="InteractionArea" to="ProximityRotator" method="_on_interaction_area_interaction_reciever_entered"]
[connection signal="interaction_reciever_exited" from="InteractionArea" to="ProximityRotator" method="_on_interaction_area_interaction_reciever_exited"]

View file

@ -0,0 +1,20 @@
[gd_scene load_steps=4 format=3 uid="uid://q1y0r2rn0qb4"]
[ext_resource type="Script" uid="uid://mjx50qh1bwv3" path="res://src/interactible/interaction_reciever.gd" id="1_auicg"]
[sub_resource type="CylinderMesh" id="CylinderMesh_nql6a"]
height = 0.75
[sub_resource type="CylinderShape3D" id="CylinderShape3D_auicg"]
height = 1.0
radius = 0.75
[node name="InteractibleObject" type="Area3D"]
script = ExtResource("1_auicg")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("CylinderMesh_nql6a")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5867026, 0)
shape = SubResource("CylinderShape3D_auicg")

View file

@ -1,7 +1,9 @@
[gd_scene load_steps=4 format=3 uid="uid://c7r4rhgj3ucao"]
[gd_scene load_steps=6 format=3 uid="uid://c7r4rhgj3ucao"]
[ext_resource type="PackedScene" uid="uid://bjxjcx2qu16q5" path="res://scenes/draggable_object.tscn" id="1_bb6uc"]
[ext_resource type="Script" uid="uid://crjao0jjv5yqs" path="res://src/drag/draggable_camera.gd" id="1_hem3r"]
[ext_resource type="PackedScene" uid="uid://dfxlr4svnsdyx" path="res://scenes/ui.tscn" id="3_hflkp"]
[ext_resource type="PackedScene" uid="uid://q1y0r2rn0qb4" path="res://scenes/interactible_object.tscn" id="4_f680m"]
[sub_resource type="BoxMesh" id="BoxMesh_cbcd7"]
size = Vector3(3.535, 1, 1)
@ -20,3 +22,11 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.236948, 0.9448395, 0.00390
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.8403207, 0.5420896, 0, -0.5420896, 0.8403207, 0, 1.9293891, 0)
[node name="UI" type="CanvasLayer" parent="."]
layer = 100
[node name="UserInterface" parent="UI" instance=ExtResource("3_hflkp")]
[node name="InteractibleObject" parent="." instance=ExtResource("4_f680m")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.11957906, 0.7987209, 0.07669878)

22
scenes/ui.tscn Normal file
View file

@ -0,0 +1,22 @@
[gd_scene format=3 uid="uid://dfxlr4svnsdyx"]
[node name="UserInterface" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
metadata/_edit_lock_ = true
[node name="TabBar" type="TabBar" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 31.0
grow_horizontal = 2
deselect_enabled = true
tab_count = 2
tab_0/title = "Реагенты"
tab_1/title = "Отчёт"