Skip to main content

ScrollManager

An abstract class in Root.Township, Alta.Customization.

Base for a scrolling grid of cosmetic items in the customization room. Holds the item hashes and resizes the scroller when they change.

Constructors​

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

Fields​

6 private and internal fields
MemberWhat it is
private int columnCountColumns per page.
private int columnSizeItems per column.
private CosmeticCustomizationManager customizationManagerBacking field for CustomizationManager.
private List<uint> itemsBacking field for Items.
private ItemScroller itemScrollerThe scroller that shows the grid.
private CosmeticScrollSource targetThe scroll source that receives the items.

Properties​

MemberWhat it is
CosmeticCustomizationManager CustomizationManager { get; }The cosmetic customization manager this grid works with.
List<uint> Items { get; set; }Hashes of the items in the grid. Setting it calls OnItemsChanged.

Events​

MemberWhat it is
event Action ItemsChangedRaised when the item list changes.

Methods​

MemberWhat it is
void OnItemsChanged()Resizes the scroller to fit the items, raises ItemsChanged and passes the items to the scroll source.

Used in​

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