Update enemy animations, make Loading screen a scene
This commit is contained in:
20
Zennysoft.Game.Ma/src/menu/LoadingScreen.cs
Normal file
20
Zennysoft.Game.Ma/src/menu/LoadingScreen.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Chickensoft.AutoInject;
|
||||
using Chickensoft.Introspection;
|
||||
using Godot;
|
||||
using Zennysoft.Game.Ma;
|
||||
|
||||
[Meta(typeof(IAutoNode))]
|
||||
public partial class LoadingScreen : Control
|
||||
{
|
||||
public override void _Notification(int what) => this.Notify(what);
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
if (Input.IsActionJustPressed(GameInputs.Next))
|
||||
{
|
||||
}
|
||||
if (Input.IsActionJustPressed(GameInputs.Previous))
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
1
Zennysoft.Game.Ma/src/menu/LoadingScreen.cs.uid
Normal file
1
Zennysoft.Game.Ma/src/menu/LoadingScreen.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://b07ueredevhr3
|
||||
34
Zennysoft.Game.Ma/src/menu/LoadingScreen.tscn
Normal file
34
Zennysoft.Game.Ma/src/menu/LoadingScreen.tscn
Normal file
@@ -0,0 +1,34 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cpjlj7kxdhv16"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b07ueredevhr3" path="res://src/menu/LoadingScreen.cs" id="1_5uxhf"]
|
||||
[ext_resource type="FontFile" uid="uid://cm8j5vcdop5x0" path="res://src/ui/fonts/Mrs-Eaves-OT-Roman_31443.ttf" id="2_xfkmi"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_6i7rn"]
|
||||
font = ExtResource("2_xfkmi")
|
||||
font_size = 100
|
||||
font_color = Color(0.737255, 0.705882, 0.690196, 1)
|
||||
|
||||
[node name="LoadingScreen" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_5uxhf")
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="PanelContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="PanelContainer/CenterContainer"]
|
||||
layout_mode = 2
|
||||
text = "Loading..."
|
||||
label_settings = SubResource("LabelSettings_6i7rn")
|
||||
@@ -50,22 +50,22 @@ text = "New Game"
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
focus_neighbor_top = NodePath("../NewGameButton")
|
||||
focus_neighbor_bottom = NodePath("../QuitButton")
|
||||
focus_neighbor_bottom = NodePath("../EnemyViewerButton")
|
||||
theme_override_colors/font_focus_color = Color(0.976471, 0.827451, 0, 1)
|
||||
text = "Load Game"
|
||||
|
||||
[node name="EnemyViewerButton" type="Button" parent="MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
focus_neighbor_top = NodePath("../NewGameButton")
|
||||
focus_neighbor_bottom = NodePath("../QuitButton")
|
||||
focus_neighbor_top = NodePath("../LoadGameButton")
|
||||
focus_neighbor_bottom = NodePath("../GalleryButton")
|
||||
theme_override_colors/font_focus_color = Color(0.976471, 0.827451, 0, 1)
|
||||
text = "Enemy Viewer"
|
||||
|
||||
[node name="GalleryButton" type="Button" parent="MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
focus_neighbor_top = NodePath("../NewGameButton")
|
||||
focus_neighbor_top = NodePath("../EnemyViewerButton")
|
||||
focus_neighbor_bottom = NodePath("../QuitButton")
|
||||
theme_override_colors/font_focus_color = Color(0.976471, 0.827451, 0, 1)
|
||||
text = "Gallery"
|
||||
@@ -73,7 +73,7 @@ text = "Gallery"
|
||||
[node name="QuitButton" type="Button" parent="MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
focus_neighbor_top = NodePath("../LoadGameButton")
|
||||
focus_neighbor_top = NodePath("../GalleryButton")
|
||||
theme_override_colors/font_focus_color = Color(0.976471, 0.827451, 0, 1)
|
||||
text = "Quit
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user