Skip to main content

CosmeticScrollManager

A class in Root.Township, Alta.Customization.

Client: a scroll list of the cosmetics the local player owns in one category. Fills itself from CustomizationManager.Owned once customization has loaded.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private PlayerCosmeticCategory currentCategoryThe category currently listed.
private PlayerCosmeticCategory initialCategoryCategory shown when the list first starts.

Methods​

MemberWhat it is
void UpdateCategory(PlayerCosmeticCategory category)Switches the list to another cosmetic category and refills it with the owned options in it. Does nothing if it's already showing that category.
2 private and internal methods
MemberWhat it is
private void Start()Shows initialCategory, or waits for CustomizationManager.OnInitialized if owned cosmetics aren't loaded yet.
private void UpdateCategories()Handler for CustomizationManager.OnInitialized that shows initialCategory.

Used in​

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