Skip to content

SusObjectivePanel

SusObjectivePanel

Mission objectives card — title + bullet list of strings.

Package

SusGame · HUD (commercial)

Open in Playground

SusGame · HUD

Props

NameTypeDefault
TitleProp<string>"Objectives"
VisibleProp<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-panel
  • sus-objective-panel__bullet
  • sus-objective-panel__list
  • sus-objective-panel__row
  • sus-objective-panel__text
  • sus-objective-panel__title
  • sus-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 / APIRole
TitleHeader text (default Objectives)
VisibleToggles --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.