add endday

This commit is contained in:
2026-08-12 12:19:15 +02:00
parent c9f0dbdac0
commit 81d7a213cd
6 changed files with 34 additions and 55 deletions

View File

@@ -34,7 +34,14 @@ public partial class DaySchedule : PanelContainer
private void OnNewMeetingStarts()
{
if (_currentSlot >= GetTimeSlots().Count)
{
EndDay();
return;
}
GetTimeSlots()[_currentSlot].StartMeeting();
_currentSlot += 1;
}
@@ -47,6 +54,13 @@ public partial class DaySchedule : PanelContainer
_currentSlot += 1;
}
public void EndDay()
{
GD.Print("The DAY was EXECUTED!");
ProgressTimer.Stop();
CurrentTimeLine.Stop();
}
private List<TimeSlot> GetTimeSlots()
{
return [.. TimeSlotContainer.GetChildren().OfType<TimeSlot>()];