UIButton Class Reference

User interface button class. More...

Inheritance diagram for UIButton:
UIBase UICroppedButton UISkinButtons

List of all members.

Public Member Functions

void UseImageSize ()
void KeepAspect ()
void AlignCenter ()
virtual void Awake ()
virtual void Start ()
override void HandleEvents ()
override void DrawUI ()
 Draws the button to the screen.
void OnDrawGizmosSelected ()
 Draws a preview of the button in the scene.

Static Public Member Functions

static UIButton FromAction (string action)
 Finds a button matching the specified action string or null if none was found.

Public Attributes

string buttonAction
Texture defaultTexture
Color defaultBlend = new Color(.75f, .75f, .75f, 1)
Texture hoveredTexture
Color hoveredBlend = Color.white
Texture pressedTexture
Color pressedBlend = new Color(.75f, .75f, .75f, 1)
float x = 0.25f * UIManager.designWidth
float y = 0.25f * UIManager.designHeight
float width = 0.5f * UIManager.designWidth
float height = 0.5f * UIManager.designHeight

Protected Types

enum  State { Default, Hovered, Pressed }

Protected Attributes

State[] state
State buttonState

Detailed Description

User interface button class.


Member Function Documentation

override void UIButton.DrawUI (  )  [virtual]

Draws the button to the screen.

Implements UIBase.

Reimplemented in UICroppedButton, and UISkinButtons.

static UIButton UIButton.FromAction ( string  action  )  [static]

Finds a button matching the specified action string or null if none was found.

void UIButton.OnDrawGizmosSelected (  ) 

Draws a preview of the button in the scene.


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