Skip to main content

Obituariespanel

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

Overview

ObituariesPanel is a UI widget component that displays a scrolling list of player death records retrieved from Morgue:GetRows(). It renders each obituary row with structured columns: days survived, deceased character, cause of death, and server name (mode). The panel uses a custom scrolling grid, dynamic text truncation, localized strings, and supports both keyboard and controller input via focus handling.

Usage example

local ObituariesPanel = require "screens/redux/panels/obituariespanel"
local parent_screen = -- a valid screen instance
local panel = ObituariesPanel(parent_screen)
-- The panel is automatically initialized and integrated into the parent screen's widget hierarchy

Dependencies & tags

Components used: None identified
Tags: Adds no tags to entities.

Properties

PropertyTypeDefault ValueDescription
parent_screenwidgetnilThe screen that owns this panel; used to access context like obits_scroll_list.
morguetableMorgue:GetRows()The list of obituary data rows (loaded during construction).
rootwidgetnilRoot widget container for the panel.
dialogwidgetnilThe main nineslice-window container.
obits_scroll_listwidgetnilThe scrolling grid widget rendering obituaries.
focus_forwardwidgetself.obits_scroll_listThe widget that receives focus when this panel gains focus.

Main functions

DoInit()

  • Description: Initializes the scrolling grid widget that renders the obituaries. Must be called after constructor to build the UI content.
  • Parameters: None.
  • Returns: Nothing.
  • Error states: None.

Events & listeners

This component does not define or respond to any game events.