Closed Nico8340 closed 1 month ago
If nobody else has comments after a week or two I'll just send it.
If nobody else has comments after a week or two I'll just send it.
Nobody did, and it's been called excellent by more than 1 person, so let's merge. Thanks @Nico8340
Description
This pull request was created to replace the existing msgbox resource. (Successor of #464)
Tasks
Add new resourceAdd documentationAdd deprecated warning to the old 'msgbox' resourceReplace old syntax in resourcesPreview
Functions
MessageBeep
Description
This function plays a sound from the messageSounds table.
Syntax
Example
Arguments
Returns
Returns the sound element.
MessageBox
Description
This function creates a dialog box with a callback function.
Syntax
Example
Arguments
Returns
This function does not contain returns because it uses a callback function.
MessageBoxEx
Description
This function creates a dialog box without a callback function.
Syntax
Example
addEventHandler("onClientGUIClick", buttonOK, function() print("Read") end )
addEventHandler("onClientGUIClick", buttonAbort, function() print("Abort") end )
addEventHandler("onClientGUIClick", buttonRetry, function() print("Retry") end )
addEventHandler("onClientGUIClick", buttonIgnore, function() print("Ignore") end )
Arguments
Returns
Returns as many buttons in order as specified in the messageButton argument.