Recreate lidia controls with Node2D
This commit is contained in:
parent
f3d38c7569
commit
821072eae5
23 changed files with 433 additions and 35 deletions
47
project/instruments/instruments.tscn
Normal file
47
project/instruments/instruments.tscn
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://cis4s43ubuynp"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://01bmfj4wthwg" path="res://instruments.gd" id="1_wlkep"]
|
||||
[ext_resource type="PackedScene" uid="uid://bgkpwebqksth5" path="res://instruments/controls.tscn" id="2_372d7"]
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_nowl7"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_8lpkn"]
|
||||
viewport_path = NodePath("SubViewport")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_h5at3"]
|
||||
resource_local_to_scene = true
|
||||
albedo_texture = SubResource("ViewportTexture_8lpkn")
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_h5at3"]
|
||||
viewport_path = NodePath("SubViewport2")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8lpkn"]
|
||||
resource_local_to_scene = true
|
||||
albedo_texture = SubResource("ViewportTexture_h5at3")
|
||||
|
||||
[node name="Instruments" type="Node3D"]
|
||||
script = ExtResource("1_wlkep")
|
||||
lidia_hostname = "192.168.1.2"
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="."]
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="SubViewport"]
|
||||
offset_right = 512.0
|
||||
offset_bottom = 512.0
|
||||
expand_mode = 5
|
||||
|
||||
[node name="Quad" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, -0.35, 0, 0)
|
||||
mesh = SubResource("QuadMesh_nowl7")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_h5at3")
|
||||
|
||||
[node name="SubViewport2" type="SubViewport" parent="."]
|
||||
|
||||
[node name="Controls" parent="SubViewport2" instance=ExtResource("2_372d7")]
|
||||
|
||||
[node name="Quad2" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(0.6, 0, 0, 0, 0.6, 0, 0, 0, 0.6, 0.425, 0, 0)
|
||||
mesh = SubResource("QuadMesh_nowl7")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_8lpkn")
|
||||
|
||||
[node name="CEF" type="GDCef" parent="."]
|
||||
Loading…
Add table
Add a link
Reference in a new issue