|
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 | |
Public Types inherited from SmashHammer.UI.ISizeable | |
| enum | Align : byte { LeftEdge , RightEdge , TopEdge , BottomEdge , HorizEdges , VertEdges , HorizCentre , VertCentre } |
| UI element alignment mode. More... | |
Properties inherited from SmashHammer.UI.Element | |
| virtual bool | IsVisible [get, set] |
| Is the element visible? | |
Properties inherited from SmashHammer.UI.IElement | |
| bool | IsVisible [get, set] |
| Is the element visible? | |
| bool | IsInteractable [get, set] |
| Is the element interactable? | |
| bool | IsTargetable [get, set] |
| Is the element targetable? | |
Properties inherited from SmashHammer.UI.IShapes | |
| RectProxy | PixelRect [get] |
| The UI element's pixel rect. | |
Properties inherited from SmashHammer.UI.IImage | |
| 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.