add endday
This commit is contained in:
@@ -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>()];
|
||||
|
||||
Reference in New Issue
Block a user