Skip to content

PC UX: Add 'Quit/Leave' Button or Exit Confirmation Prompt (ESC / Window Close) #30

@tajemniktv

Description

@tajemniktv

Summary

Add a clear way to leave/quit the game on PC (e.g., from the ESC menu), and/or show an exit confirmation prompt when the player attempts to quit (via ESC menu or closing the window).

Motivation / Problem

Players want a straightforward “Leave/Quit” flow on PC:

  • Pressing ESC should provide a visible Quit/Leave option, or
  • If quitting is triggered via ESC/menu or window close, the game should ask for confirmation to prevent accidental exits.

Proposed Solution

Option A — Quit/Leave button in ESC menu (recommended)

  • Press ESC → menu opens → include:
    • Quit to Desktop (or Leave Game)
    • Optional: Return to Main Menu (if applicable)

Option B — Exit confirmation prompt

When the user attempts to exit via:

  • ESC → Quit
  • Window close (X button / Alt+F4)
    Show a confirmation modal:
  • Title: “You are about to quit”
  • Text: “Are you sure you want to exit the game?”
  • Buttons: Cancel (default) / Confirm

UX details

  • If there is unsaved progress risk, optionally add:
    • “Progress will be saved automatically” or “Unsaved changes may be lost” (depending on reality)
  • Allow ESC to close the prompt (cancel), Enter to confirm (optional).

Acceptance Criteria

  • ESC menu includes a clear Quit/Leave option on PC (or equivalent discoverable path).
  • Attempting to quit shows a confirmation prompt (at least for one exit path; ideally both ESC-quit and window close).
  • Confirmation prompt prevents accidental exits.
  • Behavior is consistent and does not trap the player (always possible to cancel).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions