Quick Start
Functions
showTimeline
showTimeline
Display a timeline with tasks to the player.Parameters:
data(table) - Timeline configuration object (see Options)
hideTimeline
hideTimeline
Hide a specific timeline.Parameters:
id(string) - Unique identifier of the timeline to hide
Timeline state is not preserved when hidden. You must pass the full configuration when showing again.
updateTimelineTask
updateTimelineTask
Update one or multiple task statuses.Parameters (Single Task):
timelineId(string) - Unique identifier of the timelinetaskId(string) - Unique identifier of the task to updatestatus(string) - New status:'pending','active','completed','failed'
timelineId(string) - Unique identifier of the timelinetasksArray(table) - Array of task objects withidandstatusproperties
addTimelineTask
addTimelineTask
Add a new task to an existing timeline.Parameters:
timelineId(string) - Unique identifier of the timelinetask(table) - Task object (see Tasks)
updateTimeline
updateTimeline
Update timeline properties (title, description, icon, etc.).Parameters:
timelineId(string) - Unique identifier of the timelineupdates(table) - Object containing properties to update (see Options)
getActiveTimeline
getActiveTimeline
Get the ID of the currently active timeline.Returns:
timelineId(string | nil) - The ID of the active timeline, or nil if none is active
Configuration
Options
Unique timeline identifier
Timeline title (supports markdown)
Timeline description (supports markdown)
Timeline position on screenAvailable options:
'top-left', 'top-center', 'top-right', 'left-center', 'center', 'right-center', 'bottom-left', 'bottom-center', 'bottom-right'FontAwesome icon class
Icon color (hex or CSS color name)
Icon animation typeAvailable options:
'spin', 'spinPulse', 'spinReverse', 'pulse', 'beat', 'fade', 'beatFade', 'bounce', 'shake'Background opacity (0.0-1.0)
Tasks
Each task object in thetasks array supports:
Unique task identifier
Task display text (supports markdown)
Task description (supports markdown)
Task statusAvailable options:
'pending', 'active', 'completed', 'failed'FontAwesome icon class
Overrides default status icon
Icon color (hex or CSS color name)
Automatically determined by task status if not specified
Icon animation type
Examples
Preview

