MenuItemCog

TOCK by NullSave\UI Cog\Scripts\Menu\MenuItemCog.cs

Description

Base component for all Menu Items.

Properties

Menu Text Value to assign to Menu Text elemeent.
Menu Text (UI) Text element to display menu text.
Background Image Image element displaying background.
Selection Image Image element to indicate selection.
Disable Always Always disable this item.
Disable In Editor Disable this item when in Unity Editor.
No Save Files Disable this item when there are no save files.
Hide When Disabled Visually hide this element when it is disabled.
Menu Text (Normal) Color to apply to menu text element when item is enabled but not selected.
Background Image (Normal) Color to apply to menu text element when item is enabled but not selected.
Selection Image (Normal) Color to apply to selection image element when item is enabled but not selected.
Menu Text (Selected) Color to apply to menu text element when item is selected.
Background Image (Selected) Color to apply to menu text element when item selected.
Selection Image (Selected) Color to apply to selection image element when item is selected.
Menu Text (Disabled) Color to apply to menu text element when item is disabled.
Background Image (Disabled) Color to apply to menu text element when item is disabled.
Selection Image (Disabled) Color to apply to selection image element when item is disabled.
onSelected Raised when the item becomes selected.
onDeselected Raised when the item loses selection.
onConfirmed Raised when the item is selected and the submit button is pressed.

Methods

ConfirmSelectionSubmits item while selected.
SetDisabledSets disabled state.
SetHorizontalInputSets horizontal input value.
SetSelectedStateSets item selected state.