Draw
Returns an instance of the specified class ‘Type’ with the given properties. Internally, the render is appended to the Menu.Renders table and the global ZIndex is increased by 1.
FontFace is handled differently, it must be a table. Index 1 must contain the Font and index 2 must contain the textsize. Menu.Fonts contains the default Fonts used by the Menu. TextSize can be overwritten by passing in the TextSize property into the properties table.
The instance class to create.
The table containing the properties to apply to the render.
Remove
Destroys a render and removes itself and it’s desscendants from the Menu.Renders table. Use this instead of manually destroying renders created by Menu.Draw.
GetDescendants
Returns a table of the Render’s descendants inclusive of itself at index 1.
ToRichText
Returns a formatted string for rich text.
Usage example:
Tween
Tweens a render, instantly plays it with the given data and returns the tween object.
Usage Example:
ImportImage
Returns an assetid of the image from the base64 encoded data.
The base64 encoding of the Image.
ImportFont
Returns a Font object from the given base64 encoded data.
The base64 encoding of the font.
GetTextBounds
Returns thte text bounds (Vector2) of the text from the given font. Refer to Draw for info on FontFace.