libraries/ManiaLib/ManiaScript/UI.php
static function dialog($openControlId, $message, array $action = array())
    {
        Manialink::appendScript(static::getDialog($openControlId, $message, $action));
    }
static function dialog($openControlId, $message, array $action = array())
    {
        Manialink::appendScript(static::getDialog($openControlId, $message, $action));
    }
Teh infamous dialog box

@param string $openControlId Id of the element that will open the dialog when clicked
@param string $message Message to show in the dialog
@param array $action A ManiaScript Framework Action