ingame/campaign/campaignbrowserdialogs.lua:333 -- ZO_CampaignDialogBase.New(self, "ABANDON_HOME_CAMPAIGN",
{
customControl = control,
buttons =
{
[1] =
{
control = GetControl(control, "UnlockedAccept"),
text = SI_DIALOG_ACCEPT,
keybind = "DIALOG_PRIMARY",
callback = function(dialogControl)
local timeLockedDialog = dialogControl.timeLockedDialog
if timeLockedDialog.radioButtonGroup:GetClickedButton() == timeLockedDialog.useAlliancePointsButton then
UnassignCampaignForPlayer(CAMPAIGN_UNASSIGN_TYPE_HOME_USE_ALLIANCE_POINTS)
else
UnassignCampaignForPlayer(CAMPAIGN_UNASSIGN_TYPE_HOME_USE_GOLD)
end
end,
},
[2] =
{
control = GetControl(control, "UnlockedExit"),
text = SI_DIALOG_EXIT,
keybind = "DIALOG_NEGATIVE",
},
[3] =
{
control = GetControl(control, "LockedExit"),
text = SI_DIALOG_EXIT,
keybind = "DIALOG_NEGATIVE",
},
}
}
,GetCampaignUnassignCooldown)