mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-10 16:04:04 +00:00
250 lines
6.9 KiB
Plaintext
250 lines
6.9 KiB
Plaintext
[gd_scene load_steps=9 format=3 uid="uid://c8kak2l3m4n5"]
|
|
|
|
[ext_resource type="Script" uid="uid://du7y176h5aaq4" path="res://scripts/HUDController.gd" id="1_hud_controller"]
|
|
[ext_resource type="Script" path="res://scripts/hud_attitude_indicator.gd" id="2_adi"]
|
|
[ext_resource type="Script" path="res://scripts/hud_heading_tape.gd" id="3_tape"]
|
|
[ext_resource type="Script" path="res://scripts/hud_gauge.gd" id="4_gauge"]
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_hud"]
|
|
font_size = 32
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_kickoff"]
|
|
font_size = 96
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_scoreboard"]
|
|
bg_color = Color(0.05, 0.06, 0.09, 0.6)
|
|
corner_radius_top_left = 10
|
|
corner_radius_top_right = 10
|
|
corner_radius_bottom_right = 10
|
|
corner_radius_bottom_left = 10
|
|
content_margin_left = 20.0
|
|
content_margin_top = 8.0
|
|
content_margin_right = 20.0
|
|
content_margin_bottom = 8.0
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_result"]
|
|
bg_color = Color(0.05, 0.06, 0.09, 0.85)
|
|
border_width_left = 3
|
|
border_width_top = 3
|
|
border_width_right = 3
|
|
border_width_bottom = 3
|
|
border_color = Color(1, 1, 1, 0.2)
|
|
corner_radius_top_left = 20
|
|
corner_radius_top_right = 20
|
|
corner_radius_bottom_right = 20
|
|
corner_radius_bottom_left = 20
|
|
content_margin_left = 48.0
|
|
content_margin_top = 32.0
|
|
content_margin_right = 48.0
|
|
content_margin_bottom = 32.0
|
|
|
|
[node name="HUD" type="CanvasLayer"]
|
|
process_mode = 3
|
|
script = ExtResource("1_hud_controller")
|
|
|
|
[node name="Control" type="Control" parent="."]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
|
|
[node name="ScoreboardPanel" type="PanelContainer" parent="Control"]
|
|
layout_mode = 1
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -220.0
|
|
offset_right = 220.0
|
|
offset_top = 8.0
|
|
offset_bottom = 60.0
|
|
grow_horizontal = 2
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_scoreboard")
|
|
|
|
[node name="ScoreRow" type="HBoxContainer" parent="Control/ScoreboardPanel"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
theme_override_constants/separation = 16
|
|
|
|
[node name="Team0Name" type="Label" parent="Control/ScoreboardPanel/ScoreRow"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_override_colors/font_color = Color(0.25, 0.55, 1, 1)
|
|
theme_override_font_sizes/font_size = 14
|
|
horizontal_alignment = 1
|
|
text = "BLUE"
|
|
|
|
[node name="Team0Score" type="Label" parent="Control/ScoreboardPanel/ScoreRow"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_override_colors/font_color = Color(0.25, 0.55, 1, 1)
|
|
theme_override_font_sizes/font_size = 32
|
|
horizontal_alignment = 1
|
|
text = "0"
|
|
|
|
[node name="TimerLabel" type="Label" parent="Control/ScoreboardPanel/ScoreRow"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
label_settings = SubResource("LabelSettings_hud")
|
|
horizontal_alignment = 1
|
|
|
|
[node name="Team1Score" type="Label" parent="Control/ScoreboardPanel/ScoreRow"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_override_colors/font_color = Color(1, 0.5, 0.15, 1)
|
|
theme_override_font_sizes/font_size = 32
|
|
horizontal_alignment = 1
|
|
text = "0"
|
|
|
|
[node name="Team1Name" type="Label" parent="Control/ScoreboardPanel/ScoreRow"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_override_colors/font_color = Color(1, 0.5, 0.15, 1)
|
|
theme_override_font_sizes/font_size = 14
|
|
horizontal_alignment = 1
|
|
text = "ORANGE"
|
|
|
|
[node name="KickoffLabel" type="Label" parent="Control"]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -90.0
|
|
offset_top = -60.0
|
|
offset_right = 90.0
|
|
offset_bottom = 60.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
label_settings = SubResource("LabelSettings_kickoff")
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="ResultOverlay" type="Control" parent="Control"]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Dim" type="ColorRect" parent="Control/ResultOverlay"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0, 0, 0, 0.5)
|
|
|
|
[node name="Center" type="CenterContainer" parent="Control/ResultOverlay"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="ResultPanel" type="PanelContainer" parent="Control/ResultOverlay/Center"]
|
|
layout_mode = 2
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_result")
|
|
|
|
[node name="VBox" type="VBoxContainer" parent="Control/ResultOverlay/Center/ResultPanel"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 16
|
|
|
|
[node name="ResultLabel" type="Label" parent="Control/ResultOverlay/Center/ResultPanel/VBox"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 64
|
|
text = "Draw"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="FinalScoreLabel" type="Label" parent="Control/ResultOverlay/Center/ResultPanel/VBox"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 44
|
|
text = "0 - 0"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="Instruments" type="Control" parent="Control"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
|
|
[node name="HeadingTape" type="Control" parent="Control/Instruments"]
|
|
layout_mode = 1
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -180.0
|
|
offset_right = 180.0
|
|
offset_top = 68.0
|
|
offset_bottom = 108.0
|
|
grow_horizontal = 2
|
|
mouse_filter = 2
|
|
script = ExtResource("3_tape")
|
|
|
|
[node name="Cluster" type="VBoxContainer" parent="Control/Instruments"]
|
|
layout_mode = 1
|
|
anchors_preset = 2
|
|
anchor_top = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 16.0
|
|
offset_top = -248.0
|
|
offset_right = 294.0
|
|
offset_bottom = -16.0
|
|
grow_vertical = 0
|
|
theme_override_constants/separation = 8
|
|
mouse_filter = 2
|
|
|
|
[node name="Dials" type="HBoxContainer" parent="Control/Instruments/Cluster"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 8
|
|
mouse_filter = 2
|
|
|
|
[node name="SpeedGauge" type="Control" parent="Control/Instruments/Cluster/Dials"]
|
|
custom_minimum_size = Vector2(46, 170)
|
|
layout_mode = 2
|
|
mouse_filter = 2
|
|
script = ExtResource("4_gauge")
|
|
label = "SPD"
|
|
max_value = 35.0
|
|
|
|
[node name="AttitudeIndicator" type="Control" parent="Control/Instruments/Cluster/Dials"]
|
|
custom_minimum_size = Vector2(170, 170)
|
|
layout_mode = 2
|
|
mouse_filter = 2
|
|
script = ExtResource("2_adi")
|
|
|
|
[node name="AltitudeGauge" type="Control" parent="Control/Instruments/Cluster/Dials"]
|
|
custom_minimum_size = Vector2(46, 170)
|
|
layout_mode = 2
|
|
mouse_filter = 2
|
|
script = ExtResource("4_gauge")
|
|
label = "ALT"
|
|
max_value = 12.0
|
|
value_format = "%.1f"
|
|
|
|
[node name="ThrustBar" type="Control" parent="Control/Instruments/Cluster"]
|
|
custom_minimum_size = Vector2(278, 16)
|
|
layout_mode = 2
|
|
mouse_filter = 2
|
|
script = ExtResource("4_gauge")
|
|
label = "THR"
|
|
horizontal = true
|
|
fill_color = Color(1, 0.55, 0.15, 0.85)
|
|
|
|
[node name="CameraModeLabel" type="Label" parent="Control/Instruments/Cluster"]
|
|
modulate = Color(1, 1, 1, 0.6)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 14
|
|
text = "Camera: Ball Cam"
|