-
Notifications
You must be signed in to change notification settings - Fork 1
melon.text
garryspins edited this page Feb 27, 2026
·
4 revisions
melon.text
Misc text handling functions
melon

melon.text.AddDelimiter(delimiter: char)
Argument and Return information
| # | Name | Type | Description |
|---|---|---|---|
| 1 | delimiter | char | Character to count as a delimiter |
Adds a delimiter for string splitting, wrapping, selection, etc

melon.text.Ellipses(text: string, font: string, w: number) -> string

melon.text.Wrap(text: string, font: string, w: number, x: number, notrim: bool) -> table
Argument and Return information
| # | Name | Type | Description |
|---|---|---|---|
| 1 | text | string | String to process |
| 2 | font | string | Font of the text |
| 3 | w | number | Maximum width of the wrapped text |
| 4 | x | number | Optional, Starting X pos of the text |
| 5 | notrim | bool | Optional, Dont trim the left of each line |
| # | Name | Type | Description |
|---|---|---|---|
| 1 | lines | table | Table of all lines wrapped |