Skip to main content

CinematicsPanel

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

Overview

CinematicsPanel is a UI panel widget that provides access to cinematic and related frontend screens. It is typically presented as part of a larger options or menu interface, offering interactive buttons to play the intro movie, view credits, and open the official video channel. It extends Widget and is not tied to any entity in the Entity Component System; instead, it operates purely in the UI layer during frontend navigation.

Usage example

-- Example usage in a frontend screen context
local CinematicsPanel = require "screens/redux/panels/cinematicspanel"
local panel = CinematicsPanel(parent_screen)
-- The panel is automatically wired with buttons and layout
-- and activated by parent_screen when displayed

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
parent_screenscreennilReference to the parent screen that instantiated this panel.
rootWidgetCreated in constructorRoot container widget for the panel's UI hierarchy.
dialogWidgetCreated in constructorOuter container (rectangle window) for the panel content.
title_rootWidgetCreated in constructorContainer for the panel title and divider.
buttonstableEmpty tableArray of button widgets (StandardButton), populated in constructor.
gridGridCreated in constructorGrid used to arrange the buttons horizontally.
focus_forwardWidgetself.gridThe widget that receives focus when this panel is active.

Main functions

CinematicsPanel(parent_screen)

  • Description: Constructor. Initializes the UI layout, title, and interactive buttons for the intro movie, credits, and optional video channel (if Steam is detected). Attaches to parent_screen and sets up the focus chain.
  • Parameters: parent_screen (screen) — The parent UI screen to return to after navigating away (e.g., credits or movie dialog).
  • Returns: CinematicsPanel instance.
  • Error states: None documented.

Events & listeners

  • Listens to: None identified
  • Pushes: None identified