Class CustomSelector<T, TMapper>
Base class for the selectors of custom mapper types.
Namespace: Modding.Mapper
Assembly: Assembly-CSharp.dll
Syntax
public abstract class CustomSelector<T, TMapper> : Selector where TMapper : MCustom<T>
Type Parameters
Name | Description |
---|---|
T | Underlying type of the mapper type. |
TMapper | Mapper type this selector is associated to. |
Constructors
CustomSelector()
Declaration
protected CustomSelector()
Fields
Elements
Provides utility methods for creating common interface elements.
Declaration
protected SelectorElements Elements
Field Value
Type | Description |
---|---|
SelectorElements |
Materials
Provides access to materials commonly found in mapper UI.
Declaration
protected SelectorMaterials Materials
Field Value
Type | Description |
---|---|
SelectorMaterials |
Properties
Background
Background object of the selector.
Declaration
protected Transform Background { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Transform |
Content
Hierarchy parent of the created UI.
Declaration
protected Transform Content { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Transform |
CustomMapperType
Gives access to the underlying mapper type.
Declaration
protected TMapper CustomMapperType { get; }
Property Value
Type | Description |
---|---|
TMapper |
Methods
CreateInterface()
Create the UI here. The UI should all be child objects to Content.
Declaration
protected abstract void CreateInterface()
Init()
Used internally to initialise the selector object. Should not be called manually.
Declaration
public override sealed void Init()
Overrides
Selectors.Selector.Init()
UpdateInterface()
Update the UI here.
Declaration
protected abstract void UpdateInterface()
UpdateVisual()
Used internally to trigger updating the interface. Should not be called manually.
Declaration
protected override sealed void UpdateVisual()
Overrides
Selectors.Selector.UpdateVisual()