Skip to content
ct

Class

CalendarDisplay

Generated GDScript class reference for CalendarTime.CalendarDisplay.

Status
Current
Version
v2.0.4
Updated
2026-08-09

Displaying the individual days in the month

Source: addons/calendar_time/ui/display/calendar_display.gd

Syntax

class CalendarDisplay extends Container

Members

NameKindSummary
ClockValidatorField`ClockValidator` is preloaded here to validate the clock that drives this calendar display.
displayed_year_changedSignalEmitted when the calendar view changes to a different year.
clockPropertyShared 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_boxPropertySpin box the player uses to change the displayed year.
tab_containerPropertyContainer that holds the per-month table tabs.
month_table_templatePropertyScene instantiated to render each month's day grid.
prev_month_buttonPropertyOptional header controls wired by the bundled template. All are optional: the display works without them, and consumers may wire their own actions.
next_month_buttonPropertyAdvances the calendar to the next month when pressed.
current_month_buttonPropertyReturns the calendar to the current month when pressed.
close_buttonPropertyHides the calendar display when pressed.
context_labelPropertyLabel that shows the calendar's current context or title.
live_date_labelPropertyOptional label showing the bound clock's live date.
toggle_actionPropertyTriggers the UI to switch visibility for showing / hiding when the action name is pressed [br][br] (Set in ProjectSettings -> InputMap)
auto_switch_to_current_datePropertyWhether to automatically switch to the current month and year on date change
shown_yearPropertyThe year that the calendar display is showing. When changed, refreshes the UI for the new year.
refreshMethod
clearMethod
setup_tabsMethod
toggle_displayMethod
go_to_current_monthMethod
go_to_previous_monthMethod
go_to_next_monthMethod