ICustomizationCategory
An interface in Root.Township, Alta.Customization.
A category of customization items, such as a cosmetic slot, as shown in the customization menus.
- Listed in Customization and screenshots
- Derived types
CustomizationCategory
Properties
| Member | What it is |
|---|---|
Sprite Icon { get; } | The category's menu icon. |
bool IsActive { get; } | Whether the category is used at all. Inactive ones aren't loaded. |
bool IsVisible { get; } | Whether the category is shown in the customization menu. |
string Name { get; } | The category's name. |
float PickupScale { get; } | Scale applied to this category's items when shown as pickups. |
int Priority { get; } | Sort order. Lower comes first. |
ItemCategory Type { get; } | The category's item category in the Alta API. |
Methods
| Member | What it is |
|---|---|
uint GetRandom(ICollection<uint> items, bool canUseNonOwnedItems) | Picks a random item from a collection, or none. |
ICustomizationDefinition GetRandom(ICollection<ICustomizationDefinition> items) | Picks a random item from a collection, or none. |
void SetPickupScale(float scale) | Sets PickupScale. |
Used in
Members of other types that take, return or hold a ICustomizationCategory: