UIRenderer
This page will go over the `UIRenderer` namespace
Last updated
This page will go over the `UIRenderer` namespace
Last updated
filledBox(Entity entity,
color): void
Draws a filled box around an entity, with the given color.
outlineBox(Entity entity, float thickness,
color): void
Draws an outline box around an entity, with the given color.
rectangle(float x, float y, float width, float height,
color): void
Draws a rectangle at the given coordinates.
rectangleBorder(float x, float y, float width, float height, float thickness,
color): void
Draws a rectangle border at the given coodinates.
roundedRectangle(float x, float y, float width, float height, float radius,
color): void
Draws a rounded rectangle with the given radius at the given coordinates
roundedRectangleBorder(float x, float y, float width, float height, float radius, float thickness,
color): void
Draws a rounded rectangle border with the given radius and thickness at the given coordinates.
Draws a circle around the given coordinates, with the given radius.
Draws a circle border around the given coordinates, with the given radius and thickness.
Draws a texture fetched from a URL at the given coordinates with the given scale and radius.
Draws the given text at the given coordinates.
textWidth(String text): float
Returns the text width of the given text.
textWidth(String text, float size): float
Returns the text width of the given text with the given size.
Draws the given text at the given coordinates with the given size.
scissor(float x, float, y, float width, float height, Function function): void
Creates a scissor box using our advanced scissor stack, any pixels drawn inside of the provided function will only be rendered on to the screen if they fit within the provided box.
Stacking scissor boxes is possible in breeze.
remoteTexture(String url, float x, float y, float width, float height, float scale, float radius,
color): void