SusMatchResult

End-of-match result panel — victory or defeat title with a reason line, summary, growth and rank blocks, and expand and dock actions.
Package
SusGame · Screens (commercial)
Props
| Name | Type | Default | |
|---|---|---|---|
Outcome | Prop<string> | "victory" | |
Kicker | Prop<string> | "" | |
Title | Prop<string> | "" | |
Reason | Prop<string> | "" | |
RankLabel | Prop<string> | "" | |
ExpandIcon | Prop<string> | "arrows-out" | |
DockText | Prop<string> | "" |
Slots
Events
| Name | Field | Payload |
|---|---|---|
Dock | OnDock | — |
Expand | OnExpand | — |
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
sus-hiddensus-match-resultsus-match-result__actionssus-match-result__docksus-match-result__expandsus-match-result__growthsus-match-result__growth--emptysus-match-result__growth-keysus-match-result__growth-rowsus-match-result__growth-statussus-match-result__growth-valuesus-match-result__headsus-match-result__kickersus-match-result__linesus-match-result__ranksus-match-result__rank--emptysus-match-result__rank-arrowsus-match-result__rank-badgesus-match-result__rank-badgessus-match-result__rank-keysus-match-result__rank-samesus-match-result__reasonsus-match-result__summarysus-match-result__summary-cellsus-match-result__summary-keysus-match-result__summary-valuesus-match-result__titlesus-match-result--defeatsus-match-result--victory
Usage
<sus:SusMatchResult />var result = new SusMatchResult();
result.Outcome.Value = "victory";
result.Title.Value = "Victory";
result.Reason.Value = "All objectives held";
result.SetSummary(new[] { ("12", "Kills"), ("3:41", "Time") });
result.SetGrowth(rows: null); // no data yet: hides the growth block
result.SetRank(null); // no data yet: hides the rank block| Prop / API | Role |
|---|---|
Outcome / Kicker / Title / Reason / RankLabel | Card texts |
SetSummary(cells) | Summary cells (value + key) |
SetGrowth(rows, statusText) | Growth rows plus an optional status line |
SetRank(oldRank, promoted, newRank, sameLabel) | Rank badge, promotion arrow or "same rank" caption |
DockText / OnDock | Secondary action in ActionsHost: empty (default) = no button; clicking fires OnDock |
ExpandIcon / OnExpand | Icon inside the expand button (default arrows-out, empty = no glyph); the button shows only inside a docked host |
ActionsHost / DockBtn | Action row and the dock button |
Empty growth and rank
SetGrowth with no rows and no status, and SetRank(null) (or an empty old rank), mean "no data yet": the block is hidden through sus-match-result__growth--empty / sus-match-result__rank--empty. Never calling them keeps the blocks as before.
Inside SusGameSessionScreenContent with ResultView = "match", the session's continue button is moved into ActionsHost, and the dock button folds the card into the side panel. There SusGameSessionScreen.ShowVictory / ShowDefeat / ShowDraw fill Title, Reason and the outcome for you, unless you set Title or Reason yourself.