A class in Root.Township, Alta.Customization.
One entry in the customization category scroller. Shows a cosmetic category's icon and switches the cosmetic list to it when pressed.
Constructors
| Member | What it is |
|---|
CategoryScrollElement() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|
private Animator animator | Animator with the Visible flag. |
private CosmeticScrollManager cosmeticManager | Cosmetic scroll manager switched when pressed. |
private SpriteRenderer icon | Sprite renderer for the category icon. |
private CategoryScrollManager manager | Category scroll manager that lists the available categories. |
Properties
| Member | What it is |
|---|
PlayerCosmeticCategory Category { get; private set; } | The cosmetic category this element shows. |
Methods
| Member | What it is |
|---|
override void Hide() | Hides the element through its animator. |
void Pressed() | If shown, tells the cosmetic scroll manager to show this category. |
override void Show(int index) | Picks the available category for the index (wrapping), sets the icon and shows it. |