Skip to content

SusMatchResult ​

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)

Open in Playground

SusGame · Screens

Props

NameTypeDefault
OutcomeProp<string>"victory"
KickerProp<string>""
TitleProp<string>""
ReasonProp<string>""
RankLabelProp<string>""
ExpandIconProp<string>"arrows-out"
DockTextProp<string>""

Slots

No slots.

Events

NameFieldPayload
DockOnDock—
ExpandOnExpand—

Style hooks ​

USS class contract — override appearance without touching C#. States toggle via these classes:

  • sus-hidden
  • sus-match-result
  • sus-match-result__actions
  • sus-match-result__dock
  • sus-match-result__expand
  • sus-match-result__growth
  • sus-match-result__growth--empty
  • sus-match-result__growth-key
  • sus-match-result__growth-row
  • sus-match-result__growth-status
  • sus-match-result__growth-value
  • sus-match-result__head
  • sus-match-result__kicker
  • sus-match-result__line
  • sus-match-result__rank
  • sus-match-result__rank--empty
  • sus-match-result__rank-arrow
  • sus-match-result__rank-badge
  • sus-match-result__rank-badges
  • sus-match-result__rank-key
  • sus-match-result__rank-same
  • sus-match-result__reason
  • sus-match-result__summary
  • sus-match-result__summary-cell
  • sus-match-result__summary-key
  • sus-match-result__summary-value
  • sus-match-result__title
  • sus-match-result--defeat
  • sus-match-result--victory

Usage ​

xml
<sus:SusMatchResult />
csharp
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 / APIRole
Outcome / Kicker / Title / Reason / RankLabelCard 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 / OnDockSecondary action in ActionsHost: empty (default) = no button; clicking fires OnDock
ExpandIcon / OnExpandIcon inside the expand button (default arrows-out, empty = no glyph); the button shows only inside a docked host
ActionsHost / DockBtnAction 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.