immersive-home/app/content/ui/components/slider/slider.tscn

91 lines
3.1 KiB
Plaintext
Raw Normal View History

2024-04-23 23:11:18 +03:00
[gd_scene load_steps=9 format=3 uid="uid://pk5k1q8bx0rj"]
2023-11-29 01:16:25 +02:00
[ext_resource type="Script" path="res://content/ui/components/slider/slider.gd" id="1_ylune"]
2024-04-23 23:11:18 +03:00
[ext_resource type="Shader" path="res://assets/materials/glass.gdshader" id="2_by0d8"]
2023-11-29 01:16:25 +02:00
[sub_resource type="BoxShape3D" id="BoxShape3D_h1mn1"]
2024-04-23 23:11:18 +03:00
resource_local_to_scene = true
size = Vector3(0.15, 0.02, 0.01)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_vgpd3"]
resource_local_to_scene = true
render_priority = -2
shader = ExtResource("2_by0d8")
shader_parameter/color = Color(1, 1, 1, 0.3)
shader_parameter/border_color = Color(1, 1, 1, 1)
shader_parameter/edge_color = Color(0, 0, 0, 1)
shader_parameter/size = Vector2(1.5, 0.2)
shader_parameter/border_size = 0.005
shader_parameter/border_fade_in = 0.04
shader_parameter/border_fade_out = 0.0
shader_parameter/corner_radius = 0.12
shader_parameter/roughness = 0.3
shader_parameter/grain_amount = 0.02
[sub_resource type="QuadMesh" id="QuadMesh_k78f4"]
resource_local_to_scene = true
size = Vector2(0.15, 0.02)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mv0la"]
resource_local_to_scene = true
render_priority = -1
shader = ExtResource("2_by0d8")
shader_parameter/color = Color(1, 1, 1, 0.3)
shader_parameter/border_color = Color(1, 1, 1, 1)
shader_parameter/edge_color = Color(0, 0, 0, 1)
shader_parameter/size = Vector2(0.15, 0.15)
shader_parameter/border_size = 0.002
shader_parameter/border_fade_in = 0.02
shader_parameter/border_fade_out = 0.0
shader_parameter/corner_radius = 0.085
shader_parameter/roughness = 0.3
shader_parameter/grain_amount = 0.02
[sub_resource type="QuadMesh" id="QuadMesh_vw14o"]
resource_local_to_scene = true
size = Vector2(0.015, 0.015)
2023-11-29 01:16:25 +02:00
2024-03-21 17:35:27 +02:00
[sub_resource type="BoxShape3D" id="BoxShape3D_s64dk"]
2024-04-23 23:11:18 +03:00
resource_local_to_scene = true
size = Vector3(0.15, 0.02, 0.01)
2024-03-21 17:35:27 +02:00
2023-11-29 01:16:25 +02:00
[node name="Slider" type="Node3D"]
script = ExtResource("1_ylune")
2024-04-23 23:11:18 +03:00
show_label = true
size = Vector3(0.15, 0.02, 0.01)
2023-11-29 01:16:25 +02:00
2024-04-23 23:11:18 +03:00
[node name="Body" type="StaticBody3D" parent="."]
2024-03-21 17:19:09 +02:00
collision_layer = 6
collision_mask = 6
2023-11-29 01:16:25 +02:00
2024-04-23 23:11:18 +03:00
[node name="CollisionShape3D" type="CollisionShape3D" parent="Body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.005)
2023-11-29 01:16:25 +02:00
shape = SubResource("BoxShape3D_h1mn1")
2024-04-23 23:11:18 +03:00
[node name="MeshInstance3D" type="MeshInstance3D" parent="Body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.01)
material_override = SubResource("ShaderMaterial_vgpd3")
mesh = SubResource("QuadMesh_k78f4")
2023-11-29 01:16:25 +02:00
[node name="Label" type="Label3D" parent="."]
2024-04-23 23:11:18 +03:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.08, 0, 0.01)
2023-11-29 01:16:25 +02:00
pixel_size = 0.001
2024-03-21 17:19:09 +02:00
text = "0.2 "
2023-11-29 01:16:25 +02:00
font_size = 10
outline_size = 4
horizontal_alignment = 0
2024-03-21 17:35:27 +02:00
2024-04-23 23:11:18 +03:00
[node name="Knob" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.039, 0, 0.012)
material_override = SubResource("ShaderMaterial_mv0la")
mesh = SubResource("QuadMesh_vw14o")
skeleton = NodePath("../Body")
2024-03-21 17:35:27 +02:00
[node name="Area3D" type="Area3D" parent="."]
collision_layer = 4
collision_mask = 4
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
2024-04-23 23:11:18 +03:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.015)
2024-03-21 17:35:27 +02:00
shape = SubResource("BoxShape3D_s64dk")