Displaying the individual days in the month
Source: addons/calendar_time/ui/display/calendar_display.gd
Syntax
class CalendarDisplay extends ContainerMembers
| Name | Kind | Summary |
|---|---|---|
ClockValidator | Field | `ClockValidator` is preloaded here to validate the clock that drives this calendar display. |
displayed_year_changed | Signal | Emitted when the calendar view changes to a different year. |
clock | Property | Shared context to access runtime time state data and events. Reassigning after [method _ready] disconnects the old clock, connects the new clock, and refreshes the displayed date/year. |
year_spin_box | Property | Spin box the player uses to change the displayed year. |
tab_container | Property | Container that holds the per-month table tabs. |
month_table_template | Property | Scene instantiated to render each month's day grid. |
prev_month_button | Property | Optional header controls wired by the bundled template. All are optional: the display works without them, and consumers may wire their own actions. |
next_month_button | Property | Advances the calendar to the next month when pressed. |
current_month_button | Property | Returns the calendar to the current month when pressed. |
close_button | Property | Hides the calendar display when pressed. |
context_label | Property | Label that shows the calendar's current context or title. |
live_date_label | Property | Optional label showing the bound clock's live date. |
toggle_action | Property | Triggers the UI to switch visibility for showing / hiding when the action name is pressed [br][br] (Set in ProjectSettings -> InputMap) |
auto_switch_to_current_date | Property | Whether to automatically switch to the current month and year on date change |
shown_year | Property | The year that the calendar display is showing. When changed, refreshes the UI for the new year. |
refresh | Method | |
clear | Method | |
setup_tabs | Method | |
toggle_display | Method | |
go_to_current_month | Method | |
go_to_previous_month | Method | |
go_to_next_month | Method |