Mad Level Manager
 All Classes Namespaces Functions Enumerations Enumerator Properties
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
MadLevelManager.MadSprite Class Reference
Inheritance diagram for MadLevelManager.MadSprite:
MadLevelManager.MadNode MadLevelManager.MadLevelIcon MadLevelManager.MadText

Public Types

enum  PivotPoint {
  BottomLeft, TopLeft, TopRight, BottomRight,
  Left, Top, Right, Bottom,
  Center
}
 

Public Member Functions

virtual Rect GetBounds ()
 
void SetMaterial (string shader, SetupShader setupShader)
 
virtual bool CanDraw ()
 
virtual void DrawOn (ref List< Vector3 > vertices, ref List< Color32 > colors, ref List< Vector2 > uv, ref List< int > triangles, out Material material)
 
void ResizeToTexture ()
 
void MinMaxDepthRecursively (out int min, out int max)
 
void AnimScale (Vector3 from, Vector3 to, float time, iTween.EaseType easing)
 
void AnimScaleTo (Vector3 scale, float time, iTween.EaseType easing)
 
void AnimMove (Vector3 from, Vector3 to, float time, iTween.EaseType easing)
 
void AnimMoveTo (Vector3 target, float time, iTween.EaseType easing)
 
void AnimRotate (Vector3 from, Vector3 to, float time, iTween.EaseType easing)
 
void AnimRotateTo (Vector3 rotation, float time, iTween.EaseType easing)
 
void AnimColor (Color from, Color to, float time, iTween.EaseType easing)
 
void AnimColorTo (Color color, float time, iTween.EaseType easing)
 
delegate void Action (MadSprite sprite)
 
delegate void SetupShader (Material material)
 
- Public Member Functions inherited from MadLevelManager.MadNode
CreateChild< T > (string name)
 
CreateChild< T > (string name, T template)
 
MadNode CreateChild (string name, GameObject template)
 
FindParent< T > ()
 

Public Attributes

bool visible = true
 
PivotPoint pivotPoint = PivotPoint.Center
 
Color tint = Color.white
 
Texture texture
 
Vector2 textureOffset
 
Vector2 textureRepeat = new Vector2(1, 1)
 
int guiDepth
 
- Public Attributes inherited from MadLevelManager.MadNode
bool managed
 

Protected Member Functions

void OnEnable ()
 
void Start ()
 
void Update ()
 
Matrix4x4 PanelToSelfMatrix ()
 
void UpdatePivotPoint ()
 
Vector3 PivotPointTranslate (Vector3 p, Rect bounds)
 

Protected Attributes

float left
 

Properties

Vector2 size [get, set]
 
Vector2 scalePixels [set]
 
Action onMouseEnter [get, set]
 
Action onMouseExit [get, set]
 
Action onMouseDown [get, set]
 
Action onMouseUp [get, set]
 
Action onTap [get, set]
 
- Properties inherited from MadLevelManager.MadNode
static bool Instantiating [get, set]
 

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