ui.RichText
classWrapping body text the way the game's descriptions read: tokens such as {item:Name} become links with icons, <blue>, <yellow>, <red> and <green> tint a run
Fields
| Name | Type | Description | |
|---|---|---|---|
| text | string | Source UTF-8 text, tokens and tags unexpanded | |
| font_size | number | Font size in slate units | |
| align | string | Where the lines sit: "left", "center" or "right" | |
| color | string | Color of the text outside tinted runs, same forms as ui.Text color | |
| wrap | boolean | True, the default, breaks long lines at the width the text is given; false keeps one line | |
Inherited from ui.Widget (3)
Inherited from Object (5)
- name read-only Object name
- Object.find(name) Find an already loaded object by name
- Object.cast(object) Trying to cast Object into Object
- Object:get_class() Class of this object
- Object.get_class() Return Object class object