UIButtonBlock Class Reference

User interface button block class. More...

Inheritance diagram for UIButtonBlock:
UIBase

List of all members.

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

Detailed Description

User interface button block class.


Member Function Documentation

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.


Member Data Documentation

Vector2 UIButtonBlock.indent = Vector2.zero

Distance between top-left of selector image and button image.


The documentation for this class was generated from the following file:

Generated on Fri Aug 21 09:09:58 2009 for Hamlington Underground Racing Association by  doxygen 1.6.0