This commit is contained in:
2026-02-15 01:06:46 -08:00
parent a6ea1b1873
commit 66905c9b53
30 changed files with 831 additions and 474 deletions

View File

@@ -7,6 +7,28 @@ public partial class LoadingScreen : Control
{
public override void _Notification(int what) => this.Notify(what);
[Node]
public ProgressBar ProgressBar { get; set; } = default!;
[Node] public ProgressBar ProgressBar { get; set; } = default!;
[Node] public AnimationPlayer AnimationPlayer { get; set; } = default!;
public void OnResolved()
{
AnimationPlayer.AnimationFinished += AnimationPlayer_AnimationFinished;
}
private void AnimationPlayer_AnimationFinished(StringName animName)
{
if (animName == "fade_out")
Hide();
}
public void ShowLoadingScreen()
{
Show();
}
public void HideLoadingScreen()
{
AnimationPlayer.Play("fade_out");
}
}

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=5 format=3 uid="uid://cpjlj7kxdhv16"]
[gd_scene load_steps=9 format=3 uid="uid://cpjlj7kxdhv16"]
[ext_resource type="Script" uid="uid://b07ueredevhr3" path="res://src/menu/LoadingScreen.cs" id="1_5uxhf"]
[ext_resource type="Texture2D" uid="uid://d2krh4u2v06k5" path="res://src/ui/rendered_assets/SCREEN_RENDERS_Loading_720_16_9.png" id="2_xfkmi"]
@@ -8,8 +8,61 @@
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xfkmi"]
bg_color = Color(0.804743, 0.804743, 0.804743, 1)
[sub_resource type="Animation" id="Animation_xfkmi"]
resource_name = "fade_in"
length = 0.500003
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0, 0, 1), Color(0, 0, 0, 0)]
}
[sub_resource type="Animation" id="Animation_6i7rn"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(0, 0, 0, 0)]
}
[sub_resource type="Animation" id="Animation_jrbvh"]
resource_name = "fade_out"
length = 1.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0, 0, 0), Color(0, 0, 0, 1)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_jrbvh"]
_data = {
&"RESET": SubResource("Animation_6i7rn"),
&"fade_in": SubResource("Animation_xfkmi"),
&"fade_out": SubResource("Animation_jrbvh")
}
[node name="LoadingScreen" type="Control"]
visible = false
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
@@ -48,3 +101,18 @@ offset_bottom = 981.0
theme_override_styles/background = SubResource("StyleBoxTexture_xfkmi")
theme_override_styles/fill = SubResource("StyleBoxFlat_xfkmi")
show_percentage = false
[node name="ColorRect" type="ColorRect" parent="."]
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)
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
unique_name_in_owner = true
libraries = {
&"": SubResource("AnimationLibrary_jrbvh")
}

View File

@@ -1,7 +1,10 @@
[gd_scene load_steps=3 format=3 uid="uid://rfvnddfqufho"]
[gd_scene load_steps=6 format=3 uid="uid://rfvnddfqufho"]
[ext_resource type="Script" uid="uid://14b7o2c6cgry" path="res://src/menu/MainMenu.cs" id="1_y6722"]
[ext_resource type="StyleBox" uid="uid://bxuy4tnftibfq" path="res://src/options/SelectedOptionsBox.tres" id="2_2ijnm"]
[ext_resource type="Shortcut" uid="uid://dumkrjur22k2a" path="res://src/ui/ButtonShortcut.tres" id="2_7fwjx"]
[ext_resource type="FontFile" uid="uid://0syyay37admf" path="res://src/ui/fonts/georgiab.ttf" id="2_dftre"]
[ext_resource type="StyleBox" uid="uid://bl15q835s4ene" path="res://src/options/UnselectedOptionsBox.tres" id="3_dftre"]
[node name="MainMenu" type="Control"]
layout_mode = 3
@@ -19,45 +22,78 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.137255, 0.121569, 0.12549, 1)
color = Color(0.0962047, 0.0962048, 0.0962047, 1)
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -59.0
offset_top = -171.0
offset_right = 59.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 100
theme_override_constants/margin_top = 100
theme_override_constants/margin_right = 100
theme_override_constants/margin_bottom = 100
grow_vertical = 0
theme_override_constants/margin_bottom = 200
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
[node name="CenterContainer" type="CenterContainer" parent="MarginContainer"]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/CenterContainer"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 0
[node name="StartGameButton" type="Button" parent="MarginContainer/VBoxContainer"]
[node name="StartGameButton" type="Button" parent="MarginContainer/CenterContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
focus_neighbor_bottom = NodePath("../EnemyViewerButton")
focus_next = NodePath("../EnemyViewerButton")
theme_override_colors/font_focus_color = Color(0.976471, 0.827451, 0, 1)
theme_override_fonts/font = ExtResource("2_dftre")
theme_override_font_sizes/font_size = 25
theme_override_styles/focus = ExtResource("2_2ijnm")
theme_override_styles/disabled_mirrored = ExtResource("3_dftre")
theme_override_styles/disabled = ExtResource("3_dftre")
theme_override_styles/hover_pressed_mirrored = ExtResource("3_dftre")
theme_override_styles/hover_pressed = ExtResource("3_dftre")
theme_override_styles/hover_mirrored = ExtResource("3_dftre")
theme_override_styles/hover = ExtResource("3_dftre")
theme_override_styles/pressed_mirrored = ExtResource("3_dftre")
theme_override_styles/pressed = ExtResource("3_dftre")
theme_override_styles/normal_mirrored = ExtResource("3_dftre")
theme_override_styles/normal = ExtResource("3_dftre")
shortcut = ExtResource("2_7fwjx")
text = "Start Game"
alignment = 0
[node name="EnemyViewerButton" type="Button" parent="MarginContainer/VBoxContainer"]
[node name="EnemyViewerButton" type="Button" parent="MarginContainer/CenterContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
focus_neighbor_bottom = NodePath("../GalleryButton")
focus_next = NodePath("../GalleryButton")
focus_previous = NodePath("../StartGameButton")
theme_override_colors/font_focus_color = Color(0.976471, 0.827451, 0, 1)
theme_override_fonts/font = ExtResource("2_dftre")
theme_override_font_sizes/font_size = 25
theme_override_styles/focus = ExtResource("2_2ijnm")
theme_override_styles/disabled_mirrored = ExtResource("3_dftre")
theme_override_styles/disabled = ExtResource("3_dftre")
theme_override_styles/hover_pressed_mirrored = ExtResource("3_dftre")
theme_override_styles/hover_pressed = ExtResource("3_dftre")
theme_override_styles/hover_mirrored = ExtResource("3_dftre")
theme_override_styles/hover = ExtResource("3_dftre")
theme_override_styles/pressed_mirrored = ExtResource("3_dftre")
theme_override_styles/pressed = ExtResource("3_dftre")
theme_override_styles/normal_mirrored = ExtResource("3_dftre")
theme_override_styles/normal = ExtResource("3_dftre")
shortcut = ExtResource("2_7fwjx")
text = "Enemy Viewer"
alignment = 0
[node name="GalleryButton" type="Button" parent="MarginContainer/VBoxContainer"]
[node name="GalleryButton" type="Button" parent="MarginContainer/CenterContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
focus_neighbor_top = NodePath("../EnemyViewerButton")
@@ -65,10 +101,24 @@ focus_neighbor_bottom = NodePath("../OptionsButton")
focus_next = NodePath("../OptionsButton")
focus_previous = NodePath("../EnemyViewerButton")
theme_override_colors/font_focus_color = Color(0.976471, 0.827451, 0, 1)
theme_override_fonts/font = ExtResource("2_dftre")
theme_override_font_sizes/font_size = 25
theme_override_styles/focus = ExtResource("2_2ijnm")
theme_override_styles/disabled_mirrored = ExtResource("3_dftre")
theme_override_styles/disabled = ExtResource("3_dftre")
theme_override_styles/hover_pressed_mirrored = ExtResource("3_dftre")
theme_override_styles/hover_pressed = ExtResource("3_dftre")
theme_override_styles/hover_mirrored = ExtResource("3_dftre")
theme_override_styles/hover = ExtResource("3_dftre")
theme_override_styles/pressed_mirrored = ExtResource("3_dftre")
theme_override_styles/pressed = ExtResource("3_dftre")
theme_override_styles/normal_mirrored = ExtResource("3_dftre")
theme_override_styles/normal = ExtResource("3_dftre")
shortcut = ExtResource("2_7fwjx")
text = "Gallery"
alignment = 0
[node name="OptionsButton" type="Button" parent="MarginContainer/VBoxContainer"]
[node name="OptionsButton" type="Button" parent="MarginContainer/CenterContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
focus_neighbor_top = NodePath("../GalleryButton")
@@ -76,10 +126,24 @@ focus_neighbor_bottom = NodePath("../QuitButton")
focus_next = NodePath("../QuitButton")
focus_previous = NodePath("../GalleryButton")
theme_override_colors/font_focus_color = Color(0.976471, 0.827451, 0, 1)
theme_override_fonts/font = ExtResource("2_dftre")
theme_override_font_sizes/font_size = 25
theme_override_styles/focus = ExtResource("2_2ijnm")
theme_override_styles/disabled_mirrored = ExtResource("3_dftre")
theme_override_styles/disabled = ExtResource("3_dftre")
theme_override_styles/hover_pressed_mirrored = ExtResource("3_dftre")
theme_override_styles/hover_pressed = ExtResource("3_dftre")
theme_override_styles/hover_mirrored = ExtResource("3_dftre")
theme_override_styles/hover = ExtResource("3_dftre")
theme_override_styles/pressed_mirrored = ExtResource("3_dftre")
theme_override_styles/pressed = ExtResource("3_dftre")
theme_override_styles/normal_mirrored = ExtResource("3_dftre")
theme_override_styles/normal = ExtResource("3_dftre")
shortcut = ExtResource("2_7fwjx")
text = "Options"
alignment = 0
[node name="QuitButton" type="Button" parent="MarginContainer/VBoxContainer"]
[node name="QuitButton" type="Button" parent="MarginContainer/CenterContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
focus_neighbor_top = NodePath("../OptionsButton")
@@ -87,6 +151,20 @@ focus_neighbor_bottom = NodePath(".")
focus_next = NodePath(".")
focus_previous = NodePath("../OptionsButton")
theme_override_colors/font_focus_color = Color(0.976471, 0.827451, 0, 1)
theme_override_fonts/font = ExtResource("2_dftre")
theme_override_font_sizes/font_size = 25
theme_override_styles/focus = ExtResource("2_2ijnm")
theme_override_styles/disabled_mirrored = ExtResource("3_dftre")
theme_override_styles/disabled = ExtResource("3_dftre")
theme_override_styles/hover_pressed_mirrored = ExtResource("3_dftre")
theme_override_styles/hover_pressed = ExtResource("3_dftre")
theme_override_styles/hover_mirrored = ExtResource("3_dftre")
theme_override_styles/hover = ExtResource("3_dftre")
theme_override_styles/pressed_mirrored = ExtResource("3_dftre")
theme_override_styles/pressed = ExtResource("3_dftre")
theme_override_styles/normal_mirrored = ExtResource("3_dftre")
theme_override_styles/normal = ExtResource("3_dftre")
shortcut = ExtResource("2_7fwjx")
text = "Quit
"
alignment = 0

View File

@@ -61,4 +61,3 @@ unique_name_in_owner = true
libraries = {
&"": SubResource("AnimationLibrary_jiqgw")
}
autoplay = "intro"