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
| Member | What it is |
|---|
ShopInterfaceItem() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private TextRenderer costText | Text showing the final price. |
private TextRenderer nameText | Text showing the item name. |
Properties
| Member | What 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
| Member | What 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: