Fix menus between floors
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user