WIP: PFD instrument
This commit is contained in:
parent
4be36eb39e
commit
740a72bcb6
23 changed files with 432 additions and 32 deletions
103
project/instruments/pfd.tscn
Normal file
103
project/instruments/pfd.tscn
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://b26tu6wb2h3ce"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://colp4xsovikmv" path="res://instruments/pfd-background.png" id="1_inkqg"]
|
||||
[ext_resource type="Script" uid="uid://368tfiyen071" path="res://instruments/pfd.gd" id="1_t02it"]
|
||||
[ext_resource type="Texture2D" uid="uid://c5nbrnus8pcyd" path="res://instruments/horizon-mask.png" id="2_t02it"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxdfrv8bovdai" path="res://instruments/horizon.png" id="3_kwqn1"]
|
||||
[ext_resource type="Texture2D" uid="uid://b703lu8yhaoav" path="res://instruments/horizon-overlay.png" id="4_1vq1p"]
|
||||
[ext_resource type="Texture2D" uid="uid://c36kaqyfalb2v" path="res://instruments/heading-ticks.png" id="5_3w2cf"]
|
||||
[ext_resource type="FontFile" uid="uid://chqgmpsthpbgt" path="res://instruments/RobotoMono-Regular.ttf" id="6_wtx4e"]
|
||||
[ext_resource type="Texture2D" uid="uid://toojp8r3424r" path="res://instruments/pfd-ref.png" id="7_86xjv"]
|
||||
|
||||
[node name="PFD" type="Node2D"]
|
||||
script = ExtResource("1_t02it")
|
||||
|
||||
[node name="Background" type="Sprite2D" parent="."]
|
||||
position = Vector2(512, 512)
|
||||
texture = ExtResource("1_inkqg")
|
||||
|
||||
[node name="HorizonMask" type="Sprite2D" parent="."]
|
||||
clip_children = 1
|
||||
position = Vector2(512, 512)
|
||||
texture = ExtResource("2_t02it")
|
||||
|
||||
[node name="HorizonOrigin" type="Node2D" parent="HorizonMask"]
|
||||
position = Vector2(-82, -244)
|
||||
|
||||
[node name="Pivot" type="Node2D" parent="HorizonMask/HorizonOrigin"]
|
||||
|
||||
[node name="Background" type="Sprite2D" parent="HorizonMask/HorizonOrigin/Pivot"]
|
||||
texture = ExtResource("3_kwqn1")
|
||||
|
||||
[node name="RollArrowContour" type="Polygon2D" parent="HorizonMask/HorizonOrigin/Pivot"]
|
||||
position = Vector2(-430, -267)
|
||||
color = Color(0, 0, 0, 1)
|
||||
polygon = PackedVector2Array(430, 70, 416, 92, 444, 92)
|
||||
|
||||
[node name="RollArrowFill" type="Polygon2D" parent="HorizonMask/HorizonOrigin/Pivot"]
|
||||
position = Vector2(-430, -267)
|
||||
polygon = PackedVector2Array(430, 74, 420, 90, 440, 90)
|
||||
|
||||
[node name="Overlay" type="Sprite2D" parent="HorizonMask/HorizonOrigin"]
|
||||
texture = ExtResource("4_1vq1p")
|
||||
|
||||
[node name="HeadingOrigin" type="Node2D" parent="."]
|
||||
position = Vector2(430, 794)
|
||||
|
||||
[node name="Ticks" type="Sprite2D" parent="HeadingOrigin"]
|
||||
texture = ExtResource("5_3w2cf")
|
||||
|
||||
[node name="ClimbrateOrigin" type="Node2D" parent="."]
|
||||
position = Vector2(711, 268)
|
||||
|
||||
[node name="Polygon2D" type="Polygon2D" parent="ClimbrateOrigin"]
|
||||
polygon = PackedVector2Array(12, 0, -12, 0, -12, -121, 0, -133, 12, -121)
|
||||
|
||||
[node name="Airspeed" type="Label" parent="."]
|
||||
offset_left = 35.0
|
||||
offset_top = 233.0
|
||||
offset_right = 154.0
|
||||
offset_bottom = 298.0
|
||||
theme_override_fonts/font = ExtResource("6_wtx4e")
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "0"
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Groundspeed" type="Label" parent="."]
|
||||
offset_left = 59.0
|
||||
offset_top = 477.0
|
||||
offset_right = 178.0
|
||||
offset_bottom = 542.0
|
||||
theme_override_fonts/font = ExtResource("6_wtx4e")
|
||||
theme_override_font_sizes/font_size = 33
|
||||
text = "0"
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Altitude" type="Label" parent="."]
|
||||
offset_left = 859.0
|
||||
offset_top = 233.0
|
||||
offset_right = 978.0
|
||||
offset_bottom = 298.0
|
||||
theme_override_fonts/font = ExtResource("6_wtx4e")
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "0"
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Heading" type="Label" parent="."]
|
||||
offset_left = 370.0
|
||||
offset_top = 498.0
|
||||
offset_right = 489.0
|
||||
offset_bottom = 563.0
|
||||
theme_override_fonts/font = ExtResource("6_wtx4e")
|
||||
theme_override_font_sizes/font_size = 33
|
||||
text = "000"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Reference" type="Sprite2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(512, 512)
|
||||
texture = ExtResource("7_86xjv")
|
||||
Loading…
Add table
Add a link
Reference in a new issue