form.addTextButton¶
since 1.1.0 deprecated
Add a text button to the current form (deprecated)
Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
line |
FormLine | yes | the line where the field should be added |
rect |
Rect | yes | the coordinates |
text |
string | yes | the displayed text |
press |
function | yes | the function which will be called on button press |
Returns¶
The new button
Examples¶
Used in¶
Real-world usage¶
Called 80 times across 4 open-source Ethos Lua projects. A few short excerpts: