path + gamin

This commit is contained in:
2024-10-19 23:43:45 +02:00
parent fdbb131c09
commit fa51e53d7d
24 changed files with 642 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
using Godot;
using System;
using System.Reflection;
public partial class Menu : Control
{
@@ -8,6 +9,7 @@ public partial class Menu : Control
[Export] Panel trick;
[Export] CharacterBody2D player;
Node parent;
int spell {get; set;} = 2;
// Called when the node enters the scene tree for the first time.
public override void _Ready()
@@ -22,13 +24,23 @@ public partial class Menu : Control
public void ResumeDown()
{
Input.MouseMode = Input.MouseModeEnum.Hidden;
anim.Play("resume");
}
public void OptionDown()
{
int i = 1;
foreach (Label panel in trick.GetNode("GridContainer").GetChildren())
{
if (i <= spell)
{
panel.Modulate = new Color(1, 1, 1, 1);
GD.Print("trew");
}
i++;
}
pause.Visible = false;
trick.Visible = true;
}
@@ -37,8 +49,6 @@ public partial class Menu : Control
{
GetTree().Paused = false;
parent.Call("ToPrincipalFunc");
//EmitSignal("ToPrincipalEventHandler");
//GetTree().ChangeSceneToPacked(principal);
}
public void Res()