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
| Member | What it is |
|---|
protected ScrollManager() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
6 private and internal fields
| Member | What it is |
|---|
private int columnCount | Columns per page. |
private int columnSize | Items per column. |
private CosmeticCustomizationManager customizationManager | Backing field for CustomizationManager. |
private List<uint> items | Backing field for Items. |
private ItemScroller itemScroller | The scroller that shows the grid. |
private CosmeticScrollSource target | The scroll source that receives the items. |
Properties
| Member | What 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
| Member | What it is |
|---|
event Action ItemsChanged | Raised when the item list changes. |
Methods
| Member | What 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: