Skip to content
ct

Class

GameClockSpeedSlider

Generated GDScript class reference for CalendarTime.GameClockSpeedSlider.

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

Slider for one GameClock's runtime speed multiplier. Keep this slider and parent in PROCESS_MODE_ALWAYS. Inherited pause mode can block input after engine playback pauses the tree.

Source: addons/calendar_time/ui/time_speed/game_clock_speed_slider.gd

Syntax

class GameClockSpeedSlider extends Slider

Members

NameKindSummary
slider_time_multipliersPropertyTime speed values for ticks in the slider. Reassigning rebuilds the slider range and tick count so the control stays usable. An empty list is rejected by the `_ready` authoring guard, which falls back to one deterministic tick.
unpause_requestedSignalEmitted when this control resumes the SceneTree. Demo UI can use this to let the engine playback control restore its last running speed and visual label.
speed_prefixPropertyPrefix label shown before the clock speed value.
unpause_tree_on_speed_changePropertySelecting any non-paused clock speed resumes the SceneTree by default so the calendar-speed control can act as a visible resume control in the demo.
clockPropertyClock whose timeline is controlled. This intentionally does not touch Engine.time_scale.
labelPropertyDescribes the current speed selection on this label.
value_labelPropertyShows the speed slider's numeric value on this label.
set_labelMethod
CLOCK_SPEED_MULTIPLIERFieldClock speed multiplier is serialized under this key.
to_dictMethod
from_dictMethod