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 ControlMembers
| Name | Kind | Summary |
|---|---|---|
ClockValidator | Field | `ClockValidator` is preloaded here to validate the clock bound to this dial. |
clock | Property | This clock's time positions the dial handle. |
start | Property | Time where the dial starts moving from. |
end | Property | Time where the dial reaches the end of its visual range. |
clamp_to_range | Property | Clamp times outside the shown range to the start/end rotations. |
start_handle_rotation_degrees | Property | Handle rotation at start time. For the bundled handle PNG this visually points left because the unrotated image points up. |
end_handle_rotation_degrees | Property | Handle rotation at end time. For the bundled handle PNG this visually points right after sweeping across the upper half of the dial. |
clockwise | Property | true sweeps clockwise as ratio increases; false sweeps counter-clockwise. |
handle | Property | Handle texture control rotated to point at the current hour. |
update_handle | Method |