mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 02:35: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.
|
||||
|
|
|
|||
12
Scripts/UI/MenuBase.cs
Normal file
12
Scripts/UI/MenuBase.cs
Normal 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();
|
||||
}
|
||||
1
Scripts/UI/MenuBase.cs.uid
Normal file
1
Scripts/UI/MenuBase.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://jyqs08gi37of
|
||||
5
Scripts/UI/MusicRoom.cs
Normal file
5
Scripts/UI/MusicRoom.cs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
public partial class MusicRoom : MenuBase
|
||||
{
|
||||
|
||||
}
|
||||
1
Scripts/UI/MusicRoom.cs.uid
Normal file
1
Scripts/UI/MusicRoom.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://c06tspxwnj7pg
|
||||
Loading…
Add table
Add a link
Reference in a new issue