Skip to main content

Endgamedialog

Based on game build 714004 | Last updated: 2026-03-09

Overview

EndGameDialog is a UI screen component that presents an overlay for the endgame experience. It darkens the background, displays a title and body text (currently hardcoded as a placeholder), and renders a horizontally-aligned menu of buttons passed at construction time. It inherits from Screen, meaning it integrates into the global screen stack managed by TheFrontEnd.

Usage example

local EndGameDialog = require "screens/endgamedialog"
local buttons = {
{ text = "Play Again", cb = function() end },
{ text = "Main Menu", cb = function() end }
}
TheFrontEnd:PushScreen(EndGameDialog(buttons))

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
blackImagenilFull-screen black overlay to dim background content.
prootWidgetnilRoot widget for proportional scaling of dialog contents.
bgImagenilBackground panel image (panel_upsell.tex).
titleTextnilTitle text widget using TITLEFONT, size 50.
textTextnilBody text widget using BODYTEXTFONT, size 30, with word wrap enabled.
menuWidgetnilContainer widget for button layout.
buttonstablenilCopy of the button configuration table passed to constructor.
default_focusImageButtonnilLast created button, used for UI focus targeting.

Main functions

No publicly exposed functional methods beyond inherited Screen behavior (e.g., Show, Hide, OnRemove). The constructor handles all initialization.

Events & listeners

  • Listens to: None identified
  • Pushes: None identified