GuiAppendText
Jump to navigation
Jump to search
guiAppendText
Appends an escaped text entry to an RML element.
Syntax
bool guiAppendText(DocumentHandle document, string elementId, string text [, string className = "" [, string color = ""]])
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
document |
DocumentHandle |
yes | The owning document. |
elementId |
string |
yes | The container element's id attribute. |
text |
string |
yes | The text to append. |
className |
string |
no | An optional RCSS class for the created entry. |
color |
string |
no | An optional CSS-compatible text color. |
Returns
Returns true when the entry is appended; otherwise returns false.
Examples
Append a colored system message to chat:
guiAppendText(chatDocument, "messages", "Connected to the server", "system", "#9ad17b")
Notes
- Available only in client-side resource scripts.