ingame/campaign/campaignbrowserdialogs.lua:7 -- ZO_TimeLockedDialog.New(self, "SELECT_GUEST_CAMPAIGN",
{
customControl = control,
buttons =
{
[1] =
{
control = GetControl(control, "UnlockedAccept"),
text = SI_DIALOG_ACCEPT,
keybind = "DIALOG_PRIMARY",
callback = function(dialogControl)
AssignCampaignToPlayer(dialogControl.timeLockedDialog:GetData().id, CAMPAIGN_REASSIGN_TYPE_GUEST)
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",
},
},
}
,GetCampaignGuestCooldown)
ingame/campaign/campaignbrowserdialogs.lua:77 -- ZO_TimeLockedDialog.New(self, "SELECT_HOME_CAMPAIGN",
{
customControl = control,
buttons =
{
[1] =
{
control = GetControl(control, "UnlockedAccept"),
text = SI_DIALOG_ACCEPT,
keybind = "DIALOG_PRIMARY",
callback = function(dialogControl)
local timeLockedDialog = dialogControl.timeLockedDialog
local forceImmediate = GetAssignedCampaignId() == 0
if(timeLockedDialog.radioButtonGroup:GetClickedButton() == timeLockedDialog.setNowButton or forceImmediate) then
AssignCampaignToPlayer(timeLockedDialog:GetData().id, CAMPAIGN_REASSIGN_TYPE_IMMEDIATE)
else
AssignCampaignToPlayer(timeLockedDialog:GetData().id, CAMPAIGN_REASSIGN_TYPE_ON_END)
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",
},
}
}
,GetCampaignReassignCooldown)