Skip to main content

Skin Gifts

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

Overview

skin_gifts.lua is a data module that defines two core lookup structures: SKIN_GIFT_TYPES maps skin item prefab names to their associated gift event categories (e.g., "TWITCH_DROP", "CUPID"), and SKIN_GIFT_POPUPDATA defines the visual configuration for gift-related UI popups (including atlas, image, and title offset values). This module is not a component but a configuration data module intended to be required elsewhere (e.g., by UI or item logic) to standardize how gift items are categorized and displayed.

Usage example

local skin_gifts = require "skin_gifts"

-- Look up the gift type for a given skin item
local gift_type = skin_gifts.types["torch_nautical"] -- returns "TWITCH_DROP"

-- Retrieve popup data for a gift type
local popup_config = skin_gifts.popupdata["CUPID"]
-- Returns atlas, image, and titleoffset values for Cupid-themed gifts

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
typestable(see source)Map of skin item prefab names (strings) to gift event type identifiers (strings), e.g., "TWITCH_DROP" or "CUPID".
popupdatatable(see source)Map of gift event type identifiers to visual configuration tables (each with atlas, image, and titleoffset keys; some include title_size).

Main functions

Not applicable

Events & listeners

Not applicable