Files
FOU/Scenes/PerfDetails.cs
rogo 71db6513f2 improved handling of colors
improved debug colors
refactoring
2024-12-21 23:04:01 +01:00

21 lines
391 B
C#

using FOU.Scripts;
using Godot;
public partial class PerfDetails : Label
{
[Export]
public bool ShowDetails = true;
public override void _Process(double delta)
{
Text = "";
if (!ShowDetails) return;
int activeElements = 0;
foreach (Chunk c in Main.Instance.Level.GetChunks())
activeElements += c.ActiveElementsCount();
Text += $"Active Elements: {activeElements}";
}
}