Merge pull request #82 from overextended/lib-update

alert dialog labels
This commit is contained in:
Luke authored and GitHub committed 2022-12-12 22:49:03 +01:00
commit 054207d102
1 file changed
+4
+4
View File
@@ -42,6 +42,10 @@ lib.alertDialog(data)
* Centers the dialog vertically and horizontally.
* cancel?: `boolean`
* Displays a cancel button (ESC is still available if this is not defined).
* labels?: `table`
* Allows you to define the displayed labels for cancel and/or confirm buttons.
* cancel?: `string`
* confirm?: `string`
Returns `confirm` if the player pressed the confirm button, otherwise if the player pressed the cancel button
or has exited the dialog with ESC the return will be `cancel`.