DoopelPonger
|
Button in the main menu used to change the keys the player presses to play the game. This class doesn't handle the change of the KeyCodes but only handles what text is displayed on the button. More...
Public Member Functions | |
void | Awake () |
void | ListenForNewButton () |
Change the state of the button to show it has been clicked. More... | |
void | OnPointerEnter (PointerEventData eventData) |
Called when the mouse have moved over the button. More... | |
void | ResetKeyCode () |
Set the text of the button based on the KeyCode that matches the action. More... | |
InputActionMapper.Action | UpdateKeyCode (KeyCode keyCode) |
Set the text of the button and in the ActionMapper to the new KeyCode. More... | |
Public Attributes | |
InputActionMapper.Action | action |
UIControlsButtonManager | buttonManager |
Color | pressedColor |
Button in the main menu used to change the keys the player presses to play the game. This class doesn't handle the change of the KeyCodes but only handles what text is displayed on the button.
void UIControlConfigurableButton.Awake | ( | ) |
Initialize references and hooks into the event manager.
void UIControlConfigurableButton.ListenForNewButton | ( | ) |
Change the state of the button to show it has been clicked.
void UIControlConfigurableButton.OnPointerEnter | ( | PointerEventData | eventData | ) |
Called when the mouse have moved over the button.
eventData | Misc. information about the mouse hovering the button. |
void UIControlConfigurableButton.ResetKeyCode | ( | ) |
Set the text of the button based on the KeyCode that matches the action.
InputActionMapper.Action UIControlConfigurableButton.UpdateKeyCode | ( | KeyCode | keyCode | ) |
Set the text of the button and in the ActionMapper to the new KeyCode.
keyCode | New KeyCode for the action. |
InputActionMapper.Action UIControlConfigurableButton.action |
Action the button applies to.
UIControlsButtonManager UIControlConfigurableButton.buttonManager |
The manager that listens for button presses.
Color UIControlConfigurableButton.pressedColor |
Color the button should change when the button is pressed.