![]() |
GearBlocks
The GearBlocks Lua scripting API
|
A shapes UI element. More...
Public Member Functions | |
void | AddQuad (Vector2Proxy pos, Vector2Proxy size) |
Add a quad shape. | |
void | AddQuad (Vector2Proxy pos, Vector2Proxy size, Color32Proxy colour) |
Add a quad shape. | |
void | AddConvexPrimitive (IList< Vector2Proxy > vertices) |
Add a convex primitive shape. | |
void | AddConvexPrimitive (IList< Vector2Proxy > vertices, Color32Proxy colour) |
Add a convex primitive shape. | |
void | AddLine (IList< Vector2Proxy > points, float thickness) |
Add a thick line shape. | |
void | AddLine (IList< Vector2Proxy > points, float thickness, Color32Proxy colour) |
Add a thick line shape. | |
void | Clear () |
Clear the current shapes. | |
void | SetAlignment (Align align, float paramA, float paramB) |
Set the element's alignment. | |
void | SetRotation (float angle) |
Set the element's rotation. | |
void | AddQuad (Vector2Proxy pos, Vector2Proxy size) |
Add a quad shape. | |
void | AddQuad (Vector2Proxy pos, Vector2Proxy size, Color32Proxy colour) |
Add a quad shape. | |
void | AddConvexPrimitive (IList< Vector2Proxy > vertices) |
Add a convex primitive shape. | |
void | AddConvexPrimitive (IList< Vector2Proxy > vertices, Color32Proxy colour) |
Add a convex primitive shape. | |
void | AddLine (IList< Vector2Proxy > points, float thickness) |
Add a thick line shape. | |
void | AddLine (IList< Vector2Proxy > points, float thickness, Color32Proxy colour) |
Add a thick line shape. | |
void | Clear () |
Clear the current shapes. | |
Additional Inherited Members | |
![]() | |
enum | Align : byte { LeftEdge , RightEdge , TopEdge , BottomEdge , HorizEdges , VertEdges , HorizCentre , VertCentre } |
UI element alignment mode. More... | |
![]() | |
virtual bool | IsVisible [get, set] |
Is the element visible? | |
![]() | |
bool | IsVisible [get, set] |
Is the element visible? | |
bool | IsInteractable [get, set] |
Is the element interactable? | |
bool | IsTargetable [get, set] |
Is the element targetable? | |
![]() | |
RectProxy | PixelRect [get] |
The UI element's pixel rect. | |
![]() | |
TextureProxy | Texture [get, set] |
The image's texture. | |
RectProxy | UVRect [get, set] |
The image's texture UV rect. | |
Color32Proxy | Colour [get, set] |
The image's colour. | |
A shapes UI element.
void SmashHammer.UI.Shapes.AddQuad | ( | Vector2Proxy | pos, |
Vector2Proxy | size | ||
) |
Add a quad shape.
pos | The position of the quad's bottom left corner. |
size | The width and height of the quad. |
Implements SmashHammer.UI.IShapes.
void SmashHammer.UI.Shapes.AddQuad | ( | Vector2Proxy | pos, |
Vector2Proxy | size, | ||
Color32Proxy | colour | ||
) |
Add a quad shape.
pos | The position of the quad's bottom left corner. |
size | The width and height of the quad. |
colour | The colour of the quad. |
Implements SmashHammer.UI.IShapes.
void SmashHammer.UI.Shapes.AddConvexPrimitive | ( | IList< Vector2Proxy > | vertices | ) |
Add a convex primitive shape.
vertices | A list of vertices in clockwise order. |
Implements SmashHammer.UI.IShapes.
void SmashHammer.UI.Shapes.AddConvexPrimitive | ( | IList< Vector2Proxy > | vertices, |
Color32Proxy | colour | ||
) |
Add a convex primitive shape.
vertices | A list of vertices in clockwise order. |
colour | The colour of the primitive. |
Implements SmashHammer.UI.IShapes.
void SmashHammer.UI.Shapes.AddLine | ( | IList< Vector2Proxy > | points, |
float | thickness | ||
) |
Add a thick line shape.
points | A list of points that will be joined up in order by the line. |
thickness | The line's thickness in pixels. |
Implements SmashHammer.UI.IShapes.
void SmashHammer.UI.Shapes.AddLine | ( | IList< Vector2Proxy > | points, |
float | thickness, | ||
Color32Proxy | colour | ||
) |
Add a thick line shape.
points | A list of points that will be joined up in order by the line. |
thickness | The line's thickness in pixels. |
colour | The colour of the line. |
Implements SmashHammer.UI.IShapes.