This commit is contained in:
MaddoScientisto 2025-02-25 21:21:07 +01:00
commit 50950f8284
13 changed files with 170 additions and 45 deletions

View file

@ -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.

12
Scripts/UI/MenuBase.cs Normal file
View file

@ -0,0 +1,12 @@
using Godot;
using System;
using Cirno.Scripts.Resources;
using Cirno.Scripts.Resources.DebugMenu;
using Godot.Collections;
public partial class MenuBase : Control
{
[Signal]
public delegate void MenuClosedEventHandler();
}

View file

@ -0,0 +1 @@
uid://jyqs08gi37of

5
Scripts/UI/MusicRoom.cs Normal file
View file

@ -0,0 +1,5 @@
public partial class MusicRoom : MenuBase
{
}

View file

@ -0,0 +1 @@
uid://c06tspxwnj7pg