Raymond Maarloeve
Loading...
Searching...
No Matches
DayBoxManager Class Reference

Manages the UI elements for displaying the current day and time in the game. Provides methods to update the day and hour text fields dynamically. More...

Public Member Functions

void UpdateHourText (float timeOfDay)
 Updates the hour text field based on the given time of day. Formats the time in "HH:MM" format, rounding minutes to the nearest quarter hour.
 
void UpdateDayText (int currentDay)
 Updates the day text field with the given day number.
 

Properties

static DayBoxManager Instance [get]
 Singleton instance of the DayBoxManager class.
 

Detailed Description

Manages the UI elements for displaying the current day and time in the game. Provides methods to update the day and hour text fields dynamically.

Member Function Documentation

◆ UpdateDayText()

void DayBoxManager.UpdateDayText ( int  currentDay)

Updates the day text field with the given day number.

Parameters
currentDayThe current day number to display.

◆ UpdateHourText()

void DayBoxManager.UpdateHourText ( float  timeOfDay)

Updates the hour text field based on the given time of day. Formats the time in "HH:MM" format, rounding minutes to the nearest quarter hour.

Parameters
timeOfDayThe time of day as a float, where the integer part represents hours and the fractional part represents minutes.

Property Documentation

◆ Instance

DayBoxManager DayBoxManager.Instance
staticget

Singleton instance of the DayBoxManager class.


The documentation for this class was generated from the following file: