HudOptions
Since 0.6
Signature
export interface HudOptions {
/** String table; defaults to `resolveStrings(ctx)`. */
strings?: Strings | Record<string, string>
/** Goals to track; defaults to every `goal` component in the scene. */
goals?: GoalSpec[]
/** Event that marks a goal reached. */
goalEvent?: string
/** Custom HUD field for "2/5"; null to not publish progress. */
progressField?: string | null
/** Objective key shown once every goal is reached; null clears the objective instead. */
completeKey?: string | null
/** Emitted once when a countdown started with `startTimer` reaches zero. */
timerEvent?: string
}
Import: import type { HudOptions } from "@argus/gameplay"
Members
| Member | Signature | Description |
|---|---|---|
strings | strings?: Strings | Record<string, string> | String table; defaults to resolveStrings(ctx). |
goals | goals?: GoalSpec[] | Goals to track; defaults to every goal component in the scene. |
goalEvent | goalEvent?: string | Event that marks a goal reached. |
progressField | progressField?: string | null | Custom HUD field for "2/5"; null to not publish progress. |
completeKey | completeKey?: string | null | Objective key shown once every goal is reached; null clears the objective instead. |
timerEvent | timerEvent?: string | Emitted once when a countdown started with startTimer reaches zero. |