QuadUI 1.2.9 public beta
Run-time API for QuadUI

Button2D Class Reference

Inheritance diagram for Button2D:
InteractiveElement2D Element2D EventDispatcher

List of all members.

Properties

Vector2 rollOverUV [get]
Vector2 pressUV [get]
Vector2 normalUV [get]

Detailed Description

Basic Button with Up, Down and Over states. These states are stored as Vector2's in a Vector2[3], when you generate your quad from the tool. The appropriate UV coordinates are labeled in name-basis getters in this class where "Normal" (Up) is index 0, "Press" (Down) is 1, and "RollOver" is 2.

This class is sealed and cannot be extended.

Note: Under iOS/Android Build Settings, this class will only have Up and Down states, as the Over/Out events are not communicated.


Property Documentation

Vector2 Button2D.normalUV [get]

Returns a Vector2 representation of the top-left UV coordinate for the "Normal" (Up) button state. This is the same as frames[0]

Vector2 Button2D.pressUV [get]

Returns a Vector2 representation of the top-left UV coordinate for the "Press" (Down) button state. This is the same as frames[1]

Vector2 Button2D.rollOverUV [get]

Returns a Vector2 representation of the top-left UV coordinate for the "RollOver" button state. This is the same as frames[2]

 All Classes Functions Variables Enumerations Properties