Kerbal Space Program
1.12.4
|
Classes | |
class | SameParentSelectables |
Public Member Functions | |
Transform | GetSelectableParent (Selectable selectable) |
Returns a Selectable parent if available More... | |
bool | IsSelectableValid (Selectable selectable) |
Check if a Selectable is valid. More... | |
void | MouseIsHovering () |
void | ResetAll () |
Reset all working variables and members. More... | |
void | ResetSelectablesOnly () |
Reset the selectable gameobjects list and basic variables. More... | |
void | SelectLastArrowSelected () |
void | SetItemAsFirstSelected (GameObject go) |
Sets the game as first selected item, to start editing right away or to be able to save directly with the Accept input keys (Enter, KeypadEnter and Space) More... | |
void | SetLastItemSelected (int index) |
Saves the last item's index when selected by other input More... | |
void | SetMenuNavInputLock (bool newState) |
Set/Clear the Menu Navigation input lock More... | |
void | SetSameParentExplicitNavigation (List< Selectable > selectables) |
Sets explicit navigation to the passed selectables list, to the Selectables which are under the same parent, and need to navigate between themselves left and right, and up and down when posible. More... | |
void | SetSearchField () |
Sets the first UINavMouseChecker on a gameObject named "SearchInput", found in the selectables list as IsSearchField so it skips refocus while typing and unhovering it. More... | |
void | SetSelectableItems (Selectable[] items, Navigation.Mode navMode) |
Builds the selectables list, this method is when there is a complicated way of fetching the selectables and the class passes that Selectable list More... | |
void | SetSelectableItems (Selectable[] items, Navigation.Mode navMode, bool hasText) |
Builds the selectables list, this method is when there is a complicated way of fetching the selectables and the class passes that Selectable list More... | |
void | SetSelectableItems (Selectable[] items, Navigation.Mode navMode, bool hasText, bool resetNavMode) |
Builds the selectables list, this method is when there is a complicated way of fetching the selectables and the class passes that Selectable list More... | |
void | SetVerticalExplicitNavigation (List< Selectable > selectables) |
Sets explicit navigation in a vertical way following the list order of the given Selectables. More... | |
bool | SumbmitOnSelectedToggle () |
Static Public Member Functions | |
static MenuNavigation | SpawnMenuNavigation (GameObject go, Navigation.Mode navMode) |
Spawns the Menu navigtation on the menu or dialog that needs it. More... | |
static MenuNavigation | SpawnMenuNavigation (GameObject go, Navigation.Mode navMode, bool limitCheck) |
Spawns the Menu navigtation on the menu or dialog that needs it. More... | |
static MenuNavigation | SpawnMenuNavigation (GameObject go, Navigation.Mode navMode, bool hasText, bool limitCheck) |
Spawns the Menu navigtation on the menu or dialog that needs it. More... | |
static MenuNavigation | SpawnMenuNavigation (GameObject go, Navigation.Mode navMode, SliderFocusType focusType) |
Spawns the Menu navigtation on the menu or dialog that needs it. More... | |
static MenuNavigation | SpawnMenuNavigation (GameObject go, Navigation.Mode navMode, SliderFocusType focusType, bool hasText, bool limitCheck) |
Spawns the Menu navigtation on the menu or dialog that needs it. More... | |
static MenuNavigation | SpawnMenuNavigation (GameObject go, Navigation.Mode navMode, bool hasText, bool limitCheck, SliderFocusType focusType, bool includeDisabledChildren=false) |
Public Attributes | |
bool | Initialized = false |
True once the MenuNavigation has been Initialized. More... | |
List< Selectable > | selectableItems = new List<Selectable>() |
Static Public Attributes | |
static Color | activeTextColor |
Colour used for highlighting active text, default is a bright light gray or white. More... | |
static bool | blockPointerEnterExit |
static Color | inactiveTextColor |
Colour used for inactive text, defualt is light gray. More... | |
static Color | inactiveTextMiniSettingsColor |
Colour used for inactive text in the mini settings, default is green. More... | |
Protected Attributes | |
List< SameParentSelectables > | sameParentSelectables = new List<SameParentSelectables>() |
|
inline |
Returns a Selectable parent if available
selectable | Input Selectable |
|
inline |
Check if a Selectable is valid.
selectable |
|
inline |
|
inline |
Reset all working variables and members.
|
inline |
Reset the selectable gameobjects list and basic variables.
|
inline |
|
inline |
Sets the game as first selected item, to start editing right away or to be able to save directly with the Accept input keys (Enter, KeypadEnter and Space)
go | GameObject to focus |
|
inline |
Saves the last item's index when selected by other input
index |
|
inline |
Set/Clear the Menu Navigation input lock
newState | True to add the lock |
|
inline |
Sets explicit navigation to the passed selectables list, to the Selectables which are under the same parent, and need to navigate between themselves left and right, and up and down when posible.
selectables |
|
inline |
Sets the first UINavMouseChecker on a gameObject named "SearchInput", found in the selectables list as IsSearchField so it skips refocus while typing and unhovering it.
|
inline |
Builds the selectables list, this method is when there is a complicated way of fetching the selectables and the class passes that Selectable list
t | Parent transform where the search of the selectables needs to start |
navMode | Navigation Mode for the UI. |
|
inline |
Builds the selectables list, this method is when there is a complicated way of fetching the selectables and the class passes that Selectable list
t | Parent transform where the search of the selectables needs to start |
navMode | Navigation Mode for the UI. |
hasText | If has text that needs highlight |
|
inline |
Builds the selectables list, this method is when there is a complicated way of fetching the selectables and the class passes that Selectable list
t | Parent transform where the search of the selectables needs to start |
navMode | Navigation Mode for the UI. |
hasText | If has text that needs highlight |
resetNavMode | If navigation mode sill be set again to the items received |
|
inline |
Sets explicit navigation in a vertical way following the list order of the given Selectables.
selectables | Given selectable list |
|
inlinestatic |
Spawns the Menu navigtation on the menu or dialog that needs it.
go | GameObject that will have the MenuNavigation component added |
navMode | Navigation Mode for the UI. |
|
inlinestatic |
Spawns the Menu navigtation on the menu or dialog that needs it.
go | GameObject that will have the MenuNavigation component added |
navMode | Navigation Mode for the UI. |
limitCheck | Checks if the seleciton is going outside the dialog and refocuses back on it, used when there are several selectables causing issues. |
|
inlinestatic |
Spawns the Menu navigtation on the menu or dialog that needs it.
go | GameObject that will have the MenuNavigation component added |
navMode | Navigation Mode for the UI. |
hasText | If has text that needs highlight |
limitCheck | Checks if the seleciton is going outside the dialog and refocuses back on it, used when there are several selectables causing issues. |
|
inlinestatic |
Spawns the Menu navigtation on the menu or dialog that needs it.
go | GameObject that will have the MenuNavigation component added |
navMode | Navigation Mode for the UI. |
focusType | The way the slider will be focused. |
|
inlinestatic |
Spawns the Menu navigtation on the menu or dialog that needs it.
go | GameObject that will have the MenuNavigation component added |
navMode | Navigation Mode for the UI. |
focusType | The way the slider will be focused. |
hasText | Set to true if has text that needs highlight. |
limitCheck | Checks if the seleciton is going outside the dialog and refocuses back on it, used when there are several selectables causing issues. |
|
inlinestatic |
go | GameObject that will have the MenuNavigation component added |
navMode | Navigation Mode for the UI. |
hasText | Set to true if has text that needs highlight. |
focusType | The way the slider will be focused. |
|
inline |
|
static |
Colour used for highlighting active text, default is a bright light gray or white.
|
static |
|
static |
Colour used for inactive text, defualt is light gray.
|
static |
Colour used for inactive text in the mini settings, default is green.
bool MenuNavigation.Initialized = false |
True once the MenuNavigation has been Initialized.
|
protected |
List<Selectable> MenuNavigation.selectableItems = new List<Selectable>() |