Skip to main content

Characterloadoutselectscreen

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

Overview

CharacterLoadoutSelectScreen is a UI screen component that presents a character selection interface prior to entering the character loadout popup. It overlays a darkened background and presents a scrollable list of characters using the CharacterSelect widget, alongside a contextual menu with navigation and selection options. This screen is part of the front-end flow for character customization and works with CharacterLoadoutPopupScreen to prepare profile-specific loadouts.

Usage example

-- Typically instantiated and pushed by the frontend during character setup
TheFrontEnd:PushScreen(CharacterLoadoutSelectScreen(profile))
-- User selects a character and presses SELECT to open loadout popup

Dependencies & tags

Components used: None (UI-only, no components attached to self.inst) Tags: None identified

Properties

PropertyTypeDefault ValueDescription
blackImagenilFull-screen dark overlay with 75% opacity.
prootWidgetnilRoot widget container for proportional scaling.
rootWidgetnilAbsolute-position root widget, offset to screen origin.
panelWidgetnilCurly-window styled container for UI elements.
panel_bgImagenilDecorative panel background image.
character_listCharacterSelectnilCharacter selection widget instance.
titleTextnilTitle text display ("PICK").
menuMenunilAction menu containing BACK and SELECT buttons.
default_focusWidgetself.menuDefault input focus target.
repeat_timenumber0Scroll cooldown timer for character_list.
no_cancelbooleanfalseFlag controlling whether CANCEL control is accepted.

Main functions

CharacterLoadoutSelectScreen:OnBecomeActive()

  • Description: Called when the screen becomes active. Ensures the screen is shown.
  • Parameters: None.
  • Returns: Nothing.

CharacterLoadoutSelectScreen:Close()

  • Description: Closes this screen by popping it from the front-end stack.
  • Parameters: None.
  • Returns: Nothing.

CharacterLoadoutSelectScreen:OnControl(control, down)

  • Description: Handles user input controls including scrolling (mouse/keyboard/stick), selection, and cancellation.
  • Parameters: control (control constant) — the input control being triggered; down (boolean) — whether the control is pressed (true) or released (false).
  • Returns: true if the control was handled; false otherwise.

CharacterLoadoutSelectScreen:ScrollBack(control)

  • Description: Scrolls the character list backward (to previous character), playing a UI sound and setting a repeat timer to prevent rapid repeated scrolling on held input.
  • Parameters: control (control constant) — used to determine the appropriate repeat delay.
  • Returns: Nothing.

CharacterLoadoutSelectScreen:ScrollFwd(control)

  • Description: Scrolls the character list forward (to next character), playing a UI sound and setting a repeat timer.
  • Parameters: control (control constant) — used to determine the appropriate repeat delay.
  • Returns: Nothing.

CharacterLoadoutSelectScreen:GetHelpText()

  • Description: Generates localized help text describing available controls (BACK and character change).
  • Parameters: None.
  • Returns: string — concatenated help message, e.g., "X / Y Change Character".

Events & listeners

  • Listens to: nil — this component does not register event listeners via inst:ListenForEvent.
  • Pushes: nil — this component does not fire custom events via inst:PushEvent.