Shop2Vars
Index
Variables
BuyItems
All (filtered) items that can still be bought
ClothesMode
The current dressing state of the preview character
readonlyDefaults
Default values that should be restored to the container upon calling Reset
DropdownState
The currently active dropdown menu
EquippedItem
The item (if any) currently equipped in preview mode
Filters
A record mapping filter ID to filter callbacks. Each callback is expected to return a list denoting for which modes the item is to-be shown. Note that an item will only be shown if the respective mode is included in the output list of every callback.
Page
The current page
PreviewItems
All (filtered) items that can be equipped in preview mode
Push
Whether any item has been bought or sold, thus requiring a push to the server
SellItems
All (filtered) items that can still be sold
Functions
readonlyReset
Returns void
Accessors
CurrentAssets
Get all <=12 assets given the current Shop2Vars.Page and Shop2Vars.Mode.
Returns readonly ShopItem[]
Mode
PageCount
Get the maximum number of pages for the current Shop2Vars.Mode.
Returns number
Namespace with shop-specific variables that are expected to mutate over the course of the (sub-)screens lifetime