1.1 KiB
1.1 KiB
BigFontText
Basalt - Nyorie: Please don't copy paste this code to your projects, this code is slightly changed (to fit the way basalt draws elements), if you want the original code, checkout this: http://www.computercraft.info/forums2/index.php?/topic/25367-bigfont-api-write-bigger-letters-v10/
BigFont
The BigFont element is a text element that displays larger text. It uses Wojbie's BigFont API to render the text in a larger font size. Credits to Wojbie for the original API.
Extends: VisualElement
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| text | string | BigFont | BigFont text |
| fontSize | number | 1 | The font size of the BigFont |
Functions
| Method | Returns | Description |
|---|---|---|
| BigFont.new | table | Creates a new BigFont instance |
| BigFont:init | - | Initializes the BigFont instance |
| BigFont:render | - | Renders the BigFont |
BigFont.new()
Returns
tableselfThe created instance
BigFont:init(props, basalt)
Parameters
propstableThe properties to initialize the element withbasalttableThe basalt instance