mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 02:55:54 +00:00
Submenus
This commit is contained in:
parent
248d6dc1f0
commit
50950f8284
13 changed files with 170 additions and 45 deletions
|
|
@ -5,7 +5,7 @@ using Cirno.Scripts.Resources.DebugMenu;
|
|||
using Godot.Collections;
|
||||
using DebugMapSelectData = Cirno.Scripts.Resources.DebugMenu.DebugMapSelectData;
|
||||
|
||||
public partial class DebugMenu : Control
|
||||
public partial class DebugMenu : MenuBase
|
||||
{
|
||||
|
||||
[Export]
|
||||
|
|
@ -17,9 +17,6 @@ public partial class DebugMenu : Control
|
|||
[Export]
|
||||
public Container ButtonsContainer { get; private set; }
|
||||
|
||||
[Signal]
|
||||
public delegate void DebugMenuClosedEventHandler();
|
||||
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
public override void _Ready()
|
||||
{
|
||||
|
|
@ -52,7 +49,7 @@ public partial class DebugMenu : Control
|
|||
{
|
||||
this.QueueFree();
|
||||
|
||||
EmitSignal(SignalName.DebugMenuClosed);
|
||||
EmitSignal(SignalName.MenuClosed);
|
||||
}
|
||||
|
||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue