User interface button block class. More...
Public Member Functions | |
void | Start () |
override void | DrawUI () |
Draws the block to the screen. | |
override void | HandleEvents () |
void | OnDrawGizmosSelected () |
Draws a preview of the button in the scene. | |
void | OnButtonReleased (ButtonEvent e) |
Public Attributes | |
Texture[] | buttonTextures |
string[] | buttonActions |
Texture[] | playerOverlays |
Color | defaultBlend = new Color(.75f, .75f, .75f, 1) |
Color | hoveredBlend = Color.white |
Color | pressedBlend = new Color(.75f, .75f, .75f, 1) |
float | x = 0.25f * UIManager.designWidth |
float | y = 0.25f * UIManager.designHeight |
float | buttonWidth = 128 |
float | buttonHeight = 128 |
int | rowLength = 3 |
Vector2 | spacing = Vector2.zero |
Vector2 | indent = Vector2.zero |
Distance between top-left of selector image and button image. | |
float | overlayWidth = 128 |
float | overlayHeight = 128 |
User interface button block class.
override void UIButtonBlock.DrawUI | ( | ) | [virtual] |
Draws the block to the screen.
Implements UIBase.
void UIButtonBlock.OnDrawGizmosSelected | ( | ) |
Draws a preview of the button in the scene.
Vector2 UIButtonBlock.indent = Vector2.zero |
Distance between top-left of selector image and button image.