mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Credits screen
This commit is contained in:
parent
6d572503cb
commit
90cc97c669
10 changed files with 210 additions and 8 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using Godot;
|
||||
using System;
|
||||
using Cirno.Scripts.UI;
|
||||
|
||||
public partial class MainMenu : Control
|
||||
{
|
||||
|
|
@ -23,6 +24,10 @@ public partial class MainMenu : Control
|
|||
[ExportCategory("Debug Menu")]
|
||||
[Export]
|
||||
public PackedScene DebugMenuTemplate { get; set; }
|
||||
|
||||
[ExportCategory("Credits Menu")]
|
||||
[Export]
|
||||
public PackedScene CreditsMenuTemplate { get; set; }
|
||||
|
||||
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
|
|
@ -98,6 +103,11 @@ public partial class MainMenu : Control
|
|||
};
|
||||
}
|
||||
|
||||
private void OnCreditsButtonPressed()
|
||||
{
|
||||
SpawnMenu<CreditsMenu>(CreditsMenuTemplate, SubMenuHolder);
|
||||
}
|
||||
|
||||
private void _on_mainmenu_button_pressed()
|
||||
{
|
||||
if (MainMenuScene != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue