Class Cell
Rendering cell
Fields
BorderSide
Which side does this cell belongs to when it's rendered in 9-slice mode
Declaration
public Alignment BorderSide
Color
Declaration
public Color32 Color
EMPTY
Declaration
public static readonly Cell EMPTY
Height
Declaration
public int Height
PivotX
Which place of the cell should be align with the X position. 0 means left edge, 1 means right edge.
Declaration
public float PivotX
PivotY
Which place of the cell should be align with the Y position. 0 means bottom edge, 1 means top edge.
Declaration
public float PivotY
Rotation1000
Actual rotation data of the cell, 0 means up, 90000 means right
Declaration
public int Rotation1000
SheetIndex
Which sprite sheet does this cell use. -1 means main sheet.
Declaration
public int SheetIndex
Shift
How many edge should be clip off. 0 means no clip off, set left into "width" means clip off all of them
Declaration
public Int4 Shift
Sprite
Declaration
public AngeSprite Sprite
Width
Declaration
public int Width
X
Declaration
public int X
Y
Declaration
public int Y
Z
Z position for sorting
Declaration
public int Z
Properties
Rotation
Rotation of the cell, 0 means up, 90 means right
Declaration
public int Rotation { get; set; }
TextSprite
Sprite for rendering text character
Declaration
public CharSprite TextSprite { get; set; }
Methods
Clamp(IRect)
Clamp the content inside the given rect range
Declaration
public void Clamp(IRect rect)
CopyFrom(Cell)
Declaration
public void CopyFrom(Cell other)
GetGlobalBounds()
Get the boundary occupied by the cell
Declaration
public IRect GetGlobalBounds()
GlobalLerp(float, float)
Declaration
public Int2 GlobalLerp(float x01, float y01)
GlobalToLocal(int, int)
Declaration
public Int2 GlobalToLocal(int globalX, int globalY)
LocalToGlobal(int, int)
Declaration
public Int2 LocalToGlobal(int localX, int localY)
ReturnPivots()
Set pivot of the cell into (0,0) and let position adapt, so the final position of the cell remain the same
Declaration
public void ReturnPivots()
ReturnPivots(float, float)
Set pivot of the cell and let position adapt, so the final position of the cell remain the same
Declaration
public void ReturnPivots(float newPivotX, float newPivotY)
ReturnPosition(int, int)
Set position of the cell and let pivot adapt, so the final position of the cell remain the same
Declaration
public void ReturnPosition(int globalX, int globalY)
RotateAround(int, int, int)
Rotate the cell around the given position
Declaration
public void RotateAround(int rotation, int pointX, int pointY)
ScaleFrom(int, int, int)
Scale the cell based on the given position
Declaration
public void ScaleFrom(int scale, int pointX, int pointY)
ScaleFrom(float, int, int)
Scale the cell based on the given position
Declaration
public void ScaleFrom(float scale, int pointX, int pointY)
SetRect(IRect)
Set X,Y,Width,Height with a rect
Declaration
public void SetRect(IRect rect)