menu et +

This commit is contained in:
2024-10-19 20:22:03 +02:00
parent 360a866db9
commit 1bca0ada4f
12 changed files with 345 additions and 26 deletions

View File

@@ -4,6 +4,9 @@ using System;
public partial class Menu : Control
{
[Export] AnimationPlayer anim;
[Export] Panel pause;
[Export] Panel trick;
[Export] PackedScene principal;
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
@@ -23,16 +26,23 @@ public partial class Menu : Control
public void OptionDown()
{
pause.Visible = false;
trick.Visible = true;
}
public void ExitDown()
{
GetTree().Quit();
GetTree().ChangeSceneToPacked(principal);
}
public void Res()
{
GetTree().Paused = false;
}
public void ExitTrick()
{
pause.Visible = true;
trick.Visible = false;
}
}