|
GearBlocks
The GearBlocks Lua scripting API
|
Provides access to a UI shapes properties. 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. | |
Properties | |
| RectProxy | PixelRect [get] |
| The UI element's pixel rect. | |
Provides access to a UI shapes properties.
| void SmashHammer.UI.IShapes.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. |
Implemented in SmashHammer.UI.Shapes.
| void SmashHammer.UI.IShapes.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. |
Implemented in SmashHammer.UI.Shapes.
| void SmashHammer.UI.IShapes.AddConvexPrimitive | ( | IList< Vector2Proxy > | vertices | ) |
Add a convex primitive shape.
| vertices | A list of vertices in clockwise order. |
Implemented in SmashHammer.UI.Shapes.
| void SmashHammer.UI.IShapes.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. |
Implemented in SmashHammer.UI.Shapes.
| void SmashHammer.UI.IShapes.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. |
Implemented in SmashHammer.UI.Shapes.
| void SmashHammer.UI.IShapes.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. |
Implemented in SmashHammer.UI.Shapes.
|
get |
The UI element's pixel rect.
This element's rect, adjusted to be pixel perfect.