Skip to content

SusConfirmQuitContent

SusConfirmQuitContent

Leave-session confirm panel — fixed warning copy plus Leave / Cancel buttons (no Prop<>).

Package

SusGame · Screens (commercial)

Open in Playground

SusGame · Screens

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__body
  • sus-alert__icon
  • sus-alert__text
  • sus-confirm-quit-content
  • sus-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 / APIRole
LeaveBtnDanger «Leave to Menu»
CancelBtnOutlined cancel

Notes

  • Copy is hardcoded («Leave session?» / progress warning) — change requires package fork or overlay labels from host.
  • Content-only: host owns dismiss / route.