SusConfirmQuitContent

Leave-session confirm panel — fixed warning copy plus Leave / Cancel buttons (no Prop<>).
Package
SusGame · Screens (commercial)
Props
No public props.
Slots
No slots.
Events
No public events.
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
sus-alert__bodysus-alert__iconsus-alert__textsus-confirm-quit-contentsus-confirm-quit-content__hint
Usage
Mount as modal content; wire LeaveBtn / CancelBtn from the host.
xml
<template>
<sus:SusConfirmQuitContent />
</template>
<script>
// No Prop<> — fixed heading/hint. Wire LeaveBtn / CancelBtn after mount.
</script>csharp
var quit = new SusConfirmQuitContent();
// After mount:
quit.LeaveBtn.OnClick += () => { /* leave to menu */ };
quit.CancelBtn.OnClick += () => { /* dismiss */ };| Prop / API | Role |
|---|---|
LeaveBtn | Danger «Leave to Menu» |
CancelBtn | Outlined cancel |
Notes
- Copy is hardcoded («Leave session?» / progress warning) — change requires package fork or overlay labels from host.
- Content-only: host owns dismiss / route.