Skip to main content

Mvploadingwidget

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

Overview

MVPLoadingWidget is a UI widget that displays a curated list of MVP players and their performance metrics from the most recent match session. It dynamically constructs and arranges card-style widgets — each representing a player — using lobby results data (from Settings.match_results or TheFrontEnd.match_results). Cards include player avatars (either via PlayerBadge or PlayerAvatarPortrait), names, stat titles, score values, and localized descriptions, all arranged in a radial carousel layout. The widget is non-interactive (SetClickable(false)) and is typically used during loading screens or post-match result transitions.

Usage example

local widget = MakeWidget("MVPLoadingWidget")
widget:Setup()
widget:PopulateData()

Dependencies & tags

Components used: None identified
Tags: Uses PlayerBadge, PlayerAvatarPortrait, Text, ImageButton, ScrollableList, and Widget utilities via require().

Properties

PropertyTypeDefault ValueDescription
list_rootWidgetnilRoot container widget for MVP card widgets. Created during construction.
mvp_widgetstable{}List of child widgets representing individual MVP cards. Populated by PopulateData().
total_widthnumber0Unused (not updated anywhere).
current_eventidstringstring.upper(TheNet:GetServerGameMode())Uppercase identifier for the current server game mode (e.g., "SURVIVAL", "ROGUE"), used to fetch localized MVP strings.

Main functions

PopulateData()

  • Description: Clears and rebuilds the carousel of MVP cards based on lobby match results. Dynamically configures each card with player info, stat titles, and visual styling using hardcoded animationbanks, UI textures, and localizable strings (STRINGS.UI.MVP_LOADING_WIDGET). Arranges widgets in a radial layout.
  • Parameters: None.
  • Returns: Nothing.
  • Error states: Safe no-op if mvp_cards is nil or empty.

SetAlpha(a)

  • Description: Stub method; currently empty.
  • Parameters: a (number) — intended alpha value (ignored).
  • Returns: Nothing.

Events & listeners

None identified