fields can now seperate "today" from any other day

This commit is contained in:
2025-12-03 17:56:45 +01:00
parent 0ecae5a4d9
commit b9a52dadcc
2 changed files with 60 additions and 30 deletions
@@ -7,6 +7,26 @@ public partial class CalendarController : Node
{
[Export] private SaveableVariableNode _dayCounter;
public static CalendarController? Instance;
public int CurrentDay
{
get
{
if (Instance == null)
return 0;
return Instance._dayCounter.Payload.AsInt32();
}
}
public override void _Ready()
{
if (Instance == null)
{
Instance = this;
}
}
public override void _Input(InputEvent @event)
{
if (@event.IsActionPressed("NextDayCheat"))