SusObjectivePanel

Mission objectives card — title + bullet list of strings.
Package
SusGame · HUD (commercial)
Props
| Name | Type | Default | |
|---|---|---|---|
Title | Prop<string> | "Objectives" | |
Visible | Prop<bool> | true |
Slots
No slots.
Events
No public events.
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
sus-objective-panelsus-objective-panel__bulletsus-objective-panel__listsus-objective-panel__rowsus-objective-panel__textsus-objective-panel__titlesus-objective-panel--hidden
Usage
Bind title / visibility; fill lines from code with SetObjectives.
csharp
var panel = new SusObjectivePanel();
panel.Title.Value = "Objectives";
panel.Visible.Value = true;
panel.SetObjectives(new[]
{
"Secure the landing zone",
"Extract the VIP",
});xml
<template>
<sus:SusObjectivePanel :Title="Title.Value"
:Visible="Show.Value" />
</template>
<script>
public Prop<string> Title = new("Objectives");
public Prop<bool> Show = new(true);
// Call SetObjectives after mount (list host is resolved in Mounted).
</script>| Prop / API | Role |
|---|---|
Title | Header text (default Objectives) |
Visible | Toggles --hidden |
SetObjectives(lines) | Replace bullet rows (IEnumerable<string>) |
Notes
- Empty list until
SetObjectives— call after mount (or after the list host exists). - Each line becomes a
•+ label row; no rich status / completion API on this component.