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...
|
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.
|
|
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.
◆ UpdateDayText()
void DayBoxManager.UpdateDayText |
( |
int |
currentDay | ) |
|
Updates the day text field with the given day number.
- Parameters
-
currentDay | The 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
-
timeOfDay | The time of day as a float, where the integer part represents hours and the fractional part represents minutes. |
◆ Instance
The documentation for this class was generated from the following file: