Skip to main content

Skinsitempopup

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

Overview

SkinsItemPopUp is a UI screen component that displays detailed information about a selected item skin in a modal dialog. It includes the player's name, skin name, description, rarity, and a dynamic visual preview using an animation. The screen uses standard DST UI primitives (buttons, text, images, anims) and integrates with the TheFrontEnd screen stack for navigation.

Usage example

-- Example of opening the skins item popup
TheFrontEnd:PushScreen(SkinsItemPopUp("hat", "Wendy", {1, 0.8, 0.6, 1}))

Dependencies & tags

Components used: None (pure UI screen with no entity components).
Tags: None identified.

Properties

PropertyTypeDefault ValueDescription
blackImagenilFull-screen dark overlay (tinted to 75% opacity black).
prootWidgetnilRoot widget container for the dialog content.
frameTemplatenilCurly window frame widget.
bgImagenilBackground fill panel.
player_labelTextnilLabel showing the player's name with custom color.
titleTextnilStatic title label (localized via STRINGS.UI.ITEM_SCREEN.NORMAL_POPUP_TITLE).
skin_nameTextnilLabel displaying the skin's name (wrapped, left-aligned).
skin_descriptionTextnilLabel displaying the skin's description (wrapped, left-aligned).
rarity_labelTextnilLabel for rarity text (hidden by default).
upper_horizontal_lineImagenilDecorative horizontal line below player label/title.
lower_horizontal_lineImagenilDecorative horizontal line below description.
spawn_portalUIAnimnilAnimation element showing a preview of the skin.
menuMenunilAction menu containing the OK button.
item_typestring""Internal type identifier of the skin.

Main functions

SetItemDisplay()

  • Description: Updates the UI content with the name, description, rarity, and visual preview for the currently assigned item_type. Should be called after initialization to populate the dialog.
  • Parameters: None.
  • Returns: Nothing.
  • Error states: Falls back to placeholder strings if GetSkinName(item_type) or GetSkinDescription(item_type) returns nil.

Events & listeners

  • Listens to: CONTROL_CANCEL (from OnControl) – closes the screen when the cancel control is released.
  • Pushes: None.