Skip to main content

ShopInterfaceItem

A class in Root.Township, Alta.Customization.

One row in the in-game cosmetic shop, showing an item's name and price. Created by ShopInterface.

Constructors​

MemberWhat it is
ShopInterfaceItem()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private TextRenderer costTextText showing the final price.
private TextRenderer nameTextText showing the item name.

Properties​

MemberWhat it is
uint Hash { get; private set; }Compressed hash of the item's SKU.
ShopItemDetailedForUser ShopItem { get; private set; }The shop item from the API that this row shows.

Methods​

MemberWhat it is
void Setup(ShopItemDetailedForUser shopItem)Stores the shop item, hashes its SKU and fills in the name and price text.

Used in​

Members of other types that take, return or hold a ShopInterfaceItem: