DoopelPonger
|
UI text object that can be higlighted and selected to perform an action. More...
Public Member Functions | |
void | Awake () |
Initialize references. More... | |
void | OnSelect () |
Trigger the selection action. More... | |
void | OnMouseHoverEnter () |
Change the color and fontsize to show the text has been highlighted. More... | |
void | OnMouseHoverExit () |
Change the color and fontsize to show the text has been unhighlighted. More... | |
Public Attributes | |
Color | enterColor |
Color | exitColor |
int | enterFontSize |
int | exitFontSize |
Text | text |
UISelectAction | selectAction |
float | delayBetweenSelectionFlashes |
int | flashesBeforeAction |
int | totalFlashes |
int | keyboardControllerIndex |
UI text object that can be higlighted and selected to perform an action.
When the text object is selected, it will flash to show it has been selected.
void UITextController.Awake | ( | ) |
Initialize references.
void UITextController.OnMouseHoverEnter | ( | ) |
Change the color and fontsize to show the text has been highlighted.
void UITextController.OnMouseHoverExit | ( | ) |
Change the color and fontsize to show the text has been unhighlighted.
void UITextController.OnSelect | ( | ) |
Trigger the selection action.
float UITextController.delayBetweenSelectionFlashes |
The wait time between changing colors when the text has been selected.
Color UITextController.enterColor |
Color text should be when highlighted.
int UITextController.enterFontSize |
Size text should be when highlighted.
Color UITextController.exitColor |
Color text should be when unhighlighted.
int UITextController.exitFontSize |
Size text should be when unhighlighted.
int UITextController.flashesBeforeAction |
Add a short delay before triggering the selection action.
int UITextController.keyboardControllerIndex |
Index into the context array.
UISelectAction UITextController.selectAction |
Selection action to trigger when selected.
Text UITextController.text |
Reference to the UI Text object.
int UITextController.totalFlashes |
Total number of flashes before giving up and calling it quits.