Fix menus between floors

This commit is contained in:
2025-06-28 00:30:16 -07:00
parent 39f791e2b4
commit f33616dda4
11 changed files with 104 additions and 11 deletions

View File

@@ -10,6 +10,8 @@ public interface IMainMenu : IControl
event MainMenu.NewGameEventHandler NewGame;
event MainMenu.LoadGameEventHandler LoadGame;
event MainMenu.QuitEventHandler Quit;
void FadeIn();
}
[Meta(typeof(IAutoNode))]
@@ -38,6 +40,12 @@ public partial class MainMenu : Control, IMainMenu
NewGameButton.GrabFocus();
}
public void FadeIn()
{
NewGameButton.GrabFocus();
Show();
}
public void OnExitTree()
{
NewGameButton.Pressed -= OnNewGamePressed;

View File

@@ -11,6 +11,15 @@ grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_y6722")
[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.137255, 0.121569, 0.12549, 1)
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15