User interface button class that, depending on where the user clicks, causes a second ButtonEvent with the sub-button index appended to the buttonAction. More...
Public Member Functions | |
override void | Awake () |
override void | DrawUI () |
Draws the button to the screen. | |
void | OnButtonPressed (ButtonEvent e) |
void | OnButtonReleased (ButtonEvent e) |
Public Attributes | |
int | buttonCount = 1 |
int | firstPlayer = 0 |
Index of the first player allowed to use this button. | |
Texture[] | selectors |
A selector image for each player allowed to use this button offset by first player. | |
Vector2[] | selectorOffsets |
int[] | selections |
User interface button class that, depending on where the user clicks, causes a second ButtonEvent with the sub-button index appended to the buttonAction.
override void UISkinButtons.DrawUI | ( | ) | [virtual] |
Draws the button to the screen.
Reimplemented from UIButton.
int UISkinButtons.firstPlayer = 0 |
Index of the first player allowed to use this button.
Texture [] UISkinButtons.selectors |
A selector image for each player allowed to use this button offset by first player.