Skip to content
ct

Class

TimeDial

Generated GDScript class reference for CalendarTime.TimeDial.

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

Displays time of day by rotating a handle control. Default range: midnight left (270°), noon top (360°), end of day right (450°). Matches bundled time_dial/handle.png art pointing up at 0°. Adjust start/end rotation when custom pointer art points elsewhere.

Source: addons/calendar_time/ui/time_dial.gd

Syntax

class TimeDial extends Control

Members

NameKindSummary
ClockValidatorField`ClockValidator` is preloaded here to validate the clock bound to this dial.
clockPropertyThis clock's time positions the dial handle.
startPropertyTime where the dial starts moving from.
endPropertyTime where the dial reaches the end of its visual range.
clamp_to_rangePropertyClamp times outside the shown range to the start/end rotations.
start_handle_rotation_degreesPropertyHandle rotation at start time. For the bundled handle PNG this visually points left because the unrotated image points up.
end_handle_rotation_degreesPropertyHandle rotation at end time. For the bundled handle PNG this visually points right after sweeping across the upper half of the dial.
clockwisePropertytrue sweeps clockwise as ratio increases; false sweeps counter-clockwise.
handlePropertyHandle texture control rotated to point at the current hour.
update_handleMethod