1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
"CONFIRM_MAIL" ,
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS . BASIC ,
} ,
title =
{
} ,
{
} ,
buttons =
{
[ 1 ] =
{
end ,
} ,
[ 2 ] =
{
end ,
}
}
}
)
EVENT_MANAGER : RegisterForEvent ( "ZoConfirmMail" , EVENT_CONFIRM_SEND_MAIL , function ( eventCode , to , subject , body , numAttachments , attachedMoney )
local confirmText
if numAttachments > 0 and attachedMoney > 0 then
local textStringId = IsInGamepadPreferredMode ( ) and SI_GAMEPAD_CONFIRM_MAIL_GOLD_AND_ITEMS or SI_CONFIRM_MAIL_GOLD_AND_ITEMS
confirmText = zo_strformat ( textStringId , attachedMoney , numAttachments , ZO_FormatUserFacingDisplayName ( to ) )
elseif numAttachments > 0 then
confirmText = zo_strformat ( SI_CONFIRM_MAIL_ITEMS , numAttachments , ZO_FormatUserFacingDisplayName ( to ) )
else
local textStringId = IsInGamepadPreferredMode ( ) and SI_GAMEPAD_CONFIRM_MAIL_GOLD or SI_CONFIRM_MAIL_GOLD
end
ZO_Dialogs_ShowPlatformDialog ( "CONFIRM_MAIL" , { to = to , subject = subject , body = body } , { mainTextParams = { confirmText } } )
end ) |