Skip to main content

Bugreportscreen

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

Overview

BugReportScreen is a UI screen that allows players to compose and submit bug reports through the game's native bug reporting system (TheSim:FileBugReport). It presents a full-screen overlay with a darkened background, a centered panel containing a large text input field for the bug description, and action buttons (Cancel and Submit). The screen inherits from Screen, integrates standard DST UI widgets (TextEdit, ImageButton, Text), and uses localized strings for interface elements.

Usage example

local BugReportScreen = require "screens/bugreportscreen"
local screen = BugReportScreen()
TheFrontEnd:PushScreen(screen)
-- Player types bug details into the text field and presses Submit
-- On Submit, the description is sent to TheSim:FileBugReport()

Dependencies & tags

Components used: None identified.
Tags: None identified.

Properties

PropertyTypeDefault ValueDescription
blackImagenilFull-screen dark overlay (alpha = 0.95) to dim the background.
rootWidgetnilRoot container widget for the dialog content.
titleTextnilHeader text showing the screen's description label.
description_textTextEditnilPrimary text input field for the bug report.
cancel_buttonImageButtonnilButton to dismiss the screen without submitting.
submit_buttonImageButtonnilButton to trigger bug report submission.

Main functions

OnBecomeActive()

  • Description: Activates the screen and gives keyboard focus to the description text input field for immediate typing.
  • Parameters: None.
  • Returns: Nothing.
  • Error states: Calls base Screen.OnBecomeActive() before applying focus.

FileBugReport()

  • Description: Reads the current text from description_text, sends it to TheSim:FileBugReport(), and displays a success/failure dialog using PopupDialogScreen.
  • Parameters: None.
  • Returns: Nothing.
  • Error states: If TheSim:FileBugReport() returns false, the screen shows a failure dialog instead of success; in both cases, the dialog includes an OK button to close the report dialog and optionally the main bug report screen (only on success is the main screen popped twice).

Events & listeners

  • Listens to: None identified.
  • Pushes: None identified.