feat: add in-game debug console UI

This commit is contained in:
2026-08-22 19:40:12 +02:00
parent 4f57c77b7b
commit a749d97b99
9 changed files with 217 additions and 2 deletions
+29
View File
@@ -0,0 +1,29 @@
using Godot;
namespace Game.Godot;
public static class GamePause
{
private static SceneTree Tree => (SceneTree)Engine.GetMainLoop();
public static bool IsPaused => Tree.Paused;
public static void Pause() => Tree.Paused = true;
public static void Resume() => Tree.Paused = false;
public static void Toggle()
{
if (IsPaused)
{
Resume();
}
else
{
Pause();
}
}
public static void SetIgnoresPause(Node node, bool value) =>
node.ProcessMode = value ? Node.ProcessModeEnum.Always : Node.ProcessModeEnum.Inherit;
}