Alert Dialog
A stylish confirmation window with a title, description, and cancel/submit actions.

-- Alert Dialog
RegisterCommand('testalert', function()
exports['moon-ui']:OpenAlertDialog(
"Confirmation", -- Title
"Are you sure you want to proceed?", -- Description
"Cancel", -- Cancel Text
"Confirm", -- Confirm Button Text
function(success)
if success then
print('Dialog confirmed!')
else
print('Dialog cancelled!')
end
end
)
end)ua
Last updated