spacegame/hud/hud.tscn
2025-05-03 14:12:25 +02:00

214 lines
6.9 KiB
Text

[gd_scene load_steps=22 format=3 uid="uid://cyq7l8x1pbh1h"]
[ext_resource type="Script" uid="uid://dwjysathl0a8g" path="res://hud/hud.gd" id="1_0ivg5"]
[ext_resource type="Texture2D" uid="uid://c7pknth5b6pt6" path="res://hud/dial.png" id="1_6ca3a"]
[ext_resource type="Texture2D" uid="uid://dtrxl6d62e3c2" path="res://hud/text.png" id="1_318vg"]
[ext_resource type="Script" uid="uid://dm6tu57vgijdh" path="res://hud/energy_indicator.gd" id="2_1kkc0"]
[ext_resource type="Texture2D" uid="uid://dxnwaxcclojrh" path="res://hud/dial_full.png" id="2_2gk58"]
[ext_resource type="Shader" uid="uid://c6i3a0ue8m0sj" path="res://hud/vignette.gdshader" id="2_jvpmi"]
[ext_resource type="Script" uid="uid://bkcrwbj4qsyu6" path="res://hud/aim_indicator.gd" id="4_fjv1a"]
[ext_resource type="Shader" uid="uid://b1dxg2p1lqx1g" path="res://hud/yclip.gdshader" id="4_qv4qp"]
[ext_resource type="Texture2D" uid="uid://phih5e11qe3a" path="res://hud/aim_indicator/scale.png" id="4_w8tcp"]
[ext_resource type="Texture2D" uid="uid://cxfxrcm7n85cp" path="res://hud/aim_indicator/dot.png" id="5_svhta"]
[ext_resource type="Script" uid="uid://cbfjmrwk5vvgx" path="res://hud/component_indicators.gd" id="10_sh35x"]
[ext_resource type="Texture2D" uid="uid://tnjq0pju1y5o" path="res://hud/dia_smalll.png" id="11_gms7k"]
[ext_resource type="Texture2D" uid="uid://bpmshe0qinq6g" path="res://hud/container.png" id="12_hwufu"]
[ext_resource type="FontFile" uid="uid://mseegkts3icm" path="res://hud/Px437_Acer_VGA_8x8.ttf" id="13_mq7b8"]
[ext_resource type="Shader" uid="uid://ddc1twbjwqs6e" path="res://hud/crt.gdshader" id="14_jvpmi"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_0jxvb"]
shader = ExtResource("2_jvpmi")
shader_parameter/vignette_intensity = 1.0
shader_parameter/vignette_opacity = 1.0
[sub_resource type="Gradient" id="Gradient_0jxvb"]
offsets = PackedFloat32Array(0)
colors = PackedColorArray(1, 1, 1, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_pt78x"]
gradient = SubResource("Gradient_0jxvb")
width = 1
[sub_resource type="ShaderMaterial" id="ShaderMaterial_sh35x"]
shader = ExtResource("4_qv4qp")
shader_parameter/min_y = 0.235291
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_jvpmi"]
content_margin_left = 3.0
content_margin_top = 3.0
content_margin_right = 3.0
content_margin_bottom = 3.0
bg_color = Color(0.6, 0.6, 0.6, 0)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_t2ad4"]
shader = ExtResource("14_jvpmi")
shader_parameter/scanlines_opacity = 0.2
shader_parameter/scanlines_width = 0.5
shader_parameter/grille_opacity = 0.1
shader_parameter/resolution = Vector2(640, 480)
shader_parameter/aberration = 0.00200005
shader_parameter/brightness = 1.0
shader_parameter/warp_amount = 0.3
[node name="hud" type="CanvasLayer" node_paths=PackedStringArray("aim_indicator", "energy_indicator")]
script = ExtResource("1_0ivg5")
aim_indicator = NodePath("aim_indicator")
energy_indicator = NodePath("energy_indicator")
[node name="vignette" type="TextureRect" parent="."]
material = SubResource("ShaderMaterial_0jxvb")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = SubResource("GradientTexture1D_pt78x")
[node name="energy_indicator" type="Control" parent="."]
layout_mode = 3
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -268.0
offset_top = -4.0
offset_right = -268.0
offset_bottom = -4.0
grow_horizontal = 2
grow_vertical = 0
scale = Vector2(4, 4)
script = ExtResource("2_1kkc0")
[node name="bg" type="Sprite2D" parent="energy_indicator"]
position = Vector2(17, -17)
texture = ExtResource("1_6ca3a")
[node name="fg" type="Sprite2D" parent="energy_indicator"]
modulate = Color(1.1, 1.1, 1.1, 1)
material = SubResource("ShaderMaterial_sh35x")
position = Vector2(17, -17)
texture = ExtResource("2_2gk58")
[node name="upper" type="Marker2D" parent="energy_indicator"]
position = Vector2(17.5, -26.0001)
gizmo_extents = 3.0
[node name="lower" type="Marker2D" parent="energy_indicator"]
position = Vector2(17.3333, -11)
gizmo_extents = 3.0
[node name="text" type="Sprite2D" parent="energy_indicator"]
position = Vector2(17.5, -6)
texture = ExtResource("1_318vg")
[node name="aim_indicator" type="Control" parent="."]
layout_mode = 3
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_top = -143.0
offset_bottom = -143.0
grow_horizontal = 2
grow_vertical = 0
scale = Vector2(4, 4)
script = ExtResource("4_fjv1a")
[node name="scale" type="Sprite2D" parent="aim_indicator"]
texture = ExtResource("4_w8tcp")
[node name="dot" type="Sprite2D" parent="aim_indicator"]
position = Vector2(-13, 0)
texture = ExtResource("5_svhta")
[node name="component_indicators" type="Control" parent="."]
layout_mode = 3
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = 351.0
offset_top = 6.0
offset_right = 351.0
offset_bottom = 6.0
grow_horizontal = 2
grow_vertical = 0
scale = Vector2(4, 4)
script = ExtResource("10_sh35x")
[node name="one" type="Sprite2D" parent="component_indicators"]
position = Vector2(-11.1667, -11.3333)
texture = ExtResource("11_gms7k")
[node name="two" type="Sprite2D" parent="component_indicators"]
position = Vector2(-28.8333, -11.3333)
texture = ExtResource("11_gms7k")
[node name="three" type="Sprite2D" parent="component_indicators"]
position = Vector2(-46.3333, -11)
texture = ExtResource("11_gms7k")
[node name="console" type="Control" parent="."]
layout_mode = 3
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_top = -67.0
offset_bottom = -67.0
grow_horizontal = 2
grow_vertical = 0
scale = Vector2(4, 4)
[node name="container" type="Sprite2D" parent="console"]
texture = ExtResource("12_hwufu")
[node name="console_text" type="RichTextLabel" parent="."]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -112.0
offset_top = -113.0
offset_right = 336.0
offset_bottom = 71.0
grow_horizontal = 2
grow_vertical = 0
scale = Vector2(0.5, 0.5)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 10
theme_override_constants/shadow_offset_y = 2
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_outline_size = 3
theme_override_constants/line_separation = 3
theme_override_fonts/normal_font = ExtResource("13_mq7b8")
theme_override_font_sizes/normal_font_size = 16
theme_override_styles/normal = SubResource("StyleBoxFlat_jvpmi")
text = "-- status --
[shields] - medium
[reactor] - danger
[hull] - critical
[railgun] - normal
[sensors] - normal
-- ok --"
horizontal_alignment = 1
vertical_alignment = 1
[node name="copy" type="BackBufferCopy" parent="."]
copy_mode = 2
[node name="crt_filter" type="TextureRect" parent="."]
material = SubResource("ShaderMaterial_t2ad4")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = SubResource("GradientTexture1D_pt78x")