Used to sort and layout the icons in the Main Feature Menu More...
Public Member Functions | |
void | CalculateDimensions () |
Calculates the dimensions. More... | |
Data Fields | |
string | categoryName |
int | categoryOrder |
GameObject[] | icons |
List< UIIconBehavior > | iconBehaviors = new List<UIIconBehavior>() |
int | categoryHeight |
int | numberOfRows |
int | maxIconsForRow |
float | categoryPositionY |
GameObject[,] | iconArray |
Private Member Functions | |
void | Awake () |
void | Start () |
void | InitializeUIValues () |
Initializes the values needed for the UI in order to be responsive. More... | |
IEnumerator | Calculate () |
Calculate the dimensions of each category in order to align the icons. More... | |
IEnumerator | AlignIcons () |
Aligns the icons. More... | |
void | InitializeIconBehaviors () |
Private Attributes | |
int | defaultHeight = 160 |
int | extraHeightForRow = 100 |
int | iconWidth = 60 |
int | iconLeftMargin |
int | iconRightMargin |
int | iconSpaceTaken |
int | categoryWidth |
RectTransform | rt |
Used to sort and layout the icons in the Main Feature Menu
|
inlineprivate |
Aligns the icons.
|
inlineprivate |
|
inlineprivate |
Calculate the dimensions of each category in order to align the icons.
|
inline |
Calculates the dimensions.
|
inlineprivate |
|
inlineprivate |
Initializes the values needed for the UI in order to be responsive.
|
inlineprivate |
int Category.categoryHeight |
string Category.categoryName |
int Category.categoryOrder |
float Category.categoryPositionY |
|
private |
|
private |
|
private |
GameObject [,] Category.iconArray |
List<UIIconBehavior> Category.iconBehaviors = new List<UIIconBehavior>() |
|
private |
|
private |
GameObject [] Category.icons |
|
private |
|
private |
int Category.maxIconsForRow |
int Category.numberOfRows |
|
private |