- common/gammaadjust/gammaadjust.lua:5 --
ZO_Dialogs_RegisterCustomDialog("ADJUST_GAMMA_DIALOG",
{
customControl = dialogControl,
mustChoose = true,
title =
{
text = "",
},
buttons =
{
[1] =
{
control = GetControl(dialogControl, "KeyContainerConfirmGamma"),
text = SI_GAMMA_CONFIRM,
noReleaseOnClick = true, -- Don't release because the scene needs to fade out, will release later
callback = function(dialog)
SetCVar("GAMMA_ADJUSTMENT", tostring(currentGamma))
SCENE_MANAGER:Hide("gammaAdjust")
ZO_SavePlayerConsoleProfile()
end,
},
[2] =
{
control = GetControl(dialogControl, "KeyContainerDeclineGamma"),
text = SI_GAMMA_DECLINE,
noReleaseOnClick = true, -- Don't release because the scene needs to fade out, will release later
callback = function(dialog)
SCENE_MANAGER:Hide("gammaAdjust")
end,
visible = function() return not ZO_GammaAdjust_NeedsFirstSetup() end,
},
}
})
- common/zo_addonmanager/zo_addoneula.lua:40 --
ZO_Dialogs_RegisterCustomDialog("SHOW_ADDON_EULA", g_dialogInfo)
- ingame/achievements/gamepad/achievements_gamepad.lua:356 --
ZO_Dialogs_RegisterCustomDialog("ACHIEVEMENTS_OPTIONS_GAMEPAD",
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
title =
{
text = SI_GAMEPAD_ACHIEVEMENTS_OPTIONS,
},
setup = function(dialog)
dialog:setupFunc()
end,
parametricList =
{
{
template = "ZO_GamepadMenuEntryTemplate",
header = SI_GAMEPAD_OPTIONS_MENU,
entryData = showAllAchievements,
},
{
template = "ZO_GamepadMenuEntryTemplate",
entryData = showEarnedAchievements,
},
{
template = "ZO_GamepadMenuEntryTemplate",
entryData = showUnearnedAchievements,
},
},
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_SELECT_OPTION,
callback = function(dialog)
local data = dialog.entryList:GetTargetData()
if data.callback then
data.callback(data)
end
end,
clickSound = SOUNDS.DIALOG_ACCEPT,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
},
}
})
- ingame/banking/gamepad/banking_gamepad.lua:494 --
ZO_Dialogs_RegisterCustomDialog("BUY_BANK_SPACE_GAMEPAD",
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = SI_PROMPT_TITLE_BUY_BANK_SPACE,
},
mainText =
{
text = zo_strformat(SI_BUY_BANK_SPACE, NUM_BANK_SLOTS_PER_UPGRADE),
},
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_DECLINE,
callback = function() self:Hide() end
},
{
keybind = "DIALOG_PRIMARY",
text = function()
local costString = ZO_CurrencyControl_FormatCurrency(self.cost)
return zo_strformat(SI_GAMEPAD_BANK_UPGRADE_ACCEPT, costString, GOLD_ICON_24)
end,
callback = function(dialog)
BuyBankSpace()
ZO_AlertNoSuppression(UI_ALERT_CATEGORY_ALERT, nil, GetString(SI_GAMEPAD_BANK_UPGRADED_ALERT))
self:Hide()
end,
}
}
})
- ingame/campaign/gamepad/campaignbrowserdialogs_gamepad.lua:16 --
ZO_Dialogs_RegisterCustomDialog(ZO_GAMEPAD_CAMPAIGN_SELECT_DIALOG,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.PARAMETRIC
},
parametricListOnSelectionChangedCallback = function()
KEYBIND_STRIP:UpdateCurrentKeybindButtonGroups()
end,
setup = function(dialog)
local nowCost, endCost = ZO_SelectHomeCampaign_GetCost()
screen.nowCost = nowCost
screen.endCost = endCost
screen.isFree = screen.nowCost == 0
screen.numAlliancePoints = GetAlliancePoints()
screen.hasEnough = screen.nowCost <= screen.numAlliancePoints
dialog:setupFunc()
end,
title =
{
text = SI_GAMEPAD_CAMPAIGN_BROWSER_CHOOSE_HOME_OR_GUEST_CAMPAIGN,
},
parametricList =
{
{
template = "ZO_CampaignBrowserDialogsGamepadMenuEntry",
text = GetString(SI_GAMEPAD_CAMPAIGN_BROWSER_CHOOSE_HOME_CAMPAIGN),
icon = "EsoUI/Art/Campaign/Gamepad/gp_overview_menuIcon_home.dds",
templateData = {
isHome = true,
subLabels = {
function(control)
if screen.isFree then
return ""
else
return GAMEPAD_AVA_BROWSER:GetPriceMessage(screen.nowCost, screen.hasEnough)
end
end
},
setup = ZO_SharedGamepadEntry_OnSetup,
},
},
{
template = "ZO_CampaignBrowserDialogsGamepadMenuEntry",
text = GetString(SI_GAMEPAD_CAMPAIGN_BROWSER_CHOOSE_GUEST_CAMPAIGN),
icon = "EsoUI/Art/Campaign/Gamepad/gp_overview_menuIcon_guest.dds",
templateData = {
isHome = false,
setup = ZO_SharedGamepadEntry_OnSetup,
},
},
},
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_SELECT_OPTION,
callback = function(dialog)
local targetData = dialog.entryList:GetTargetData()
local selectedCampaign = screen:GetTargetData()
if(selectedCampaign.id) then
if(targetData.isHome) then -- assign home
local lockTimeLeft = GetCampaignReassignCooldown()
if(lockTimeLeft > 0) then
ZO_Dialogs_ShowGamepadDialog(ZO_GAMEPAD_CAMPAIGN_LOCKED_DIALOG, { isHome = targetData.isHome, id = selectedCampaign.id } )
else
ZO_Dialogs_ShowGamepadDialog(ZO_GAMEPAD_CAMPAIGN_SET_HOME_REVIEW_DIALOG, { id = selectedCampaign.id }, { mainTextParams = GAMEPAD_AVA_BROWSER:GetTextParamsForSetHomeDialog() })
end
else -- assign guest
local lockTimeLeft = GetCampaignGuestCooldown()
if(lockTimeLeft > 0) then
ZO_Dialogs_ShowGamepadDialog(ZO_GAMEPAD_CAMPAIGN_LOCKED_DIALOG, { isHome = targetData.isHome, id = selectedCampaign.id} )
else
ZO_Dialogs_ShowGamepadDialog(ZO_GAMEPAD_CAMPAIGN_GUEST_WARNING_DIALOG, { id = selectedCampaign.id, name = selectedCampaign.name })
end
end
end
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
},
}
})
- ingame/campaign/gamepad/campaignbrowserdialogs_gamepad.lua:115 --
ZO_Dialogs_RegisterCustomDialog(ZO_GAMEPAD_CAMPAIGN_QUEUE_DIALOG,
{
canQueue = true,
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.PARAMETRIC
},
setup = function(dialog)
dialog:setupFunc()
end,
title =
{
text = SI_CAMPAIGN_BROWSER_QUEUE_DIALOG_TITLE,
},
mainText =
{
text = SI_CAMPAIGN_BROSWER_QUEUE_DIALOG_PROMPT,
},
parametricList =
{
{
template = "ZO_GamepadMenuEntryTemplate",
templateData = {
isHome = true,
text = GetString(SI_CAMPAIGN_BROWSER_QUEUE_GROUP),
setup = ZO_SharedGamepadEntry_OnSetup,
callback = function(dialog)
local IS_GROUP = true
QueueForCampaign(dialog.data.id, IS_GROUP)
end,
},
},
{
template = "ZO_GamepadMenuEntryTemplate",
templateData = {
isHome = false,
text = GetString(SI_CAMPAIGN_BROWSER_QUEUE_SOLO),
setup = ZO_SharedGamepadEntry_OnSetup,
callback = function(dialog)
local IS_GROUP = false
QueueForCampaign(dialog.data.id, IS_GROUP)
end,
},
},
},
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_SELECT_OPTION,
callback = function(dialog)
local targetData = dialog.entryList:GetTargetData()
if targetData and targetData.callback then
targetData.callback(dialog)
end
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
},
}
})
- ingame/campaign/gamepad/campaignbrowserdialogs_gamepad.lua:193 --
ZO_Dialogs_RegisterCustomDialog(ZO_GAMEPAD_CAMPAIGN_LOCKED_DIALOG,
{
canQueue = true,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
updateFn = function(dialog)
ZO_Dialogs_RefreshDialogText(ZO_GAMEPAD_CAMPAIGN_LOCKED_DIALOG, basicDialog)
--If the displayed cooldown reaches 0, automatically forward user to the now unlocked dialog they were trying to navigate to originally
if dialog.data.isHome then
if dialog.data.isAbandoning then
local timeLeft = GetCampaignUnassignCooldown()
if timeLeft <= 0 then
ZO_Dialogs_ShowGamepadDialog(ZO_GAMEPAD_CAMPAIGN_ABANDON_HOME_CONFIRM_DIALOG, { id = dialog.data.id }, { mainTextParams = screen:GetTextParamsForAbandonHomeDialog() })
ZO_Dialogs_ReleaseDialog("GAMEPAD_CAMPAIGN_LOCKED_DIALOG")
end
else
local timeLeft = GetCampaignReassignCooldown()
if timeLeft <= 0 then
ZO_Dialogs_ShowGamepadDialog(ZO_GAMEPAD_CAMPAIGN_SET_HOME_REVIEW_DIALOG, { id = dialog.data.id }, { mainTextParams = screen:GetTextParamsForSetHomeDialog() })
ZO_Dialogs_ReleaseDialog("GAMEPAD_CAMPAIGN_LOCKED_DIALOG")
end
end
else
local timeLeft = GetCampaignGuestCooldown()
if timeLeft <= 0 then
if dialog.data.isAbandoning then
ZO_Dialogs_ShowGamepadDialog(ZO_GAMEPAD_CAMPAIGN_ABANDON_GUEST_DIALOG)
ZO_Dialogs_ReleaseDialog("GAMEPAD_CAMPAIGN_LOCKED_DIALOG")
else
local selectedCampaign = screen:GetTargetData()
ZO_Dialogs_ShowGamepadDialog(ZO_GAMEPAD_CAMPAIGN_GUEST_WARNING_DIALOG, { id = selectedCampaign.id, name = selectedCampaign.name })
ZO_Dialogs_ReleaseDialog("GAMEPAD_CAMPAIGN_LOCKED_DIALOG")
end
end
end
end,
title =
{
text = SI_GAMEPAD_CAMPAIGN_LOCKED_DIALOG_TITLE,
},
mainText =
{
text = function(dialog)
if dialog.data.isHome then
local timeLeft = dialog.data.isAbandoning and GetCampaignUnassignCooldown() or GetCampaignReassignCooldown()
local timeleftStr = ZO_FormatTime(timeLeft, TIME_FORMAT_STYLE_COLONS, TIME_FORMAT_PRECISION_TWELVE_HOUR, TIME_FORMAT_DIRECTION_DESCENDING)
if (dialog.data.isAbandoning) then
return zo_strformat(SI_ABANDON_HOME_CAMPAIGN_LOCKED_MESSAGE, timeleftStr)
else
return zo_strformat(SI_SELECT_HOME_CAMPAIGN_LOCKED_MESSAGE, timeleftStr)
end
else
local timeLeft = GetCampaignGuestCooldown()
local timeleftStr = ZO_FormatTime(timeLeft, TIME_FORMAT_STYLE_COLONS, TIME_FORMAT_PRECISION_TWELVE_HOUR, TIME_FORMAT_DIRECTION_DESCENDING)
if (dialog.data.isAbandoning) then
return zo_strformat(SI_ABANDON_GUEST_CAMPAIGN_LOCKED_MESSAGE, timeleftStr)
else
return zo_strformat(SI_SELECT_GUEST_CAMPAIGN_LOCKED_MESSAGE, timeleftStr)
end
end
end,
},
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
},
},
})
- ingame/campaign/gamepad/campaignbrowserdialogs_gamepad.lua:276 --
ZO_Dialogs_RegisterCustomDialog(ZO_GAMEPAD_CAMPAIGN_GUEST_WARNING_DIALOG,
{
canQueue = true,
onlyQueueOnce = true,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.STATIC_LIST,
},
setup = function(dialog)
dialog:setupFunc()
end,
title =
{
text = SI_GAMEPAD_CAMPAIGN_BROWSER_CONFIRM_GUEST_CAMPAIGN_TITLE,
},
mainText =
{
text = SI_SELECT_CAMPAIGN_COOLDOWN_WARNING,
},
itemInfo =
{
{
icon = BULLET_ICON,
iconSize = BULLET_ICON_SIZE,
label = GetString(SI_SELECT_GUEST_CAMPAIGN_BULLET1),
},
{
icon = BULLET_ICON,
iconSize = BULLET_ICON_SIZE,
label = GetString(SI_SELECT_GUEST_CAMPAIGN_BULLET2),
},
{
icon = BULLET_ICON,
iconSize = BULLET_ICON_SIZE,
label = GetString(SI_SELECT_GUEST_CAMPAIGN_BULLET3),
},
},
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_DIALOG_ACCEPT,
callback = function(callbackDialog)
AssignCampaignToPlayer(callbackDialog.data.id, CAMPAIGN_REASSIGN_TYPE_GUEST)
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
},
},
})
- ingame/campaign/gamepad/campaignbrowserdialogs_gamepad.lua:342 --
ZO_Dialogs_RegisterCustomDialog(ZO_GAMEPAD_CAMPAIGN_ABANDON_GUEST_DIALOG,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.BASIC
},
canQueue = true,
onlyQueueOnce = true,
setup = function(dialog)
dialog:setupFunc()
end,
title =
{
text = SI_CAMPAIGN_BROWSER_ABANDON_CAMPAIGN,
},
mainText =
{
text = function()
local guestCampaignId = GetGuestCampaignId()
return zo_strformat(GetString(SI_ABANDON_GUEST_CAMPAIGN_QUERY), GetCampaignName(guestCampaignId))
end,
},
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_DIALOG_ACCEPT,
callback = function()
UnassignCampaignForPlayer(CAMPAIGN_UNASSIGN_TYPE_GUEST)
end,
clickSound = SOUNDS.DIALOG_ACCEPT,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
},
}
})
- ingame/campaign/gamepad/campaignbrowserdialogs_gamepad.lua:392 --
ZO_Dialogs_RegisterCustomDialog(ZO_GAMEPAD_CAMPAIGN_SET_HOME_REVIEW_DIALOG,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.BASIC
},
canQueue = true,
onlyQueueOnce = true,
setup = function(dialog)
dialog:setupFunc()
end,
title =
{
text = SI_GAMEPAD_CAMPAIGN_BROWSER_CHOOSE_HOME_CAMPAIGN_DIALOG_TITLE,
},
mainText =
{
text = SI_GAMEPAD_CAMPAIGN_BROWSER_CHOOSE_HOME_CAMPAIGN_MESSAGE,
},
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_DIALOG_ACCEPT,
callback = function(dialog)
ZO_Dialogs_ShowGamepadDialog(ZO_GAMEPAD_CAMPAIGN_SET_HOME_CONFIRM_DIALOG, { id = dialog.data.id } )
end,
clickSound = SOUNDS.DIALOG_ACCEPT,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
},
}
})
- ingame/campaign/gamepad/campaignbrowserdialogs_gamepad.lua:449 --
ZO_Dialogs_RegisterCustomDialog(ZO_GAMEPAD_CAMPAIGN_SET_HOME_CONFIRM_DIALOG,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.PARAMETRIC
},
canQueue = true,
setup = function(dialog)
local nowCost, endCost = ZO_SelectHomeCampaign_GetCost()
screen.nowCost = nowCost
screen.endCost = endCost
screen.isFree = screen.nowCost == 0
screen.numAlliancePoints = GetAlliancePoints()
screen.hasEnoughNow = screen.nowCost <= screen.numAlliancePoints
screen.hasEnoughEnd = screen.endCost <= screen.numAlliancePoints
dialog:setupFunc()
end,
title =
{
text = SI_GAMEPAD_CAMPAIGN_BROWSER_CONFIRM_HOME_CAMPAIGN_DIALOG_TITLE,
},
parametricList =
{
{
template = "ZO_CampaignBrowserDialogsGamepadMenuEntryNoIcon",
text = GetString(SI_GAMEPAD_CAMPAIGN_SELECT_HOME_NOW),
templateData = {
isNow = true,
subLabels = {
function(control)
if screen.isFree then
return ""
else
return GAMEPAD_AVA_BROWSER:GetPriceMessage(screen.nowCost, screen.hasEnoughNow)
end
end
},
setup = ZO_SharedGamepadEntry_OnSetup,
callback = function(dialog)
AssignCampaignToPlayer(dialog.data.id, CAMPAIGN_REASSIGN_TYPE_IMMEDIATE)
end,
},
},
{
template = "ZO_CampaignBrowserDialogsGamepadMenuEntryExtraInfo",
text = GetString(SI_GAMEPAD_CAMPAIGN_SELECT_HOME_ON_END),
templateData = {
subLabels = {
GetString(SI_GAMEPAD_CAMPAIGN_SELECT_HOME_ON_END_INFO),
function(control)
if screen.isFree then
return ""
else
return GAMEPAD_AVA_BROWSER:GetPriceMessage(screen.endCost, screen.hasEnoughEnd)
end
end
},
setup = ZO_SharedGamepadEntry_OnSetup,
callback = function(dialog)
AssignCampaignToPlayer(dialog.data.id, CAMPAIGN_REASSIGN_TYPE_ON_END)
end,
visible = function()
return GetAssignedCampaignId() ~= 0
end,
},
},
},
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_SELECT_OPTION,
visible = function(dialog)
return CanChange(dialog)
end,
callback = function(dialog)
local targetData = dialog.entryList:GetTargetData()
if targetData and targetData.callback then
targetData.callback(dialog)
end
end,
clickSound = SOUNDS.DIALOG_ACCEPT,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
},
}
})
- ingame/campaign/gamepad/campaignbrowserdialogs_gamepad.lua:563 --
ZO_Dialogs_RegisterCustomDialog(ZO_GAMEPAD_CAMPAIGN_ABANDON_HOME_CONFIRM_DIALOG,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.PARAMETRIC
},
canQueue = true,
onlyQueueOnce = true,
setup = function(dialog)
local alliancePointCost, goldCost = ZO_AbandonHomeCampaign_GetCost()
screen.alliancePointCost = alliancePointCost
screen.goldCost = goldCost
screen.numAlliancePoints = GetAlliancePoints()
screen.numGoldAvailable = GetCurrentMoney()
screen.hasEnoughAlliancePoints = screen.alliancePointCost <= screen.numAlliancePoints
screen.hasEnoughGold = screen.goldCost <= screen.numGoldAvailable
dialog:setupFunc()
end,
title =
{
text = SI_CAMPAIGN_BROWSER_ABANDON_CAMPAIGN,
},
mainText =
{
text = SI_GAMEPAD_CAMPAIGN_BROWSER_CHOOSE_HOME_CAMPAIGN_MESSAGE,
},
--Only show those options that are relevant to the current cost of abandoning campaign through visible function parameter
parametricList =
{
--Free Change: this option intentionally empty text, if the change is free then only this option will be allowed and the dialog is just an accept/confirm with no options
{
template = "ZO_CampaignBrowserDialogsGamepadMenuEntryNoIcon",
text = "",
templateData = {
useAlliancePoints = true,
subLabels = {
""
},
setup = ZO_SharedGamepadEntry_OnSetup,
callback = function()
UnassignCampaignForPlayer(CAMPAIGN_UNASSIGN_TYPE_HOME_USE_ALLIANCE_POINTS)
end,
visible = function()
return screen.alliancePointCost == 0
end,
},
},
--Use Alliance Points
{
template = "ZO_CampaignBrowserDialogsGamepadMenuEntryNoIcon",
text = GetString(SI_ABANDON_HOME_CAMPAIGN_USE_ALLIANCE_POINTS),
templateData = {
useAlliancePoints = true,
subLabels = {
function(control)
return GAMEPAD_AVA_BROWSER:GetPriceMessage(screen.alliancePointCost, screen.hasEnoughAlliancePoints)
end
},
setup = ZO_SharedGamepadEntry_OnSetup,
callback = function()
UnassignCampaignForPlayer(CAMPAIGN_UNASSIGN_TYPE_HOME_USE_ALLIANCE_POINTS)
end,
visible = function()
return screen.alliancePointCost ~= 0
end,
},
},
--Use Gold
{
template = "ZO_CampaignBrowserDialogsGamepadMenuEntryNoIcon",
text = GetString(SI_ABANDON_HOME_CAMPAIGN_USE_GOLD),
templateData = {
subLabels = {
function(control)
local USE_GOLD = true
return GAMEPAD_AVA_BROWSER:GetPriceMessage(screen.goldCost, screen.hasEnoughGold, USE_GOLD)
end
},
setup = ZO_SharedGamepadEntry_OnSetup,
callback = function()
UnassignCampaignForPlayer(CAMPAIGN_UNASSIGN_TYPE_HOME_USE_GOLD)
end,
visible = function()
return screen.goldCost ~= 0 and screen.alliancePointCost ~= 0
end,
},
},
},
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_DIALOG_ACCEPT,
visible = function()
return CanChange()
end,
callback = function()
local targetData = dialog.entryList:GetTargetData()
if(targetData and targetData.callback) then
targetData.callback()
end
end,
clickSound = SOUNDS.DIALOG_ACCEPT,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
},
}
})
- ingame/championperks/championperks.lua:224 --
ZO_Dialogs_RegisterCustomDialog("CHAMPION_CONFIRM_COST",
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
customControl = customControl,
title =
{
text = SI_CHAMPION_DIALOG_CONFIRM_CHANGES_TITLE,
},
mainText =
{
text = zo_strformat(SI_CHAMPION_DIALOG_CONFIRM_POINT_COST),
},
setup = function(dialog)
if SCENE_MANAGER:IsCurrentSceneGamepad() then
local icon = zo_iconFormat(ZO_GAMEPAD_CURRENCY_ICON_GOLD_TEXTURE, 24, 24)
gamepadData.data1.value = zo_strformat(SI_CHAMPION_RESPEC_CURRENCY_FORMAT, ZO_CommaDelimitNumber(GetCarriedCurrencyAmount(CURT_MONEY)) , icon)
gamepadData.data2.value = zo_strformat(SI_CHAMPION_RESPEC_CURRENCY_FORMAT, ZO_CommaDelimitNumber(GetChampionRespecCost()), icon)
dialog.setupFunc(dialog, gamepadData)
else
ZO_CurrencyControl_SetSimpleCurrency(customControl:GetNamedChild("BalanceAmount"), CURT_MONEY, GetCarriedCurrencyAmount(CURT_MONEY))
ZO_CurrencyControl_SetSimpleCurrency(customControl:GetNamedChild("RespecCost"), CURT_MONEY, GetChampionRespecCost())
end
end,
buttons =
{
{
control = customControl:GetNamedChild("Confirm"),
text = SI_DIALOG_CONFIRM,
callback = function(dialog)
CHAMPION_PERKS:SpendPointsConfirmed(dialog.data.respecNeeded)
end,
},
{
control = customControl:GetNamedChild("Cancel"),
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/chatsystem/chatoptions.lua:60 --
ZO_Dialogs_RegisterCustomDialog("CHAT_OPTIONS_DIALOG",
{
customControl = control,
title =
{
text = SI_WINDOW_TITLE_CHAT_CHANNEL_OPTIONS,
},
setup = function(self) CHAT_OPTIONS:Initialize(control) end,
buttons =
{
{
control = GetControl(control, "Commit"),
text = SI_DIALOG_EXIT,
keybind = "DIALOG_NEGATIVE",
callback = function(dialog)
ZO_ChatOptions_OnCommitClicked()
end,
},
{
control = GetControl(control, "Reset"),
text = SI_OPTIONS_DEFAULTS,
keybind = "DIALOG_RESET",
callback = function(dialog)
ZO_ChatOptions_OnResetClicked()
end,
},
}
})
- ingame/collections/gamepad/collectionsbook_gamepad.lua:826 --
ZO_Dialogs_RegisterCustomDialog(GAMEPAD_COLLECTIONS_ACTIONS_DIALOG_NAME,
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
canQueue = true,
setup = function(dialog)
dialog:setupFunc()
end,
title =
{
text = SI_GAMEPAD_INVENTORY_ACTION_LIST_KEYBIND,
},
parametricList =
{
-- Link In Chat
{
template = "ZO_GamepadMenuEntryTemplate",
templateData = {
text = GetString(SI_ITEM_ACTION_LINK_TO_CHAT),
setup = ZO_SharedGamepadEntry_OnSetup,
callback = function(dialog)
local link = ZO_LinkHandler_CreateChatLink(GetCollectibleLink, dialog.data.collectibleId)
ZO_LinkHandler_InsertLink(zo_strformat(SI_TOOLTIP_ITEM_NAME, link))
CHAT_SYSTEM:SubmitTextEntry()
end,
},
},
-- Rename
{
template = "ZO_GamepadMenuEntryTemplate",
templateData = {
text = GetString(SI_COLLECTIBLE_ACTION_RENAME),
setup = ZO_SharedGamepadEntry_OnSetup,
callback = function(dialog)
ZO_Dialogs_ShowGamepadDialog(GAMEPAD_COLLECTIONS_RENAME_COLLECTIBLE_DIALOG_NAME, { collectibleId = dialog.data.collectibleId, name = dialog.data.name })
end,
visible = function(dialog)
return IsCollectibleRenameable(parametricDialog.data.collectibleId)
end
},
},
-- Unlock Permanently (Purchase)
{
template = "ZO_GamepadMenuEntryTemplate",
templateData = {
text = GetString(SI_GAMEPAD_DLC_BOOK_ACTION_OPEN_CROWN_STORE),
setup = ZO_SharedGamepadEntry_OnSetup,
callback = function(dialog)
local entryData = self.currentList.list:GetTargetData()
local collectibleData = entryData.data
local searchTerm = zo_strformat(SI_CROWN_STORE_SEARCH_FORMAT_STRING, collectibleData.name)
ShowMarketAndSearch(searchTerm, MARKET_OPEN_OPERATION_COLLECTIONS_DLC)
end,
visible = function()
local entryData = self.currentList.list:GetTargetData()
local collectibleData = entryData.data
return collectibleData.purchasable and collectibleData.unlockState ~= COLLECTIBLE_UNLOCK_STATE_UNLOCKED_OWNED
end
},
},
},
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_OK,
callback = function(dialog)
local data = dialog.entryList:GetTargetData()
data.callback(dialog)
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
},
}
})
- ingame/collections/gamepad/collectionsbook_gamepad.lua:954 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
canQueue = true,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
setup = function(dialog)
dialog:setupFunc()
end,
title =
{
text = SI_COLLECTIONS_INVENTORY_DIALOG_RENAME_COLLECTIBLE_TITLE,
},
mainText =
{
text = SI_COLLECTIONS_INVENTORY_DIALOG_RENAME_COLLECTIBLE_MAIN,
},
parametricList =
{
-- user name
{
template = "ZO_GamepadTextFieldItem",
templateData = {
nameField = true,
textChangedCallback = function(control)
inputText = control:GetText()
UpdateSelectedName(inputText)
end,
setup = function(control, data, selected, reselectingDuringRebuild, enabled, active)
control.editBoxControl.textChangedCallback = data.textChangedCallback
control.editBoxControl:SetMaxInputChars(COLLECTIBLE_NAME_MAX_LENGTH)
data.control = control
if parametricDialog.data then
control.editBoxControl:SetText(zo_strformat(SI_COLLECTIBLE_NAME_FORMATTER, parametricDialog.data.name))
else
ZO_EditDefaultText_Initialize(control.editBoxControl, "")
end
end,
},
},
},
blockDialogReleaseOnPress = true,
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_SELECT_OPTION,
callback = function(dialog)
local data = dialog.entryList:GetTargetData()
SetActiveEdit(data.control.editBoxControl)
end,
},
{
keybind = "DIALOG_SECONDARY",
text = SI_GAMEPAD_COLLECTIONS_SAVE_NAME_OPTION,
callback = function(dialog)
local collectibleId = dialog.data.collectibleId
RenameCollectible(collectibleId, inputText)
ReleaseDialog()
end,
visible = function()
return self.noViolations
end,
clickSound = SOUNDS.DIALOG_ACCEPT,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
callback = function(dialog)
ReleaseDialog()
end,
},
}
})
- ingame/contacts/gamepad/notifications_gamepad.lua:616 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
setup = function(dialog)
dialog:setupFunc()
end,
title =
{
text = SI_GAMEPAD_NOTIFICATIONS_DECLINE_INVITE,
},
mainText =
{
text = function(dialog)
return dialog.data.mainText()
end,
},
parametricList = parametricListOptions,
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_OK,
callback = function(dialog)
local data = dialog.entryList:GetTargetData()
data.callback(dialog)
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
},
}
})
- ingame/contacts/gamepad/socialdialogs_gamepad.lua:77 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
setup = function(dialog)
dialog.info.parametricList = dialog.data.parametricList
finishedCallback = nil
dialog:setupFunc()
end,
finishedCallback = function(dialog)
if finishedCallback then
finishedCallback()
end
end,
title =
{
text = SI_GAMEPAD_CONTACTS_OPTIONS_TITLE,
},
blockDialogReleaseOnPress = true,
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_SELECT_OPTION,
callback = function(dialog)
local data = dialog.entryList:GetTargetData()
if data.callback then
data.callback()
end
finishedCallback = data.finishedCallback
ReleaseDialog(dialogName)
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
callback = function()
ReleaseDialog(dialogName)
end,
},
}
})
- ingame/contacts/gamepad/socialdialogs_gamepad.lua:135 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
canQueue = true,
setup = function(dialog)
dialog:setupFunc()
end,
title =
{
text = SI_EDIT_NOTE_DIALOG_TITLE,
},
parametricList =
{
-- note
{
template = "ZO_Gamepad_GenericDialog_Parametric_TextFieldItem",
templateData = {
nameField = true,
textChangedCallback = function(control)
parametricDialog.data.note = control:GetText()
end,
setup = function(control, data, selected, reselectingDuringRebuild, enabled, active)
control.highlight:SetHidden(not selected)
control.editBoxControl.textChangedCallback = data.textChangedCallback
ZO_EditDefaultText_Initialize(control.editBoxControl, GetString(SI_EDIT_NOTE_DEFAULT_TEXT))
if parametricDialog.data.note then
control.editBoxControl:SetText(parametricDialog.data.note)
end
data.control = control
end,
callback = function(dialog)
SetActiveEdit(dialog)
end,
},
},
-- save
{
template = "ZO_GamepadTextFieldSubmitItem",
templateData = {
text = GetString(SI_GAMEPAD_CONTACTS_EDIT_NOTE_CONFIRM),
setup = SetupRequestEntry,
callback = function(dialog)
if dialog.data.noteChangedCallback then
dialog.data.noteChangedCallback(dialog.data.displayName, dialog.data.note)
ZO_Alert(UI_ALERT_CATEGORY_ALERT, nil, SI_GAMEPAD_CONTACTS_NOTE_SAVED)
ReleaseDialog(dialogName)
end
end,
},
},
},
blockDialogReleaseOnPress = true,
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_SELECT_OPTION,
callback = function(dialog)
PrimaryButtonCallback(dialog)
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
callback = function()
ReleaseDialog(dialogName)
end,
},
}
})
- ingame/contacts/gamepad/socialdialogs_gamepad.lua:336 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
canQueue = true,
setup = function(dialog)
if dialog.data then
nameText = dialog.data.displayName
else
nameText = ""
end
dialog:setupFunc()
end,
title =
{
text = SI_REQUEST_FRIEND_DIALOG_TITLE,
},
parametricList = friendParametricList,
blockDialogReleaseOnPress = true,
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_SELECT_OPTION,
callback = function(dialog)
PrimaryButtonCallback(dialog)
end,
enabled = function(control)
return IsButtonEnabled(control, SI_GAMEPAD_REQUEST_OPTION, nameText)
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
callback = function(dialog)
ReleaseAddFriendDialog()
end,
},
}
})
- ingame/contacts/gamepad/socialdialogs_gamepad.lua:395 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
canQueue = true,
setup = function(dialog)
dialog:setupFunc()
end,
title =
{
text = SI_PROMPT_TITLE_ADD_IGNORE,
},
parametricList =
{
-- user name
{
template = "ZO_Gamepad_GenericDialog_Parametric_TextFieldItem",
templateData = {
nameField = true,
textChangedCallback = function(control)
nameText = control:GetText()
end,
setup = function(control, data, selected, reselectingDuringRebuild, enabled, active)
control.highlight:SetHidden(not selected)
control.editBoxControl.textChangedCallback = data.textChangedCallback
data.control = control
if parametricDialog.data and data.nameField then
control.editBoxControl:SetText(parametricDialog.data.displayName)
else
local validInput = IsValidInput(nameText)
if validInput then
control.editBoxControl:SetText(nameText)
else
ZO_EditDefaultText_Initialize(control.editBoxControl, GetInviteInstructions())
end
end
end,
callback = function(dialog)
SetActiveEdit(dialog)
end,
},
},
-- ignore
{
template = "ZO_GamepadTextFieldSubmitItem",
templateData = {
text = GetString(SI_FRIEND_MENU_IGNORE),
setup = SetupRequestEntry,
callback = function(dialog)
if IsValidInput(nameText) then
AddIgnore(nameText)
ReleaseDialog(dialogName)
end
end,
validInput = function()
return IsValidInput(nameText)
end,
}
},
},
blockDialogReleaseOnPress = true,
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_SELECT_OPTION,
callback = function(dialog)
PrimaryButtonCallback(dialog)
end,
enabled = function(control)
return IsButtonEnabled(control, SI_FRIEND_MENU_IGNORE, nameText)
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
callback = function(dialog)
ReleaseDialog(dialogName)
end,
},
}
})
- ingame/contacts/gamepad/socialdialogs_gamepad.lua:493 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
setup = function(dialog)
nameText = ""
dialog:setupFunc()
end,
title =
{
text = SI_PROMPT_TITLE_GUILD_INVITE,
},
parametricList =
{
-- user name
{
template = "ZO_Gamepad_GenericDialog_Parametric_TextFieldItem",
templateData = {
textChangedCallback = function(control)
nameText = control:GetText()
end,
setup = function(control, data, selected, reselectingDuringRebuild, enabled, active)
control.highlight:SetHidden(not selected)
control.editBoxControl.textChangedCallback = data.textChangedCallback
data.control = control
local validInput = IsValidInput(nameText)
if validInput then
control.editBoxControl:SetText(nameText)
else
ZO_EditDefaultText_Initialize(control.editBoxControl, GetInviteInstructions())
end
end,
callback = function(dialog)
SetActiveEdit(dialog)
end,
},
},
-- add
{
template = "ZO_GamepadTextFieldSubmitItem",
templateData = {
text = GetString(SI_GAMEPAD_REQUEST_OPTION),
setup = SetupRequestEntry,
callback = function(dialog)
if IsValidInput(nameText) then
local guildId = dialog.data.guildId
ZO_TryGuildInvite(guildId, ZO_FormatManualNameEntry(nameText))
ReleaseDialog(dialogName)
end
end,
validInput = function()
return IsValidInput(nameText)
end,
}
},
},
blockDialogReleaseOnPress = true,
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_SELECT_OPTION,
callback = function(dialog)
PrimaryButtonCallback(dialog)
end,
enabled = function(control)
return IsButtonEnabled(control, SI_GAMEPAD_REQUEST_OPTION, nameText)
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
callback = function(dialog)
ReleaseDialog(dialogName)
end,
},
}
})
- ingame/contacts/gamepad/socialdialogs_gamepad.lua:587 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
setup = function(dialog)
nameText = ""
dialog:setupFunc()
end,
title =
{
text = SI_GROUP_WINDOW_INVITE_PLAYER,
},
parametricList =
{
-- user name
{
template = "ZO_Gamepad_GenericDialog_Parametric_TextFieldItem",
templateData = {
textChangedCallback = function(control)
nameText = control:GetText()
end,
setup = function(control, data, selected, reselectingDuringRebuild, enabled, active)
control.highlight:SetHidden(not selected)
control.editBoxControl.textChangedCallback = data.textChangedCallback
data.control = control
local validInput = IsValidInput(nameText)
if validInput then
control.editBoxControl:SetText(nameText)
else
ZO_EditDefaultText_Initialize(control.editBoxControl, GetInviteInstructions())
end
end,
callback = function(dialog)
SetActiveEdit(dialog)
end,
},
},
-- invite
{
template = "ZO_GamepadTextFieldSubmitItem",
templateData = {
text = GetString(SI_GAMEPAD_REQUEST_OPTION),
setup = SetupRequestEntry,
callback = function(dialog)
if IsValidInput(nameText) then
local NOT_SENT_FROM_CHAT = false
local DISPLAY_INVITED_MESSAGE = true
TryGroupInviteByName(ZO_FormatManualNameEntry(nameText), NOT_SENT_FROM_CHAT, DISPLAY_INVITED_MESSAGE)
ReleaseDialog(dialogName)
end
end,
validInput = function()
return IsValidInput(nameText)
end,
}
},
},
blockDialogReleaseOnPress = true,
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_SELECT_OPTION,
callback = function(dialog)
PrimaryButtonCallback(dialog)
end,
enabled = function(control)
return IsButtonEnabled(control, SI_GAMEPAD_REQUEST_OPTION, nameText)
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
callback = function(dialog)
ReleaseDialog(dialogName)
end,
},
}
})
- ingame/contacts/gamepad/socialdialogs_gamepad.lua:710 --
ZO_Dialogs_RegisterCustomDialog("GAMEPAD_REPORT_PLAYER_DIALOG",
{
setup = function(dialog, data)
targetCharacterName = data.characterName
targetDisplayName = data.displayName
dialog:setupFunc()
ZO_GenericGamepadDialog_ShowTooltip(dialog)
end,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
title =
{
text = GetString(SI_DIALOG_TITLE_REPORT_PLAYER),
},
mainText =
{
text = GetString(SI_GAMEPAD_HELP_PLAYER_NAME),
},
parametricList =
{
{
template = "ZO_GamepadMenuEntryTemplate",
templateData = {
text = GetString(SI_DIALOG_BUTTON_REPORT_PLAYER),
tooltip = GetString(SI_DIALOG_TEXT_REPORT_PLAYER_OPEN_TICKET),
setup = SetupReportEntry,
callback = function(entryData)
ReportPlayerDefault(targetDisplayName)
end
}
},
},
buttons =
{
[1] =
{
text = SI_GAMEPAD_SELECT_OPTION,
callback = function(dialog)
local targetData = dialog.entryList:GetTargetData()
if targetData and targetData.callback then
targetData.callback(targetData)
ZO_GenericGamepadDialog_HideTooltip(dialog)
end
end,
},
[2] =
{
text = SI_DIALOG_CANCEL,
},
},
})
- ingame/contacts/keyboard/socialdialogs_keyboard.lua:14 --
ZO_Dialogs_RegisterCustomDialog("REQUEST_FRIEND",
{
customControl = self,
setup = RequestFriendDialogSetup,
title =
{
text = SI_REQUEST_FRIEND_DIALOG_TITLE,
},
buttons =
{
[1] =
{
control = GetControl(self, "Request"),
text = SI_REQUEST_FRIEND_DIALOG_REQUEST,
callback = function(dialog)
local name = GetControl(dialog, "NameEdit"):GetText()
local message = GetControl(dialog, "MessageEdit"):GetText()
if(name ~= "") then
RequestFriend(name, message)
end
end,
},
[2] =
{
control = GetControl(self, "Cancel"),
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/contacts/keyboard/socialdialogs_keyboard.lua:60 --
ZO_Dialogs_RegisterCustomDialog("EDIT_NOTE",
{
customControl = self,
setup = EditNoteDialogSetup,
title =
{
text = SI_EDIT_NOTE_DIALOG_TITLE,
},
buttons =
{
[1] =
{
control = GetControl(self, "Save"),
text = SI_SAVE,
callback = function(dialog)
local data = dialog.data
local note = GetControl(dialog, "NoteEdit"):GetText()
if(note ~= data.note) then
data.changedCallback(data.displayName, note)
end
end,
},
[2] =
{
control = GetControl(self, "Cancel"),
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/contacts/keyboard/socialdialogs_keyboard.lua:110 --
ZO_Dialogs_RegisterCustomDialog("CREATE_GUILD",
{
title =
{
text = SI_PROMPT_TITLE_GUILD_CREATE,
},
customControl = self,
setup = CreateGuildDialogSetup,
buttons =
{
[1] =
{
control = GetControl(self, "Create"),
text = SI_DIALOG_CREATE,
callback = function(dialog)
local guildName = dialog.nameEdit:GetText()
if(guildName and guildName ~= "") then
GuildCreate(guildName, dialog.selectedAlliance)
end
end,
},
[2] =
{
control = GetControl(self, "Cancel"),
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/contacts/keyboard/socialdialogs_keyboard.lua:224 --
ZO_Dialogs_RegisterCustomDialog("REPORT_PLAYER",
{
customControl = self,
setup = SetupReportDialog,
title =
{
text = SI_DIALOG_TITLE_REPORT_PLAYER,
},
buttons =
{
{
keybind = "DIALOG_SECONDARY",
control = self:GetNamedChild("OpenTicket"),
text = reasonToString[REPORT_PLAYER_REASON_BEHAVIOR],
callback = function(dialog)
HELP_CUSTOMER_SERVICE_ASK_FOR_HELP_KEYBOARD:OpenAskForHelp(CUSTOMER_SERVICE_ASK_FOR_HELP_CATEGORY_REPORT_PLAYER, CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_HARASSMENT)
end,
},
{
keybind = "DIALOG_PRIMARY",
control = self:GetNamedChild("ReportSpam"),
callback = function(dialog)
local data = dialog.data
HELP_CUSTOMER_SERVICE_ASK_FOR_HELP_KEYBOARD:OpenAskForHelp(CUSTOMER_SERVICE_ASK_FOR_HELP_CATEGORY_REPORT_PLAYER, CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_OTHER)
if(data.customCallback) then
data.customCallback()
end
end,
},
{
keybind = "DIALOG_NEGATIVE",
control = self:GetNamedChild("Cancel"),
text = SI_DIALOG_BUTTON_REPORT_CANCEL,
},
},
})
- ingame/crafting/keyboard/craftingresults_keyboard.lua:33 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
customControl = control,
setup = SetupEnchantDialog,
title =
{
text = SI_ENCHANTING_TRANSLATION_LEARNED_DIALOG_TITLE,
},
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
control = control:GetNamedChild("Exit"),
text = SI_EXIT_BUTTON,
},
}
})
- ingame/crafting/keyboard/craftingresults_keyboard.lua:161 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
customControl = control,
setup = SetupAlchemyDialog,
title =
{
text = SI_ALCHEMY_REAGENT_TRAIT_LEARNED_DIALOG_TITLE,
},
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
control = control:GetNamedChild("Exit"),
text = SI_EXIT_BUTTON,
},
}
})
- ingame/crafting/keyboard/smithingresearch_keyboard.lua:171 --
ZO_Dialogs_RegisterCustomDialog("SMITHING_RESEARCH_SELECT",
{
customControl = function() return ZO_InventorySlot_GetItemListDialog():GetControl() end,
setup = function(dialog, data) self:SetupDialog(data.craftingType, data.researchLineIndex, data.traitIndex) end,
title =
{
text = SI_SMITHING_RESEARCH_DIALOG_TITLE,
},
buttons =
{
{
control = ZO_InventorySlot_GetItemListDialog():GetButton(1),
text = SI_SMITHING_RESEARCH_DIALOG_CONFIRM,
clickSound = SOUNDS.SMITHING_START_RESEARCH,
callback = function()
local selectedData = ZO_InventorySlot_GetItemListDialog():GetSelectedItem()
if selectedData then
ResearchSmithingTrait(selectedData.bag, selectedData.index)
end
end,
},
{
control = ZO_InventorySlot_GetItemListDialog():GetButton(2),
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/dyeing/gamepad/dyeing_gamepad.lua:433 --
ZO_Dialogs_RegisterCustomDialog("DYEING_OPTIONS_GAMEPAD",
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
blockDialogReleaseOnPress = true,
setup = function(dialog)
showLockedEntry.checked = self.savedVars.showLocked
dialog:setupFunc()
end,
title =
{
text = GetString(SI_GAMEPAD_DYEING_OPTIONS_TITLE),
},
parametricList =
{
{
template = "ZO_Gamepad_Dropdown_Item_Indented",
entryData = sortListEntry,
header = GetString(SI_GAMEPAD_DYEING_SORT_OPTION_HEADER),
},
{
template = "ZO_CheckBoxTemplate_Gamepad",
entryData = showLockedEntry,
},
},
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_SELECT_OPTION,
callback = function(dialog)
local data = dialog.entryList:GetTargetData()
if data.callback then
data.callback(dialog)
end
end,
clickSound = SOUNDS.DIALOG_ACCEPT,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
callback = ReleaseDialog,
},
}
})
- ingame/enchanting/keyboard/applyenchant_keyboard.lua:34 --
ZO_Dialogs_RegisterCustomDialog("ENCHANTING",
{
customControl = function() return ZO_InventorySlot_GetItemListDialog():GetControl() end,
setup = function(dialog, data) self:SetupDialog(data.bag, data.index) end,
canQueue = true,
title =
{
text = SI_ENCHANT_TITLE,
},
buttons =
{
{
control = ZO_InventorySlot_GetItemListDialog():GetButton(1),
text = SI_ENCHANT_CONFIRM,
clickSound = SOUNDS.INVENTORY_ITEM_APPLY_ENCHANT,
callback = PerformEnchant,
},
{
control = ZO_InventorySlot_GetItemListDialog():GetButton(2),
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/guild/guildheraldry_shared.lua:553 --
ZO_Dialogs_RegisterCustomDialog(self:GetPurchaseDialogName(),
{
customControl = control,
setup = SetupHeraldryDialog,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = SI_GUILD_HERALDRY_DIALOG_PURCHASE_TITLE,
},
mainText =
{
text = SI_GUILD_HERALDRY_DIALOG_PURCHASE_DESCRIPTION,
},
buttons =
{
[1] =
{
keybind = "DIALOG_PRIMARY",
control = control and GetControl(control, "Accept"),
text = SI_DIALOG_ACCEPT,
callback = function(dialog)
ApplyPendingHeraldryChanges()
dialog.data.owner.pendingTransaction = true
end,
},
[2] =
{
keybind = "DIALOG_NEGATIVE",
control = control and GetControl(control, "Cancel"),
text = SI_DIALOG_CANCEL,
callback = function(dialog)
-- Do nothing
end,
},
}
})
- ingame/guild/guildheraldry_shared.lua:599 --
ZO_Dialogs_RegisterCustomDialog(self:GetApplyChangesDialogName(),
{
customControl = control,
setup = SetupHeraldryDialog,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = SI_GUILD_HERALDRY_DIALOG_APPLY_CHANGES_TITLE,
},
mainText =
{
text = function()
local textValue
if self:IsPendingExit() then
textValue = SI_GUILD_HERALDRY_DIALOG_APPLY_CHANGES_PENDING_EXIT_DESCRIPTION
else
textValue = SI_GUILD_HERALDRY_DIALOG_APPLY_CHANGES_DESCRIPTION
end
return textValue
end,
},
noChoiceCallback = function()
if self:IsPendingExit() then
self:NoChoiceExitCallback()
end
end,
buttons =
{
[1] =
{
keybind = "DIALOG_PRIMARY",
control = control and GetControl(control, "Accept"),
text = SI_GUILD_HERALDRY_DIALOG_ACCEPT,
callback = function(dialog)
ApplyPendingHeraldryChanges()
dialog.data.owner.pendingTransaction = true
if self:IsPendingExit() then
self:ConfirmExit()
end
end,
},
[2] =
{
keybind = "DIALOG_NEGATIVE",
control = control and GetControl(control, "Cancel"),
text = SI_GUILD_HERALDRY_DIALOG_CANCEL,
callback = function(dialog)
if self:IsPendingExit() then
self:ConfirmExit()
end
end,
},
[3] =
{
keybind = "DIALOG_TERTIARY",
control = control and GetControl(control, "Return"),
text = SI_GAMEPAD_GUILD_HERALDRY_CANCEL_EXIT,
callback = function(dialog)
self:CancelExit()
end,
visible = function()
return IsInGamepadPreferredMode() and self:IsPendingExit()
end,
},
}
})
- ingame/guild/selectguilddialog.lua:39 --
ZO_Dialogs_RegisterCustomDialog(dialogName, self.dialogInfo)
- ingame/guild/zo_guildranks_shared.lua:193 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
setup = function(dialog)
dialog:GetNamedChild("NameEdit"):SetText("")
dialog.copyComboBox:ClearItems()
local noneEntry = dialog.copyComboBox:CreateItemEntry(GetString(SI_GUILD_RANKS_COPY_NONE), dialog.copyComboBox.OnRankSelected)
dialog.copyComboBox:AddItem(noneEntry)
--Skip Guild Master
for i = 2, #self.ranks do
local entry = dialog.copyComboBox:CreateItemEntry(self.ranks[i].name, dialog.copyComboBox.OnRankSelected)
entry.rankIndex = i
dialog.copyComboBox:AddItem(entry)
end
dialog.copyComboBox:SetSelectedItemText(GetString(SI_GUILD_RANKS_COPY_NONE))
dialog.copyComboBox.selectedRankIndex = nil
end,
customControl = control,
title =
{
text = SI_GUILD_RANKS_ADD_RANK,
},
buttons =
{
[1] =
{
control = GetControl(control, "Add"),
text = SI_DIALOG_CREATE,
callback = function(dialog)
local rankName = dialog:GetNamedChild("NameEdit"):GetText()
self:AddRank(rankName, dialog.copyComboBox.selectedRankIndex)
end,
},
[2] =
{
control = GetControl(control, "Cancel"),
callback = function()
self:CancelDialog()
end,
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/guild/gamepad/zo_guildhub_gamepad.lua:181 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
setup = SetupDialog,
blockDialogReleaseOnPress = true, -- We'll handle Dialog Releases ourselves since we don't want DIALOG_PRIMARY to release the dialog on press.
title =
{
text = SI_GAMEPAD_GUILD_INFO_CHANGE_MOTD,
},
parametricList =
{
-- motd edit box
{
template = "ZO_Gamepad_GenericDialog_Parametric_TextFieldItem_Multiline",
templateData = {
nameField = true,
textChangedCallback = function(control)
local newMotd = control:GetText()
UpdateSelectedMotd(newMotd)
end,
setup = function(control, data, selected, reselectingDuringRebuild, enabled, active)
control.highlight:SetHidden(not selected)
control.editBoxControl.textChangedCallback = data.textChangedCallback
ZO_EditDefaultText_Initialize(control.editBoxControl, GetString(SI_GAMEPAD_GUILD_MOTD_EMPTY_TEXT))
control.editBoxControl:SetMaxInputChars(MAX_GUILD_MOTD_LENGTH)
control.editBoxControl:SetText(self.selectedMotd)
end,
},
},
-- accept
{
template = "ZO_GamepadTextFieldSubmitItem",
templateData = {
finishedSelector = true,
text = GetString(SI_DIALOG_ACCEPT),
setup = SetupRequestEntry,
validInput = function()
return self.selectedMotd and self.selectedMotd ~= ""
end,
}
},
},
buttons =
{
-- Cancel Button
{
keybind = "DIALOG_NEGATIVE",
text = GetString(SI_DIALOG_CANCEL),
callback = function()
ReleaseDialog()
end,
},
-- Select Button (used for entering name and selected alliance)
{
keybind = "DIALOG_PRIMARY",
text = GetString(SI_GAMEPAD_SELECT_OPTION),
callback = function(dialog)
local selectedData = dialog.entryList:GetTargetData()
local targetControl = dialog.entryList:GetTargetControl()
if(selectedData.nameField and targetControl) then
targetControl.editBoxControl:TakeFocus()
elseif(selectedData.finishedSelector) then
if(self.selectedMotd and self.selectedMotd ~= "") then
SetGuildMotD(self.optionsGuildId, self.selectedMotd)
end
ReleaseDialog()
end
end,
enabled = function()
local selectedData = parametricDialog.entryList:GetTargetData()
local enabled = true
if(selectedData.finishedSelector) then
enabled = self.selectedMotd and self.selectedMotd ~= ""
end
return enabled
end,
},
},
noChoiceCallback = function(dialog)
ReleaseDialog()
end,
})
- ingame/guild/gamepad/zo_guildhub_gamepad.lua:300 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
setup = SetupDialog,
blockDialogReleaseOnPress = true, -- We'll handle Dialog Releases ourselves since we don't want DIALOG_PRIMARY to release the dialog on press.
title =
{
text = SI_GAMEPAD_GUILD_INFO_CHANGE_ABOUT_US,
},
parametricList =
{
-- about us edit box
{
template = "ZO_Gamepad_GenericDialog_Parametric_TextFieldItem_Multiline",
templateData = {
nameField = true,
textChangedCallback = function(control)
local newAboutUs = control:GetText()
UpdateSelectedAboutUs(newAboutUs)
end,
setup = function(control, data, selected, reselectingDuringRebuild, enabled, active)
control.highlight:SetHidden(not selected)
control.editBoxControl.textChangedCallback = data.textChangedCallback
ZO_EditDefaultText_Initialize(control.editBoxControl, GetString(SI_GUILD_DESCRIPTION_HEADER))
control.editBoxControl:SetMaxInputChars(MAX_GUILD_DESCRIPTION_LENGTH)
control.editBoxControl:SetText(self.selectedAboutUs)
end,
},
},
-- accept
{
template = "ZO_GamepadTextFieldSubmitItem",
templateData = {
finishedSelector = true,
text = GetString(SI_DIALOG_ACCEPT),
setup = SetupRequestEntry,
validInput = function()
return self.selectedAboutUs and self.selectedAboutUs ~= ""
end,
}
},
},
buttons =
{
-- Cancel Button
{
keybind = "DIALOG_NEGATIVE",
text = GetString(SI_DIALOG_CANCEL),
callback = function()
ReleaseDialog()
end,
},
-- Select Button (used for entering name and selected alliance)
{
keybind = "DIALOG_PRIMARY",
text = GetString(SI_GAMEPAD_SELECT_OPTION),
callback = function(dialog)
local selectedData = dialog.entryList:GetTargetData()
local targetControl = dialog.entryList:GetTargetControl()
if(selectedData.nameField and targetControl) then
targetControl.editBoxControl:TakeFocus()
elseif(selectedData.finishedSelector) then
if(self.selectedAboutUs and self.selectedAboutUs ~= "") then
SetGuildDescription(self.optionsGuildId, self.selectedAboutUs)
end
ReleaseDialog()
end
end,
enabled = function()
local selectedData = parametricDialog.entryList:GetTargetData()
local enabled = true
if(selectedData.finishedSelector) then
enabled = self.selectedAboutUs and self.selectedAboutUs ~= ""
end
return enabled
end,
},
},
noChoiceCallback = function(dialog)
ReleaseDialog()
end,
})
- ingame/guild/gamepad/zo_guildhub_gamepad.lua:466 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
setup = SetupDialog,
blockDialogReleaseOnPress = true, -- We'll handle Dialog Releases ourselves since we don't want DIALOG_PRIMARY to release the dialog on press.
title =
{
text = SI_PROMPT_TITLE_GUILD_CREATE,
},
parametricList =
{
-- alliance icon selector entry
{
header = GetString(SI_GAMEPAD_GUILD_CREATE_DIALOG_ALLIANCE_SELECTOR_HEADER),
headerTemplate = "ZO_GamepadMenuEntryFullWidthHeaderTemplate",
template = "ZO_Gamepad_Dropdown_Item_FullWidth",
templateData = {
setup = function(control, data, selected, reselectingDuringRebuild, enabled, active)
local dropDown = ZO_ComboBox_ObjectFromContainer(control:GetNamedChild("Dropdown"))
self.allianceDropDown = dropDown
if not dropDown.alliancesInitialized then
dropDown:SetSortsItems(false)
dropDown:ClearItems()
for i = 1, NUM_ALLIANCES do
local allianceText = zo_iconTextFormat(GetLargeAllianceSymbolIcon(i), 32, 32, GetAllianceName(i))
local entry = dropDown:CreateItemEntry(allianceText, OnAllianceSelected)
entry.allianceIndex = i
dropDown:AddItem(entry)
end
dropDown.alliancesInitialized = true
end
local function OnDropdownDeactivated()
KEYBIND_STRIP:PopKeybindGroupState()
end
dropDown:SetDeactivatedCallback(OnDropdownDeactivated)
dropDown:SelectItemByIndex(self.selectedAllianceIndex)
dropDown:SetHighlightedItem(self.selectedAllianceIndex)
end,
callback = function()
KEYBIND_STRIP:PushKeybindGroupState() -- This is just to hide the keybinds (don't need to store the state)
self.allianceDropDown:Activate()
self.allianceDropDown:SetHighlightedItem(self.selectedAllianceIndex)
end
},
},
-- guild name edit box
{
template = "ZO_Gamepad_GenericDialog_Parametric_TextFieldItem",
templateData = {
textChangedCallback = function(control)
local newName = control:GetText()
UpdateSelectedName(newName)
if self.noViolations or self.selectedName == "" then
control:SetColor(ZO_SELECTED_TEXT:UnpackRGB())
else
control:SetColor(ZO_ERROR_COLOR:UnpackRGB())
end
end,
setup = function(control, data, selected, reselectingDuringRebuild, enabled, active)
control.editBoxControl.textChangedCallback = data.textChangedCallback
if(self.selectedName == "") then
ZO_EditDefaultText_Initialize(control.editBoxControl, GetString(SI_GUILD_CREATE_DIALOG_NAME_DEFAULT_TEXT))
end
control.editBoxControl:SetMaxInputChars(MAX_GUILD_NAME_LENGTH)
control.editBoxControl:SetText(self.selectedName)
self.createGuildEditBoxSelected = selected
self.createGuildEditBox = control.editBoxControl
UpdateSelectedName(self.selectedName)
end,
callback = function(dialog)
local targetControl = dialog.entryList:GetTargetControl()
targetControl.editBoxControl:TakeFocus()
UpdateSelectedName(self.selectedName)
end
},
controlReset = function(control, pool)
control.editBoxControl:SetColor(ZO_SELECTED_TEXT:UnpackRGB())
end,
},
-- Finish
{
template = "ZO_GamepadTextFieldSubmitItem",
templateData = {
text = GetString(SI_GAMEPAD_GUILD_CREATE_DIALOG_FINISH),
setup = SetupRequestEntry,
callback = function(dialog)
if self.noViolations then
if IsConsoleUI() then
PLAYER_CONSOLE_INFO_REQUEST_MANAGER:RequestNameValidation(self.selectedName, GuildNameValidationCallback)
else
GuildCreate(self.selectedName, self.selectedAllianceIndex)
end
ReleaseDialog(dialog)
end
end,
validInput = function()
return self.noViolations
end,
}
},
},
buttons =
{
-- Cancel Button
{
keybind = "DIALOG_NEGATIVE",
text = GetString(SI_DIALOG_CANCEL),
callback = function(dialog)
ReleaseDialog(dialog)
end,
},
-- Select Button (used for entering name and selected alliance)
{
keybind = "DIALOG_PRIMARY",
text = GetString(SI_GAMEPAD_SELECT_OPTION),
callback = function(dialog)
local targetData = dialog.entryList:GetTargetData()
if targetData and targetData.callback then
targetData.callback(dialog)
end
end,
},
},
noChoiceCallback = function(dialog)
ReleaseDialog(dialog)
end,
})
- ingame/guild/gamepad/zo_guildranks_gamepad.lua:299 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
setup = function(dialog)
self.noViolations = nil
self.selectedRankIndex = nil
self.selectedName = nil
UpdateSelectedName("")
dialog:setupFunc()
end,
blockDialogReleaseOnPress = true, -- We'll handle Dialog Releases ourselves since we don't want DIALOG_PRIMARY to release the dialog on press.
title =
{
text = SI_GUILD_RANKS_ADD_RANK,
},
parametricList =
{
-- guild name edit box
{
template = "ZO_Gamepad_GenericDialog_Parametric_TextFieldItem",
templateData = {
nameField = true,
textChangedCallback = function(control)
local newName = control:GetText()
if(self.selectedName ~= newName) then
UpdateSelectedName(newName)
parametricDialog.entryList:RefreshVisible()
end
end,
setup = function(control, data, selected, reselectingDuringRebuild, enabled, active)
control.highlight:SetHidden(not selected)
control.editBoxControl.textChangedCallback = data.textChangedCallback
if(self.selectedName == "") then
ZO_EditDefaultText_Initialize(control.editBoxControl, GetString(SI_GAMEPAD_GUILD_RANK_DIALOG_DEFAULT_TEXT))
end
control.editBoxControl:SetMaxInputChars(MAX_GUILD_RANK_NAME_LENGTH)
control.editBoxControl:SetText(self.selectedName)
KEYBIND_STRIP:UpdateCurrentKeybindButtonGroups()
end,
},
},
-- rank to copy entry
{
header = GetString(SI_GUILD_RANKS_COPY_HEADER),
template = "ZO_GamepadDropdownItem",
templateData = {
rankSelector = true,
setup = function(control, data, selected, reselectingDuringRebuild, enabled, active)
control.dropdown:SetSortsItems(false)
self:SetCurrentDropdown(control.dropdown)
control.dropdown:ClearItems()
local function UpdateDropdownSelection()
if(self.selectedRankIndex) then
control.dropdown:SetSelectedItemText(self.ranks[self.selectedRankIndex].name)
else
control.dropdown:SetSelectedItemText(GetString(SI_GUILD_RANKS_COPY_NONE))
end
end
local function OnRankSelected(comboBox, entryText, entry)
UpdateSelectedRankIndex(entry.rankIndex)
end
local noneEntry = control.dropdown:CreateItemEntry(GetString(SI_GUILD_RANKS_COPY_NONE), OnRankSelected)
control.dropdown:AddItem(noneEntry)
--Skip Guild Master
for i = 2, #self.ranks do
local entry = control.dropdown:CreateItemEntry(self.ranks[i].name, OnRankSelected)
entry.rankIndex = i
control.dropdown:AddItem(entry)
end
control.dropdown:UpdateItems()
UpdateDropdownSelection()
end,
},
},
-- create
{
template = "ZO_GamepadTextFieldSubmitItem",
templateData = {
finishedSelector = true,
text = GetString(SI_DIALOG_ACCEPT),
setup = SetupRequestEntry,
validInput = function()
return self.noViolations
end,
},
icon = ZO_GAMEPAD_SUBMIT_ENTRY_ICON,
},
},
buttons =
{
-- Cancel Button
{
keybind = "DIALOG_NEGATIVE",
text = GetString(SI_DIALOG_CANCEL),
callback = function()
ReleaseDialog()
end,
},
-- Select Button (used for entering name)
{
keybind = "DIALOG_PRIMARY",
text = GetString(SI_GAMEPAD_SELECT_OPTION),
callback = function(dialog)
local targetData = dialog.entryList:GetTargetData()
local targetControl = dialog.entryList:GetTargetControl()
if(targetData.nameField and targetControl) then
targetControl.editBoxControl:TakeFocus()
elseif (targetData.rankSelector) then
self.currentDropdown:Activate()
local highlightIndex = 1
if(self.selectedRankIndex ~= nil) then
highlightIndex = self.selectedRankIndex
end
self.currentDropdown:SetHighlightedItem(highlightIndex)
elseif(targetData.finishedSelector) then
if(self.noViolations) then
self:AddRank(self.selectedName, self.selectedRankIndex)
self:RefreshScreen()
end
ReleaseDialog()
end
end,
enabled = function()
local targetData = parametricDialog.entryList:GetTargetData()
local enabled = true
if(targetData.finishedSelector) then
enabled = self.noViolations
end
return enabled
end,
},
},
noChoiceCallback = function(dialog)
ReleaseDialog()
end,
})
- ingame/guild/gamepad/zo_guildranks_gamepad.lua:476 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
setup = function(dialog)
self.noViolations = nil
self.selectedName = nil
UpdateSelectedName(self.selectedRank:GetName())
dialog:setupFunc()
end,
blockDialogReleaseOnPress = true, -- We'll handle Dialog Releases ourselves since we don't want DIALOG_PRIMARY to release the dialog on press.
title =
{
text = SI_GAMEPAD_GUILD_RANK_RENAME,
},
parametricList =
{
-- guild name edit box
{
template = "ZO_Gamepad_GenericDialog_Parametric_TextFieldItem",
templateData = {
nameField = true,
textChangedCallback = function(control)
local newName = control:GetText()
if(self.selectedName ~= newName) then
UpdateSelectedName(newName)
parametricDialog.entryList:RefreshVisible()
end
end,
setup = function(control, data, selected, reselectingDuringRebuild, enabled, active)
control.highlight:SetHidden(not selected)
control.editBoxControl.textChangedCallback = data.textChangedCallback
if(self.selectedName == "") then
ZO_EditDefaultText_Initialize(control.editBoxControl, GetString(SI_GAMEPAD_GUILD_RANK_DIALOG_DEFAULT_TEXT))
end
control.editBoxControl:SetMaxInputChars(MAX_GUILD_RANK_NAME_LENGTH)
control.editBoxControl:SetText(self.selectedName)
KEYBIND_STRIP:UpdateCurrentKeybindButtonGroups()
end,
},
},
-- confirm rename
{
template = "ZO_GamepadTextFieldSubmitItem",
templateData = {
finishedSelector = true,
text = GetString(SI_DIALOG_ACCEPT),
setup = SetupRequestEntry,
validInput = function()
return self.noViolations
end,
},
icon = ZO_GAMEPAD_SUBMIT_ENTRY_ICON,
},
},
buttons =
{
-- Cancel Button
{
keybind = "DIALOG_NEGATIVE",
text = GetString(SI_DIALOG_CANCEL),
callback = function()
ReleaseDialog()
end,
},
-- Select Button (used for entering name)
{
keybind = "DIALOG_PRIMARY",
text = GetString(SI_GAMEPAD_SELECT_OPTION),
callback = function(dialog)
local targetData = dialog.entryList:GetTargetData()
local targetControl = dialog.entryList:GetTargetControl()
if(targetData.nameField and targetControl) then
targetControl.editBoxControl:TakeFocus()
elseif(targetData.finishedSelector) then
if(self.noViolations) then
self.selectedRank:SetName(self.selectedName)
self:RefreshScreen()
end
ReleaseDialog()
end
end,
enabled = function()
local targetData = parametricDialog.entryList:GetTargetData()
local enabled = true
if(targetData.finishedSelector) then
enabled = self.noViolations
end
return enabled
end,
},
},
noChoiceCallback = function(dialog)
ReleaseDialog()
end,
})
- ingame/guild/gamepad/zo_guildranks_gamepad.lua:591 --
ZO_Dialogs_RegisterCustomDialog(GUILD_DELETE_RANK_GAMEPAD_DIALOG,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = function()
return zo_strformat(SI_GAMEPAD_GUILD_RANK_DELETE_TITLE, self.selectedRank:GetName())
end,
},
mainText =
{
text = function()
return zo_strformat(SI_GUILD_RANK_DELETE_WARNING, self.selectedRank:GetName())
end,
},
setup = function()
g_deleteRankOnFinished = false
end,
finishedCallback = function(dialog)
if g_deleteRankOnFinished then
self:DeleteSelectedRank()
end
end,
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_DIALOG_YES_BUTTON,
callback = function()
g_deleteRankOnFinished = true
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_GAMEPAD_DIALOG_NO_BUTTON,
callback = function()
self:RefreshScreen()
end,
},
}
})
- ingame/guildkiosk/gamepad/guildkiosk_gamepad.lua:106 --
ZO_Dialogs_RegisterCustomDialog("PURCHASE_KIOSK_GAMEPAD",
{
setup = function(dialog, data) self:SetupDialogLabels(dialog, data) end,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = SI_GAMEPAD_GUILD_KIOSK_DIALOG_TITLE,
},
mainText =
{
text = function()
return zo_strformat(SI_GAMEPAD_GUILD_KIOSK_DIALOG, ZO_SELECTED_TEXT:Colorize(self.guildName))
end
},
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_DECLINE
},
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_GUILD_KIOSK_HIRE_KEYBIND,
callback = function()
GuildKioskPurchase(self.guildId)
PlaySound(SOUNDS.ITEM_MONEY_CHANGED)
ZO_AlertNoSuppression(UI_ALERT_CATEGORY_ALERT, nil, SI_GAMEPAD_GUILD_KIOSK_PURCHASED_ALERT)
SCENE_MANAGER:PopScenes(NUMBER_OF_KIOSK_SCENES)
end
}
},
noChoiceCallback = function()
SCENE_MANAGER:PopScenes(NUMBER_OF_KIOSK_SCENES)
end
})
- ingame/guildkiosk/gamepad/guildkiosk_gamepad.lua:441 --
ZO_Dialogs_RegisterCustomDialog("BID_KIOSK_GAMEPAD",
{
setup = function(dialog, data) self:SetupDialogLabels(dialog, data) end,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = SI_GAMEPAD_GUILD_KIOSK_BID_DIALOG_TITLE,
},
mainText =
{
text = function()
return zo_strformat(SI_GAMEPAD_GUILD_KIOSK_BID_BODY, ZO_SELECTED_TEXT:Colorize(self.guildName))
end
},
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_DECLINE
},
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_GUILD_KIOSK_BID_UPDATE_KEYBIND,
callback = function()
GuildKioskBid(self.guildId, self.bidAmount)
PlaySound(SOUNDS.ITEM_MONEY_CHANGED)
ZO_AlertNoSuppression(UI_ALERT_CATEGORY_ALERT, nil, SI_GAMEPAD_GUILD_KIOSK_BID_ALERT)
self.shouldPopScenes = true
end
}
},
finishedCallback = function(dialog)
if self.shouldPopScenes then
SCENE_MANAGER:PopScenes(NUMBER_OF_KIOSK_SCENES)
end
end,
noChoiceCallback = function()
SCENE_MANAGER:PopScenes(NUMBER_OF_KIOSK_SCENES)
end
})
- ingame/help/gamepad/help_root_gamepad.lua:131 --
ZO_Dialogs_RegisterCustomDialog(GAMEPAD_UNSTUCK_CONFIRM_DIALOG,
{
canQueue = true,
mustChoose = true,
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = SI_GAMEPAD_HELP_GET_ME_UNSTUCK,
},
mainText =
{
text = function()
local cost = GetRecallCost()
local goldIcon = zo_iconFormat(ZO_GAMEPAD_CURRENCY_ICON_GOLD_TEXTURE, 32, 32)
local primaryButtonIconPath = ZO_Keybindings_GetTexturePathForKey(KEY_GAMEPAD_BUTTON_1)
local primaryButtonIcon = zo_iconFormat(primaryButtonIconPath, 64, 64)
local telvarLossPercentage = zo_floor(GetTelvarStonePercentLossOnNonPvpDeath() * 100)
local mainText = DoesCurrentZoneHaveTelvarStoneBehavior() and SI_GAMEPAD_HELP_UNSTUCK_CONFIRM_STUCK_PROMPT_TELVAR or SI_GAMEPAD_HELP_UNSTUCK_CONFIRM_STUCK_PROMPT
local playerMoney = GetCarriedCurrencyAmount(CURT_MONEY)
if cost > playerMoney then
cost = playerMoney
end
return zo_strformat(mainText, cost, goldIcon, primaryButtonIcon, telvarLossPercentage)
end,
},
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_HELP_UNSTUCK_TELEPORT_KEYBIND_TEXT,
callback = function()
SendPlayerStuck()
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_EXIT,
},
}
})
- ingame/help/gamepad/help_root_gamepad.lua:182 --
ZO_Dialogs_RegisterCustomDialog(GAMEPAD_UNSTUCK_COOLDOWN_DIALOG,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.COOLDOWN,
},
setup = function(dialog)
dialog:setupFunc()
end,
updateFn = function(dialog)
local cooldownTime = GetTimeUntilStuckAvailable()
if(cooldownTime > 0) then
dialog.cooldownLabelControl:SetText(ZO_FormatTimeMilliseconds(cooldownTime, TIME_FORMAT_STYLE_DESCRIPTIVE_SHORT_SHOW_ZERO_SECS, TIME_FORMAT_PRECISION_SECONDS))
elseif not ZO_Dialogs_IsDialogHiding(GAMEPAD_UNSTUCK_COOLDOWN_DIALOG) then
ZO_Dialogs_ShowGamepadDialog(GAMEPAD_UNSTUCK_CONFIRM_DIALOG)
ZO_Dialogs_ReleaseDialogOnButtonPress(GAMEPAD_UNSTUCK_COOLDOWN_DIALOG)
end
end,
title =
{
text = GetString(SI_GAMEPAD_HELP_GET_ME_UNSTUCK),
},
mainText =
{
text = GetString(SI_GAMEPAD_HELP_UNSTUCK_COOLDOWN_HEADER),
},
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
text = GetString(SI_DIALOG_EXIT),
},
}
})
- ingame/help/gamepad/help_root_gamepad.lua:223 --
ZO_Dialogs_RegisterCustomDialog(GAMEPAD_UNSTUCK_LOADING_DIALOG,
{
canQueue = true,
blockDialogReleaseOnPress = true,
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.COOLDOWN,
},
setup = function(dialog)
dialog:setupFunc()
end,
updateFn = function()
if(self.stuckComplete) then
ZO_Dialogs_ReleaseDialogOnButtonPress(GAMEPAD_UNSTUCK_LOADING_DIALOG)
self.stuckComplete = false
SCENE_MANAGER:ShowBaseScene()
end
end,
title =
{
text = GetString(SI_GAMEPAD_HELP_GET_ME_UNSTUCK),
},
loading =
{
text = GetString(SI_FIXING_STUCK_TEXT),
},
buttons =
{
},
mustChoose = true,
})
- ingame/help/gamepad/help_root_gamepad.lua:265 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
canQueue = true,
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = SI_GAMEPAD_HELP_GET_ME_UNSTUCK,
},
mainText =
{
text = formatText,
},
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_EXIT,
},
}
})
- ingame/help/gamepad/help_root_gamepad.lua:294 --
ZO_Dialogs_RegisterCustomDialog(GAMEPAD_CS_DISABLED_ON_PC_DIALOG,
{
canQueue = true,
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = GetString(SI_GAMEPAD_HELP_CS_DISABLED_TITLE),
},
mainText =
{
text = GetString(SI_GAMEPAD_HELP_CS_DISABLED_TEXT),
},
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_EXIT,
},
}
})
- ingame/help/keyboard/helpaskforhelp_keyboard.lua:167 --
ZO_Dialogs_RegisterCustomDialog("HELP_ASK_FOR_HELP_SUBMIT_TICKET_SUCCESSFUL_DIALOG",
{
canQueue = true,
mustChoose = true,
title =
{
text = GetString(SI_CUSTOMER_SERVICE_SUBMIT_CONFIRMATION),
},
mainText =
{
text = GetString(SI_CUSTOMER_SERVICE_ASK_FOR_HELP_SUBMIT_TICKET_CONFIRMATION),
},
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_EXIT,
},
},
})
- ingame/help/keyboard/helpcustomerservice_keyboard.lua:48 --
ZO_Dialogs_RegisterCustomDialog("HELP_CUSTOMER_SERVICE_SUBMITTING_TICKET_DIALOG",
{
showLoadingIcon = true,
modal = false,
title =
{
text = GetString(SI_CUSTOMER_SERVICE_SUBMITTING_TICKET),
},
mainText =
{
text = GetString(SI_CUSTOMER_SERVICE_SUBMITTING),
align = TEXT_ALIGN_CENTER,
},
})
- ingame/help/keyboard/helpcustomerservice_keyboard.lua:63 --
ZO_Dialogs_RegisterCustomDialog("HELP_CUSTOMER_SERVICE_SUBMIT_TICKET_ERROR_DIALOG",
{
canQueue = true,
mustChoose = true,
title =
{
text = GetString(SI_CUSTOMER_SERVICE_SUBMIT_FAILED),
},
mainText =
{
text = zo_strformat(SI_CUSTOMER_SERVICE_SUBMIT_FAILED_BODY, GetURLTextByType(APPROVED_URL_ESO_HELP))
},
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_CUSTOMER_SERVICE_OPEN_WEB_BROWSER,
callback = function(...)
ZO_Dialogs_ShowDialog("CONFIRM_OPEN_URL_BY_TYPE", ESO_HELP_URL_TYPE, ESO_HELP_FRONT_FACING_ADDRESS)
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_EXIT,
},
},
})
- ingame/help/keyboard/helpsubmitfeedback_keyboard.lua:170 --
ZO_Dialogs_RegisterCustomDialog("HELP_SUBMIT_FEEDBACK_SUBMIT_TICKET_SUCCESSFUL_DIALOG",
{
canQueue = true,
mustChoose = true,
title =
{
text = GetString(SI_CUSTOMER_SERVICE_SUBMIT_CONFIRMATION),
},
mainText =
{
text = GetString(SI_CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBMIT_CONFIRMATION),
},
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_EXIT,
},
},
})
- ingame/interactwindow/keepclaimdialog.lua:153 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = SI_GUILD_RELEASE_KEEP_CONFIRM_TITLE,
},
mainText =
{
text = SI_GUILD_RELEASE_KEEP_CONFIRM_PROMPT,
},
noChoiceCallback = function()
INTERACT_WINDOW:OnEndInteraction(GUILD_KEEP_RELEASE_INTERACTION)
end,
buttons =
{
[1] =
{
keybind = "DIALOG_PRIMARY",
text = SI_GUILD_RELEASE_KEEP_ACCEPT,
callback = function(dialog)
dialog.data.release()
INTERACT_WINDOW:OnEndInteraction(GUILD_KEEP_RELEASE_INTERACTION)
end,
visible = function()
local keepId = dialogSingleton.data.keepId
local keepName = GetKeepName(keepId)
local time = GetSecondsUntilKeepClaimAvailable(keepId, BGQUERY_LOCAL)
return time == 0
end,
},
[2] =
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
callback = function(dialog)
INTERACT_WINDOW:OnEndInteraction(GUILD_KEEP_RELEASE_INTERACTION)
end,
},
},
updateFn = function(dialog)
local keepId = dialog.data.keepId
local keepName = GetKeepName(keepId)
local cooldown = GetSecondsUntilKeepClaimAvailable(keepId, BGQUERY_LOCAL)
if cooldown == 0 then
dialog.info.mainText.text = SI_GUILD_RELEASE_KEEP_CONFIRM_PROMPT
ZO_Dialogs_RefreshDialogText(dialogName, dialog, { mainTextParams = { keepName } } )
ZO_GenericGamepadDialog_RefreshKeybinds(dialog)
else
dialog.info.mainText.text = SI_GUILD_RELEASE_KEEP_COOLDOWN
ZO_Dialogs_RefreshDialogText(dialogName, dialog, { mainTextParams = { keepName, ZO_FormatTime(cooldown, TIME_FORMAT_STYLE_COLONS, TIME_FORMAT_PRECISION_TWELVE_HOUR) } } )
end
KEYBIND_STRIP:UpdateCurrentKeybindButtonGroups()
end,
})
- ingame/interactwindow/keepclaimdialog.lua:263 --
ZO_Dialogs_RegisterCustomDialog(dialogName,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
setup = function(dialog)
self:RefreshGuildList()
self.noViolations = nil
UpdateSelectedGuildId(nil)
UpdateSelectedGuildIndex(nil)
dialog:setupFunc()
end,
blockDialogReleaseOnPress = true, -- We'll handle Dialog Releases ourselves since we don't want DIALOG_PRIMARY to release the dialog on press.
noChoiceCallback = DeinitDialog,
title =
{
text = GetString(SI_PROMPT_TITLE_SELECT_GUILD_KEEP_CLAIM),
},
mainText =
{
text = function()
local keepId = GetGuildClaimInteractionKeepId()
local keepName = GetKeepName(keepId)
local result = CheckGuildKeepClaim(self.selectedGuildId, keepId)
if result ~= CLAIM_KEEP_RESULT_TYPE_SUCCESS then
local cooldown = GetSecondsUntilKeepClaimAvailable(keepId, BGQUERY_LOCAL)
if cooldown > 0 then
return zo_strformat(SI_KEEP_CLAIM_ON_COOLDOWN, keepName, ZO_FormatTime(cooldown, TIME_FORMAT_STYLE_COLONS, TIME_FORMAT_PRECISION_TWELVE_HOUR))
else
return zo_strformat(GetString("SI_CLAIMKEEPRESULTTYPE", result), keepName)
end
else
return zo_strformat(SI_GAMEPAD_SELECT_GUILD_KEEP_CLAIM_INSTRUCTIONS, keepName)
end
end
},
updateFn = function(dialog)
local keepId = GetGuildClaimInteractionKeepId()
local isClaimAvailable = GetSecondsUntilKeepClaimAvailable(keepId, BGQUERY_LOCAL) == 0
if(isClaimAvailable and not dialog.wasClaimAvailableLastUpdate) then
dialog:setupFunc()
end
UpdateViolations()
ZO_Dialogs_RefreshDialogText(dialogName, dialog)
ZO_GenericGamepadDialog_RefreshKeybinds(dialog)
if self.noViolations and self.currentDropdown then
self.currentDropdown:SetSelectedColor(ZO_SELECTED_TEXT)
elseif self.currentDropdown then
self.currentDropdown:SetSelectedColor(ZO_DISABLED_TEXT)
end
dialog.wasClaimAvailableLastUpdate = isClaimAvailable
end,
parametricList =
{
-- guild select
{
header = SI_GAMEPAD_KEEP_CLAIM_SELECT_GUILD_HEADER,
template = "ZO_GamepadDropdownItem",
templateData = {
rankSelector = true,
visible = function()
return GetSecondsUntilKeepClaimAvailable(GetGuildClaimInteractionKeepId(), BGQUERY_LOCAL) == 0
end,
setup = function(control, data, selected, reselectingDuringRebuild, enabled, active)
control.dropdown:SetSortsItems(false)
control.dropdown:SetSelectedColor(ZO_SELECTED_TEXT)
self:SetCurrentDropdown(control.dropdown)
control.dropdown:ClearItems()
local function OnGuildSelected(comboBox, entryText, entry)
self.noViolations = entry.noViolations
UpdateSelectedGuildId(entry.guildId)
UpdateSelectedGuildIndex(entry.index)
if self.noViolations then
self.currentDropdown:SetSelectedColor(ZO_SELECTED_TEXT)
else
self.currentDropdown:SetSelectedColor(ZO_ERROR_COLOR)
end
end
local keepId = GetGuildClaimInteractionKeepId()
local count = 1
for guildId, entry in pairs(self.entries) do
local newEntry = control.dropdown:CreateItemEntry(entry.guildText, OnGuildSelected)
newEntry.guildId = entry.guildId
newEntry.index = count
newEntry.guildText = entry.guildText
local result = CheckGuildKeepClaim(guildId, keepId)
newEntry.noViolations = result == CLAIM_KEEP_RESULT_TYPE_SUCCESS
if newEntry.noViolations then
newEntry.m_normalColor = ZO_DISABLED_TEXT
newEntry.m_highlightColor = ZO_SELECTED_TEXT
else
newEntry.m_normalColor = ZO_ERROR_COLOR
newEntry.m_highlightColor = ZO_ERROR_COLOR
end
control.dropdown:AddItem(newEntry)
if(count == 1) then
OnGuildSelected(nil, nil, newEntry)
end
count = count + 1
end
self.currentDropdown:SetSelectedItemText(self.selectedGuildName)
control.dropdown:UpdateItems()
local function OnDropdownDeactivated()
KEYBIND_STRIP:PopKeybindGroupState()
end
control.dropdown:SetDeactivatedCallback(OnDropdownDeactivated)
end,
},
},
},
buttons =
{
-- Cancel Button
{
keybind = "DIALOG_NEGATIVE",
text = GetString(SI_DIALOG_CANCEL),
callback = function()
ReleaseDialog()
end,
},
-- Select Button (used for selecting guild)
{
keybind = "DIALOG_PRIMARY",
text = GetString(SI_GAMEPAD_SELECT_OPTION),
visible = function()
return GetSecondsUntilKeepClaimAvailable(GetGuildClaimInteractionKeepId(), BGQUERY_LOCAL) == 0
end,
callback = function()
KEYBIND_STRIP:PushKeybindGroupState() -- This is just to hide the keybinds (don't need to store the state)
self.currentDropdown:Activate()
UpdateDropdownHighlight()
end,
},
-- Claim Button
{
keybind = "DIALOG_SECONDARY",
text = GetString(SI_DIALOG_ACCEPT),
visible = function()
return self.noViolations
end,
callback = function()
if(self.noViolations) then
ClaimInteractionKeepForGuild(self.selectedGuildId)
end
ReleaseDialog()
end,
},
}
})
- ingame/inventory/inventory.lua:1502 --
ZO_Dialogs_RegisterCustomDialog(prefix.."_WITHDRAW_GOLD",
{
customControl = control,
title =
{
text = SI_BANK_WITHDRAW_GOLD_TITLE,
},
setup = function(dialog)
self.withdrawMode = true
self:SetupWithdraw(dialog)
end,
buttons =
{
{
control = self.depositWithdrawButton,
text = SI_BANK_WITHDRAW_GOLD,
callback = function(dialog)
local amount = ZO_DefaultCurrencyInputField_GetCurrency(self.depositWithdrawCurrency)
if amount > 0 then
withdrawFunction(self.currencyType, amount)
end
end,
},
{
control = self.control:GetNamedChild("Cancel"),
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/inventory/inventory.lua:1532 --
ZO_Dialogs_RegisterCustomDialog(prefix.."_DEPOSIT_GOLD",
{
customControl = control,
title =
{
text = SI_BANK_DEPOSIT_GOLD_TITLE,
},
setup = function(dialog)
self.withdrawMode = false
self:SetupDeposit(dialog)
end,
buttons =
{
{
control = self.depositWithdrawButton,
text = SI_BANK_DEPOSIT_GOLD,
callback = function(dialog)
local amount = ZO_DefaultCurrencyInputField_GetCurrency(self.depositWithdrawCurrency)
if (self.currencyType == CURT_TELVAR_STONES and amount >= GetTelvarStoneMinimumDeposit() and amount > GetTelvarStoneBankingFee())
or (self.currencyType == CURT_MONEY and amount > 0) then
depositFunction(self.currencyType, amount)
end
end,
},
{
control = self.control:GetNamedChild("Cancel"),
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/inventory/stack.lua:70 --
ZO_Dialogs_RegisterCustomDialog("SPLIT_STACK",
{
customControl = self,
setup = SetupStackSplit,
title =
{
text = SI_INVENTORY_SPLIT_STACK_TITLE,
},
buttons =
{
[1] =
{
control = GetControl(self, "Split"),
text = SI_INVENTORY_SPLIT_STACK,
callback = function(stackControl)
local bag, index = ZO_Inventory_GetBagAndIndex(stackControl.slotControl)
PickupInventoryItem(bag, index, stackControl.spinner:GetValue())
-- Auto-drop into whatever bag this came from
ZO_InventoryLandingArea_DropCursorInBag(bag)
end,
},
[2] =
{
control = GetControl(self, "Cancel"),
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/inventory/gamepad/gamepadinventory.lua:310 --
ZO_Dialogs_RegisterCustomDialog(ZO_GAMEPAD_CONFIRM_DESTROY_DIALOG,
{
blockDialogReleaseOnPress = true,
canQueue = true,
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.BASIC,
allowRightStickPassThrough = true,
},
setup = function(dialog)
self.destroyConfirmText = nil
dialog:setupFunc()
end,
noChoiceCallback = function(dialog)
RespondToDestroyRequest(false)
end,
title =
{
text = SI_PROMPT_TITLE_DESTROY_ITEM_PROMPT,
},
mainText =
{
text = SI_DESTROY_ITEM_PROMPT,
},
buttons =
{
{
onShowCooldown = 2000,
keybind = "DIALOG_PRIMARY",
text = GetString(SI_YES),
callback = function()
ReleaseDialog(true)
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = GetString(SI_NO),
callback = function()
ReleaseDialog()
end,
},
}
})
- ingame/inventory/gamepad/gamepadinventory.lua:362 --
ZO_Dialogs_RegisterCustomDialog(ZO_GAMEPAD_SPLIT_STACK_DIALOG,
{
blockDirectionalInput = true,
canQueue = true,
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.ITEM_SLIDER,
},
setup = function(dialog, data)
dialog:setupFunc()
end,
title =
{
text = SI_GAMEPAD_INVENTORY_SPLIT_STACK_TITLE,
},
mainText =
{
text = SI_GAMEPAD_INVENTORY_SPLIT_STACK_PROMPT,
},
OnSliderValueChanged = function(dialog, sliderControl, value)
dialog.sliderValue1:SetText(dialog.data.stackSize - value)
dialog.sliderValue2:SetText(value)
end,
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
text = GetString(SI_DIALOG_CANCEL),
},
{
keybind = "DIALOG_PRIMARY",
text = GetString(SI_GAMEPAD_SELECT_OPTION),
callback = function(dialog)
local dialogData = dialog.data
local quantity = ZO_GenericGamepadItemSliderDialogTemplate_GetSliderValue(dialog)
PickupInventoryItem(dialogData.bagId, dialogData.slotIndex, quantity)
TryPlaceInventoryItemInEmptySlot(dialogData.bagId)
end,
},
}
})
- ingame/inventory/gamepad/itemtransferdialog_gamepad.lua:22 --
ZO_Dialogs_RegisterCustomDialog("ITEM_TRANSFER_ADD_TO_CRAFT_BAG_GAMEPAD",
{
canQueue = true,
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.ITEM_SLIDER,
},
setup = setupFunc,
title =
{
text = SI_PROMPT_TITLE_ADD_ITEMS_TO_CRAFT_BAG,
},
buttons =
{
{
text = SI_ITEM_ACTION_ADD_ITEMS_TO_CRAFT_BAG,
callback = callbackFunc,
},
{
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/inventory/gamepad/itemtransferdialog_gamepad.lua:45 --
ZO_Dialogs_RegisterCustomDialog("ITEM_TRANSFER_REMOVE_FROM_CRAFT_BAG_GAMEPAD",
{
canQueue = true,
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.ITEM_SLIDER,
},
setup = setupFunc,
title =
{
text = SI_PROMPT_TITLE_REMOVE_ITEMS_FROM_CRAFT_BAG,
},
buttons =
{
{
text = SI_ITEM_ACTION_REMOVE_ITEMS_FROM_CRAFT_BAG,
callback = callbackFunc,
},
{
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/inventory/keyboard/itemtransferdialog_keyboard.lua:27 --
ZO_Dialogs_RegisterCustomDialog("ITEM_TRANSFER_ADD_TO_CRAFT_BAG_KEYBOARD",
{
customControl = control,
setup = setupFunc,
title =
{
text = SI_PROMPT_TITLE_ADD_ITEMS_TO_CRAFT_BAG,
},
buttons =
{
{
control = control:GetNamedChild("Transfer"),
text = SI_ITEM_ACTION_ADD_ITEMS_TO_CRAFT_BAG,
callback = callbackFunc,
},
{
control = control:GetNamedChild("Cancel"),
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/inventory/keyboard/itemtransferdialog_keyboard.lua:50 --
ZO_Dialogs_RegisterCustomDialog("ITEM_TRANSFER_REMOVE_FROM_CRAFT_BAG_KEYBOARD",
{
customControl = control,
setup = setupFunc,
title =
{
text = SI_PROMPT_TITLE_REMOVE_ITEMS_FROM_CRAFT_BAG
},
buttons =
{
{
control = control:GetNamedChild("Transfer"),
text = SI_ITEM_ACTION_REMOVE_ITEMS_FROM_CRAFT_BAG,
callback = callbackFunc,
},
{
control = control:GetNamedChild("Cancel"),
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/keybindings/keyboard/keybindings.lua:70 --
ZO_Dialogs_RegisterCustomDialog("BINDINGS", {
customControl = function() return control end,
setup = function(dialog, ...) self:SetupDialog(...) end,
title =
{
text = SI_KEYBINDINGS_BINDINGS,
},
buttons =
{
[1] =
{
control = GetControl(control, "Bind"),
text = SI_KEYBINDINGS_BIND_BUTTON,
keybind = false,
callback = function(dialog)
self:OnBindClicked()
end,
},
[2] =
{
control = GetControl(control, "Unbind"),
text = SI_KEYBINDINGS_UNBIND_BUTTON,
keybind = false,
callback = function(dialog)
self:OnUnbindClicked()
end,
},
[3] =
{
control = GetControl(control, "Cancel"),
text = SI_DIALOG_CANCEL,
keybind = false,
},
}
})
- ingame/repair/repairkits.lua:20 --
ZO_Dialogs_RegisterCustomDialog("REPAIR_ITEM",
{
customControl = function() return ZO_InventorySlot_GetItemListDialog():GetControl() end,
setup = function(dialog, data) self:SetupDialog(data.bag, data.index) end,
title =
{
text = SI_REPAIR_KIT_TITLE,
},
buttons =
{
{
control = ZO_InventorySlot_GetItemListDialog():GetButton(1),
text = SI_REPAIR_KIT_CONFIRM,
clickSound = SOUNDS.INVENTORY_ITEM_REPAIR,
callback = RepairItem,
},
{
control = ZO_InventorySlot_GetItemListDialog():GetButton(2),
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/skills/gamepad/gamepadskills.lua:866 --
ZO_Dialogs_RegisterCustomDialog("GAMEPAD_SKILLS_PURCHASE_CONFIRMATION",
{
setup = SetupFunction,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
allowRightStickPassThrough = true,
},
title =
{
text = GetString(SI_GAMEPAD_SKILLS_PURCHASE_TITLE),
},
mainText =
{
text = GetString(SI_GAMEPAD_SKILLS_PURCHASE_CONFIRM),
},
buttons =
{
[1] =
{
text = SI_GAMEPAD_SKILLS_PURCHASE,
callback = function(dialog)
ZO_Skills_PurchaseAbility(dialog.data.skillType, dialog.data.skillLineIndex, dialog.data.abilityIndex)
end,
},
[2] =
{
text = SI_DIALOG_CANCEL,
},
},
})
- ingame/skills/gamepad/gamepadskills.lua:898 --
ZO_Dialogs_RegisterCustomDialog("GAMEPAD_SKILLS_UPGRADE_CONFIRMATION",
{
setup = SetupFunction,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
allowRightStickPassThrough = true,
},
title =
{
text = GetString(SI_GAMEPAD_SKILLS_PURCHASE_TITLE),
},
mainText =
{
text = GetString(SI_GAMEPAD_SKILLS_UPGRADE_CONFIRM),
},
buttons =
{
[1] =
{
text = SI_GAMEPAD_SKILLS_PURCHASE,
callback = function(dialog)
ZO_Skills_UpgradeAbility(dialog.data.skillType, dialog.data.skillLineIndex, dialog.data.abilityIndex)
end,
},
[2] =
{
text = SI_DIALOG_CANCEL,
},
},
})
- ingame/skills/gamepad/gamepadskills.lua:950 --
ZO_Dialogs_RegisterCustomDialog("GAMEPAD_SKILLS_MORPH_CONFIRMATION",
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
allowRightStickPassThrough = true,
},
setup = function(dialog)
local availablePoints = GetAvailableSkillPoints()
skillPointData.data1.value = availablePoints
ZO_GenericGamepadDialog_ShowTooltip(dialog)
dialog:setupFunc(nil, skillPointData)
end,
title =
{
text = GetString(SI_GAMEPAD_SKILLS_MORPH_TITLE),
},
mainText =
{
text = GetString(SI_GAMEPAD_SKILLS_MORPH_CONFIRM),
},
parametricList =
{
-- Morph 1
{
template = "ZO_GamepadSimpleAbilityEntryTemplate",
templateData =
{
setup = MorphConfirmSetup,
choiceIndex = 1,
},
},
-- Morph 2
{
template = "ZO_GamepadSimpleAbilityEntryTemplate",
templateData =
{
setup = MorphConfirmSetup,
choiceIndex = 2,
},
},
},
parametricListOnSelectionChangedCallback = function(list)
local targetData = list:GetTargetData()
GAMEPAD_TOOLTIPS:LayoutAbilityMorph(GAMEPAD_LEFT_DIALOG_TOOLTIP, parametricDialog.data.progressionIndex, targetData.choiceIndex)
end,
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_SKILLS_MORPH,
callback = MorphConfirmCallback,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_CANCEL,
callback = function(dialog)
self:RefreshSelectedTooltip()
end,
},
},
})
- ingame/skills/gamepad/gamepadskills.lua:1085 --
ZO_Dialogs_RegisterCustomDialog("GAMEPAD_SKILLS_ATTRIBUTE_PURCHASE",
{
canQueue = true,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
setup = function(dialog)
attributePointData.data1.value = self:GetAvailablePoints()
ZO_GenericGamepadDialog_ShowTooltip(dialog)
dialog:setupFunc(nil, attributePointData)
end,
title =
{
text = GetString(SI_STATS_ATTRIBUTES_LEVEL_UP),
},
blockDirectionalInput = true,
parametricList =
{
-- magicka
{
template = "ZO_GamepadStatAttributeRow",
templateData =
{
setup = ZO_GamepadStatAttributeRow_Setup,
attributeType = ATTRIBUTE_MAGICKA,
screen = self,
},
text = GetString("SI_ATTRIBUTES", ATTRIBUTE_MAGICKA),
icon = "/esoui/art/characterwindow/Gamepad/gp_characterSheet_magickaIcon.dds",
},
-- health
{
template = "ZO_GamepadStatAttributeRow",
templateData =
{
setup = ZO_GamepadStatAttributeRow_Setup,
attributeType = ATTRIBUTE_HEALTH,
screen = self,
},
text = GetString("SI_ATTRIBUTES", ATTRIBUTE_HEALTH),
icon = "/esoui/art/characterwindow/Gamepad/gp_characterSheet_healthIcon.dds",
},
-- stamina
{
template = "ZO_GamepadStatAttributeRow",
templateData =
{
setup = ZO_GamepadStatAttributeRow_Setup,
attributeType = ATTRIBUTE_STAMINA,
screen = self,
},
text = GetString("SI_ATTRIBUTES", ATTRIBUTE_STAMINA),
icon = "/esoui/art/characterwindow/Gamepad/gp_characterSheet_staminaIcon.dds",
},
},
parametricListOnSelectionChangedCallback = function() self:UpdatePendingStatBonuses() end,
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_LEVELUP_DIALOG_CONFIRM,
callback = function(dialog)
local pendingHealth = self.pendingAttributePoints[ATTRIBUTE_HEALTH]
local pendingMagicka = self.pendingAttributePoints[ATTRIBUTE_MAGICKA]
local pendingStamina = self.pendingAttributePoints[ATTRIBUTE_STAMINA]
if pendingHealth + pendingMagicka + pendingStamina > 0 then
PurchaseAttributes(pendingHealth, pendingMagicka, pendingStamina)
PlaySound(SOUNDS.GAMEPAD_STATS_SINGLE_PURCHASE)
end
DisableSpinner(dialog)
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_GAMEPAD_BACK_OPTION,
callback = function(dialog)
DisableSpinner(dialog)
self:Back()
end,
},
},
finishedCallback = function(dialog)
--Setup Skills Scene
DisableSpinner(dialog)
ZO_GenericGamepadDialog_HideTooltip(dialog)
self.showAttributeDialog = false
self:RefreshSelectedTooltip()
self:ResetAttributeData()
end,
})
- ingame/skills/keyboard/zo_skills.lua:148 --
ZO_Dialogs_RegisterCustomDialog("MORPH_ABILITY_CONFIRM",
{
customControl = manager.morphDialog,
setup = SetupMorphAbilityConfirmDialog,
title =
{
text = SI_SKILLS_MORPH_ABILITY,
},
buttons =
{
[1] =
{
control = GetControl(manager.morphDialog, "Confirm"),
text = SI_SKILLS_MORPH_CONFIRM,
callback = function(dialog)
if dialog.chosenMorphProgressionIndex and dialog.chosenMorph then
ZO_Skills_MorphAbility(dialog.chosenMorphProgressionIndex, dialog.chosenMorph)
end
end,
},
[2] =
{
control = GetControl(manager.morphDialog, "Cancel"),
text = SI_CANCEL,
}
}
})
- ingame/skills/keyboard/zo_skills.lua:200 --
ZO_Dialogs_RegisterCustomDialog("PURCHASE_ABILITY_CONFIRM",
{
customControl = manager.confirmDialog,
setup = SetupPurchaseAbilityConfirmDialog,
title =
{
text = SI_SKILLS_CONFIRM_PURCHASE_ABILITY,
},
buttons =
{
[1] =
{
control = GetControl(manager.confirmDialog, "Confirm"),
text = SI_SKILLS_UNLOCK_CONFIRM,
callback = function(dialog)
if dialog.chosenSkillType and dialog.chosenLineIndex and dialog.chosenAbilityIndex then
ZO_Skills_PurchaseAbility(dialog.chosenSkillType, dialog.chosenLineIndex, dialog.chosenAbilityIndex)
end
end,
},
[2] =
{
control = GetControl(manager.confirmDialog, "Cancel"),
text = SI_CANCEL,
}
}
})
- ingame/skills/keyboard/zo_skills.lua:263 --
ZO_Dialogs_RegisterCustomDialog("UPGRADE_ABILITY_CONFIRM",
{
customControl = manager.upgradeDialog,
setup = SetupUpgradeAbilityDialog,
title =
{
text = SI_SKILLS_UPGRADE_ABILITY,
},
buttons =
{
[1] =
{
control = GetControl(manager.upgradeDialog, "Confirm"),
text = SI_SKILLS_UPGRADE_CONFIRM,
callback = function(dialog)
if dialog.chosenSkillType and dialog.chosenLineIndex and dialog.chosenAbilityIndex then
ZO_Skills_UpgradeAbility(dialog.chosenSkillType, dialog.chosenLineIndex, dialog.chosenAbilityIndex)
end
end,
},
[2] =
{
control = GetControl(manager.upgradeDialog, "Cancel"),
text = SI_CANCEL,
}
}
})
- ingame/soulgemitemcharger/soulgemitemcharger.lua:20 --
ZO_Dialogs_RegisterCustomDialog("CHARGE_ITEM",
{
customControl = function() return ZO_InventorySlot_GetItemListDialog():GetControl() end,
setup = function(dialog, data) self:SetupDialog(data.bag, data.index) end,
title =
{
text = SI_CHARGE_WEAPON_TITLE,
},
buttons =
{
{
control = ZO_InventorySlot_GetItemListDialog():GetButton(1),
text = SI_CHARGE_WEAPON_CONFIRM,
clickSound = SOUNDS.INVENTORY_ITEM_APPLY_CHARGE,
callback = ChargeItem,
},
{
control = ZO_InventorySlot_GetItemListDialog():GetButton(2),
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/stats/gamepad/zo_stats_gamepad.lua:538 --
ZO_Dialogs_RegisterCustomDialog(GAMEPAD_STATS_COMMIT_POINTS_DIALOG_NAME,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = SI_STAT_GAMEPAD_CHANGE_ATTRIBUTES,
},
mainText =
{
text = SI_STAT_GAMEPAD_COMMIT_POINTS_QUESTION,
},
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = SI_GAMEPAD_DIALOG_YES_BUTTON,
callback = function()
self:PurchaseAttributes()
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = SI_GAMEPAD_DIALOG_NO_BUTTON,
},
}
})
- ingame/storewindow/keyboard/storewindow_keyboard.lua:53 --
ZO_Dialogs_RegisterCustomDialog("BUY_MULTIPLE",
{
customControl = ZO_BuyMultipleDialog,
title =
{
text = SI_PROMPT_TITLE_BUY_MULTIPLE,
},
buttons =
{
[1] =
{
control = GetControl(manager.multipleDialog, "Purchase"),
text = SI_DIALOG_PURCHASE,
callback = function(dialog)
STORE_WINDOW:BuyMultiplePurchase()
end,
},
[2] =
{
control = GetControl(manager.multipleDialog, "Cancel"),
text = SI_DIALOG_CANCEL,
}
}
})
- ingame/tradinghouse/keyboard/tradinghouse_keyboard.lua:999 --
ZO_Dialogs_RegisterCustomDialog("CONFIRM_TRADING_HOUSE_PURCHASE",
{
customControl = dialogControl,
setup = function(self) SetupTradingHouseItemDialog(self, GetTradingHouseSearchResultItemInfo, self.purchaseIndex, SLOT_TYPE_TRADING_HOUSE_ITEM_RESULT, GetPurchaseConfirmationTextString) end,
title =
{
text = SI_TRADING_HOUSE_PURCHASE_ITEM_DIALOG_TITLE,
},
buttons =
{
[1] =
{
control = GetControl(dialogControl, "Accept"),
text = SI_TRADING_HOUSE_PURCHASE_ITEM_DIALOG_CONFIRM,
callback = function(dialog)
ConfirmPendingItemPurchase()
end,
},
[2] =
{
control = GetControl(dialogControl, "Cancel"),
text = SI_TRADING_HOUSE_PURCHASE_ITEM_DIALOG_CANCEL,
callback = function(dialog)
ClearPendingItemPurchase()
end,
}
}
})
- ingame/tradinghouse/keyboard/tradinghouse_keyboard.lua:1042 --
ZO_Dialogs_RegisterCustomDialog("CONFIRM_TRADING_HOUSE_GUILD_SPECIFIC_PURCHASE",
{
customControl = dialogControl,
setup = function(self) SetupTradingHouseItemDialog(self, GetGuildSpecificItemInfo, self.guildSpecificItemIndex, SLOT_TYPE_GUILD_SPECIFIC_ITEM, GetPurchaseConfirmationTextString) end,
title =
{
text = SI_TRADING_HOUSE_PURCHASE_ITEM_DIALOG_TITLE,
},
buttons =
{
[1] =
{
control = GetControl(dialogControl, "Accept"),
text = SI_TRADING_HOUSE_PURCHASE_ITEM_DIALOG_CONFIRM,
callback = function(dialog)
BuyGuildSpecificItem(dialog.guildSpecificItemIndex)
tradingHouseManager:HandleGuildSpecificPurchase(dialog.guildSpecificItemIndex)
end,
},
[2] =
{
control = GetControl(dialogControl, "Cancel"),
text = SI_TRADING_HOUSE_PURCHASE_ITEM_DIALOG_CANCEL,
callback = function(dialog)
-- Do nothing
end,
}
}
})
- ingame/tradinghouse/keyboard/tradinghouse_keyboard.lua:1098 --
ZO_Dialogs_RegisterCustomDialog("CONFIRM_TRADING_HOUSE_CANCEL_LISTING",
{
customControl = dialogControl,
setup = function(self) SetupTradingHouseItemDialog(self, GetTradingHouseListingItemInfo, self.listingIndex, SLOT_TYPE_TRADING_HOUSE_ITEM_LISTING, GetSellConfirmationAmountTextString) end,
title =
{
text = SI_TRADING_HOUSE_CANCEL_LISTING_DIALOG_TITLE,
},
buttons =
{
[1] =
{
control = GetControl(dialogControl, "Accept"),
text = SI_TRADING_HOUSE_CANCEL_LISTING_DIALOG_CONFIRM,
callback = function(dialog)
CancelTradingHouseListing(dialog.listingIndex)
dialog.listingIndex = nil
end,
},
[2] =
{
control = GetControl(dialogControl, "Cancel"),
text = SI_TRADING_HOUSE_CANCEL_LISTING_DIALOG_CANCEL,
callback = function(dialog)
dialog.listingIndex = nil
end,
}
}
})
- ingame/trialaccount/trialaccount.lua:40 --
ZO_Dialogs_RegisterCustomDialog("TRIAL_ACCOUNT_SPLASH_KEYBOARD", self.dialogInfo)
- ingame/trialaccount/trialaccount.lua:42 --
ZO_Dialogs_RegisterCustomDialog("TRIAL_ACCOUNT_SPLASH_GAMEPAD",
{
setup = function(dialog)
dialog:setupFunc()
end,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.CENTERED,
},
canQueue = true,
title =
{
text = function()
return self.title
end,
},
mainText =
{
text = function()
return self.description
end,
},
buttons =
{
[1] =
{
ethereal = true,
keybind = "DIALOG_PRIMARY",
clickSound = SOUNDS.DIALOG_ACCEPT,
callback = CloseDialog,
},
[2] =
{
ethereal = true,
keybind = "DIALOG_NEGATIVE",
clickSound = SOUNDS.DIALOG_ACCEPT,
callback = CloseDialog,
},
},
noChoiceCallback = CloseDialog,
finishedCallback = CloseDialog,
removedFromQueueCallback = CloseDialog,
}
)
- ingame/tutorial/uiinfoboxtutorial.lua:35 --
ZO_Dialogs_RegisterCustomDialog("UI_TUTORIAL", self.dialogInfo)
- ingame/tutorial/uiinfoboxtutorial.lua:37 --
ZO_Dialogs_RegisterCustomDialog("UI_TUTORIAL_GAMEPAD",
{
canQueue = true,
setup = function(dialog)
dialog:setupFunc()
end,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.CENTERED,
},
title =
{
text = function()
return self.title
end,
},
mainText =
{
text = function()
return self.description
end,
},
buttons =
{
[1] =
{
ethereal = true,
keybind = "DIALOG_PRIMARY",
clickSound = SOUNDS.DIALOG_ACCEPT,
callback = function(dialog)
dialog.data.owner:RemoveTutorial(dialog.data.tutorialIndex, TUTORIAL_SEEN)
end,
}
},
noChoiceCallback = function(dialog)
if dialog.data then
dialog.data.owner:RemoveTutorial(dialog.data.tutorialIndex, TUTORIAL_SEEN)
end
end,
finishedCallback = function(dialog)
if dialog.data then
FireTutorialHiddenEvent(dialog.data.tutorialIndex)
end
end,
removedFromQueueCallback = function(data)
if data then
data.owner:RemoveTutorial(data.tutorialIndex, TUTORIAL_NOT_SEEN)
end
end,
}
)
- internalingame/globals/marketdialogs.lua:129 --
ZO_Dialogs_RegisterCustomDialog(
"MARKET_PURCHASE_CONFIRMATION",
{
customControl = self,
finishedCallback = LogPurchaseClose,
setup = MarketPurchaseConfirmationDialogSetup,
title =
{
text = SI_MARKET_CONFIRM_PURCHASE_TITLE,
},
canQueue = true,
buttons =
{
[1] =
{
control = self:GetNamedChild("Confirm"),
text = SI_MARKET_CONFIRM_PURCHASE_LABEL,
callback = function(dialog)
dialog.info.logPurchasedMarketId = true
local marketProduct = dialog.data.marketProduct
-- the MARKET_PURCHASING dialog will be queued to show once this one is hidden
ZO_Dialogs_ShowDialog("MARKET_PURCHASING", {itemName = dialog.data.itemName, hasItems = dialog.data.hasItems, marketProduct = marketProduct})
BuyMarketProduct(marketProduct:GetId(), marketProduct:GetPresentationIndex())
end,
},
[2] =
{
control = self:GetNamedChild("Cancel"),
text = SI_DIALOG_DECLINE,
}
}
}
)
- internalingame/globals/marketdialogs.lua:249 --
ZO_Dialogs_RegisterCustomDialog(
"MARKET_PURCHASING",
{
customControl = self,
setup = MarketPurchasingDialogSetup,
updateFn = OnMarketPurchasingUpdate,
title =
{
text = SI_MARKET_PURCHASING_TITLE,
},
mainText =
{
text = "",
align = TEXT_ALIGN_CENTER,
},
canQueue = true,
mustChoose = true,
buttons =
{
-- Use Product
{
control = self:GetNamedChild("UseProduct"),
keybind = "DIALOG_RESET",
callback = function(dialog)
dialog.data.marketProduct:GoToUseProductLocation()
end,
},
{
control = self:GetNamedChild("Confirm"),
text = SI_MARKET_CONFIRM_PURCHASE_BACK_KEYBIND_LABEL,
keybind = "DIALOG_PRIMARY",
callback = function(dialog)
-- Show tutorials from a purchased item first before showing the consumable tutorial
if dialog.data.tutorialTrigger then
MARKET:ShowTutorial(dialog.data.tutorialTrigger)
end
if dialog.data.result == MARKET_PURCHASE_RESULT_SUCCESS and dialog.data.hasItems then
MARKET:ShowTutorial(TUTORIAL_TRIGGER_CROWN_CONSUMABLE_PURCHASED)
end
end,
},
},
}
)
- internalingame/mail/confirmmail.lua:1 --
ZO_Dialogs_RegisterCustomDialog(
"CONFIRM_MAIL",
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = SI_CONFIRM_MAIL_TITLE,
},
mainText =
{
text = SI_CONFIRM_MAIL_TEXT,
},
buttons =
{
[1] =
{
text = SI_DIALOG_YES,
callback = function(dialog)
ConfirmSendMail(ZO_FormatManualNameEntry(dialog.data.to), dialog.data.subject, dialog.data.body)
end,
},
[2] =
{
text = SI_DIALOG_NO,
callback = function(dialog)
CancelSendMail()
end,
}
}
}
)
- internalingame/market/gamepad/marketdialogs_gamepad.lua:246 --
ZO_Dialogs_RegisterCustomDialog(DIALOG_FLOW[FLOW_CONFIRMATION],
{
setup = function(...) self:MarketPurchaseConfirmationDialogSetup(...) end,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.STATIC_LIST,
},
title =
{
text = SI_MARKET_CONFIRM_PURCHASE_TITLE,
},
canQueue = true,
itemInfo = {}, --we'll generate the entries on setup
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
text = SI_MARKET_CONFIRM_PURCHASE_BACK_KEYBIND_LABEL,
callback = function(dialog, isNoChoice)
OnMarketEndPurchase()
self:EndPurchase(isNoChoice)
end,
},
{
keybind = "DIALOG_SECONDARY",
text = SI_GAMEPAD_MARKET_CONFIRM_PURCHASE_BUY_NOW_LABEL,
callback = function(dialog)
OnMarketEndPurchase(self.marketProductId)
self.doMoveToNextFlowPosition = true
end,
},
},
mustChoose = true,
finishedCallback = function(dialog)
self:MoveToNextFlowPosition()
end,
})
- internalingame/market/gamepad/marketdialogs_gamepad.lua:284 --
ZO_Dialogs_RegisterCustomDialog("GAMEPAD_MARKET_BUY_CROWNS",
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = SI_MARKET_BUY_CROWNS
},
mainText =
{
text = buyCrownsMainText
},
buttons = buyCrownsButtons
})
- internalingame/market/gamepad/marketdialogs_gamepad.lua:301 --
ZO_Dialogs_RegisterCustomDialog("GAMEPAD_MARKET_BUY_PLUS",
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = SI_GAMEPAD_MARKET_BUY_PLUS_TITLE
},
mainText =
{
text = buyPlusMainText
},
buttons = buyPlusButtons
})
- internalingame/market/gamepad/marketdialogs_gamepad.lua:366 --
ZO_Dialogs_RegisterCustomDialog(DIALOG_FLOW[FLOW_PURCHASING],
{
setup = MarketPurchasingDialogSetup,
updateFn = OnMarketPurchasingUpdate,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.COOLDOWN,
},
title =
{
text = SI_MARKET_PURCHASING_TITLE,
},
mainText =
{
text = "",
},
loading =
{
text = function()
if self.stackCount > 1 then
return zo_strformat(SI_MARKET_PURCHASING_TEXT_WITH_QUANTITY, self.itemName, self.stackCount)
else
return zo_strformat(SI_MARKET_PURCHASING_TEXT, self.itemName)
end
end,
},
canQueue = true,
mustChoose = true,
finishedCallback = function() self:MoveToNextFlowPosition() end
})
- internalingame/market/gamepad/marketdialogs_gamepad.lua:397 --
ZO_Dialogs_RegisterCustomDialog(DIALOG_FLOW[FLOW_SUCCESS],
{
setup = function(dialog)
if self.onPurchaseSuccessCallback then
self.onPurchaseSuccessCallback()
self.onPurchaseSuccessCallback = nil
end
local displayData =
{
data1 = GetAvailableCurrencyHeaderData(self.productCostCurrencyType),
}
dialog.data = displayData
dialog.setupFunc(dialog, displayData)
end,
updateFn = function(dialog)
KEYBIND_STRIP:UpdateCurrentKeybindButtonGroups(dialog.keybindStateIndex)
end,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = GetString(SI_MARKET_PURCHASING_COMPLETE_TITLE)
},
mainText =
{
text = function()
return self.purchaseResultText
end
},
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
text = SI_MARKET_BACK_TO_STORE_KEYBIND_LABEL,
callback = EndPurchase,
},
{
keybind = "DIALOG_TERTIARY",
text = function(dialog)
local useProductInfo = self.marketProduct:GetUseProductInfo()
return useProductInfo.buttonText
end,
visible = function(dialog)
if self.result and self.result == MARKET_PURCHASE_RESULT_SUCCESS then
local useProductInfo = self.marketProduct:GetUseProductInfo()
if useProductInfo then
return not useProductInfo.visible or useProductInfo.visible()
else
return false
end
else
return false
end
end,
enabled = function(dialog)
local useProductInfo = self.marketProduct:GetUseProductInfo()
return not useProductInfo.enabled or useProductInfo.enabled()
end,
callback = function()
-- since we are trying to logout/go to another scene we don't want to trigger any of the scene changes
-- or try to show tutorials, however we want to clean up after ourselves
-- in case we don't actually logout
local marketProduct = self.marketProduct
self:ResetState()
marketProduct:GoToUseProductLocation()
end,
},
},
canQueue = true,
mustChoose = true,
})
- internalingame/market/gamepad/marketdialogs_gamepad.lua:472 --
ZO_Dialogs_RegisterCustomDialog(DIALOG_FLOW[FLOW_FAILED],
{
setup = function(dialog)
local displayData =
{
data1 = GetAvailableCurrencyHeaderData(self.productCostCurrencyType),
data2 = GetProductCostHeaderData(self.productCost, self.productCostCurrencyType),
}
dialog.data = displayData
dialog.setupFunc(dialog, displayData)
end,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = GetString(SI_MARKET_PURCHASING_FAILED_TITLE),
},
mainText =
{
text = function()
return self.purchaseFailedText
end
},
buttons = { defaultMarketBackButton },
canQueue = true,
mustChoose = true,
})
- internalingame/url/confirmurl.lua:1 --
ZO_Dialogs_RegisterCustomDialog(
"CONFIRM_UNSAFE_URL",
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = SI_CONFIRM_UNSAFE_URL_TITLE,
},
mainText =
{
text = SI_CONFIRM_UNSAFE_URL_TEXT,
},
buttons =
{
[1] =
{
text = SI_DIALOG_YES,
callback = function(dialog)
ConfirmOpenURL(dialog.data.URL)
end,
},
[2] =
{
text = SI_DIALOG_NO,
}
}
}
)
- libraries/zo_colorpicker/zo_colorpicker.lua:83 --
ZO_Dialogs_RegisterCustomDialog("COLOR_PICKER",
{
customControl = control,
title =
{
text = SI_WINDOW_TITLE_COLOR_PICKER,
},
buttons =
{
{
control = control:GetNamedChild("Accept"),
text = SI_DIALOG_ACCEPT,
keybind = "DIALOG_PRIMARY",
callback = function() self:Confirm() end,
},
{
control = control:GetNamedChild("Cancel"),
text = SI_DIALOG_CANCEL,
keybind = "DIALOG_NEGATIVE",
callback = function() COLOR_PICKER:Cancel() end,
},
}
})
- libraries/zo_timelockeddialog/zo_timelockeddialog.lua:40 --
ZO_Dialogs_RegisterCustomDialog(dialogName, dialogInfo)
- pregame/accountlogin/eula.lua:146 --
ZO_Dialogs_RegisterCustomDialog("SHOW_EULA", self.dialogInfo)
- pregame/accountlogin/pegi.lua:119 --
ZO_Dialogs_RegisterCustomDialog("PEGI_COUNTRY_SELECT",
{
customControl = self,
mustChoose = true,
canQueue = true,
title =
{
text = SI_PEGI_COUNTRY_SELECT_TITLE,
},
buttons =
{
[1] =
{
control = self:GetNamedChild("Confirm"),
text = SI_DIALOG_CONFIRM,
callback = function(self)
PEGI_AGREEMENT:OnCountrySelectionConfirmed()
end,
},
}
})
- pregame/accountlogin/pegi.lua:143 --
ZO_Dialogs_RegisterCustomDialog("PEGI_NOTIFICATION",
{
customControl = self,
mustChoose = true,
canQueue = true,
title =
{
text = SI_PEGI_AGREEMENT_TITLE,
},
buttons =
{
[1] =
{
control = self:GetNamedChild("Accept"),
text = SI_DIALOG_ACCEPT,
callback = function(self)
AgreeToPEGI()
end,
},
[2] =
{
control = self:GetNamedChild("Decline"),
text = SI_DIALOG_DECLINE,
callback = function(self)
ZO_Dialogs_ShowDialog("PEGI_NOTIFICATION_DECLINE")
end,
},
}
})
- pregame/accountlogin/pegi.lua:178 --
ZO_Dialogs_RegisterCustomDialog("PEGI_NOTIFICATION_DECLINE",
{
customControl = self,
mustChoose = true,
canQueue = true,
title =
{
text = SI_PEGI_AGREEMENT_DECLINE_TITLE,
},
buttons =
{
[1] =
{
control = self:GetNamedChild("Back"),
text = SI_BACK_UP_ONE_MENU,
callback = function(self)
ZO_Dialogs_ShowDialog("PEGI_NOTIFICATION")
end,
},
}
})
- pregame/accountlogin/keyboard/createlinkaccountdialogs_keyboard.lua:37 --
ZO_Dialogs_RegisterCustomDialog("LINK_ACCOUNT_KEYBOARD",
{
customControl = control,
setup = LinkAccountsDialogSetup,
canQueue = true,
title =
{
text = SI_KEYBOARD_LINKACCOUNT_DIALOG_HEADER,
},
buttons =
{
{
control = GetControl(control, "Link"),
text = SI_DIALOG_ACCEPT,
callback = function(dialog)
local data = dialog.data
LOGIN_MANAGER_KEYBOARD:AttemptAccountLink(data.esoAccount, data.password)
end,
},
{
control = GetControl(control, "Cancel"),
text = SI_DIALOG_CANCEL,
},
}
})
- pregame/accountlogin/keyboard/serverselect.lua:42 --
ZO_Dialogs_RegisterCustomDialog("SERVER_SELECT_DIALOG",
{
customControl = dialogControl,
mustChoose = true,
setup = SetupDialog,
title =
{
text = SI_SERVER_SELECT_TITLE,
},
mainText =
{
text = SI_SERVER_SELECT_CHARACTER_WARNING,
},
buttons =
{
[1] =
{
control = GetControl(dialogControl, "Button1"),
text = SI_DIALOG_ACCEPT,
callback = function(dialog)
local buttonData = ZO_Dialogs_GetSelectedRadioButtonData(dialog)
if GetCVar("LastPlatform") ~= buttonData.server then
SetCVar("LastPlatform", buttonData.server)
SetSelectedPlatform(buttonData.index)
end
end,
},
},
updateFn = function(dialog)
local server = ZO_Dialogs_GetSelectedRadioButtonData(dialog)
local acceptState = server and BSTATE_NORMAL or BSTATE_DISABLED
ZO_Dialogs_UpdateButtonState(dialog, 1, acceptState)
end,
finishedCallback = function(dialog)
if dialog.data.onClosed then
dialog.data.onClosed()
end
if dialog.data.isIntro then
SetCVar("IsServerSelected", "true")
PregameStateManager_AdvanceState()
end
end,
})
- pregame/charactercreate/gamepad/zo_charactercreate_gamepad.lua:289 --
ZO_Dialogs_RegisterCustomDialog(SKIP_TUTORIAL_GAMEPAD_DIALOG,
{
mustChoose = true,
canQueue = true,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = SI_PROMPT_TITLE_SKIP_TUTORIAL,
},
mainText =
{
text = SI_PROMPT_BODY_SKIP_TUTORIAL,
},
buttons =
{
{
text = SI_PROMPT_PLAY_TUTORIAL_BUTTON,
keybind = "DIALOG_PRIMARY",
callback = function(dialog)
self:CreateCharacter(dialog.data.startLocation, CHARACTER_CREATE_DEFAULT_LOCATION)
end,
},
{
text = SI_PROMPT_SKIP_TUTORIAL_BUTTON,
keybind = "DIALOG_SECONDARY",
callback = function(dialog)
self:CreateCharacter(dialog.data.startLocation, CHARACTER_CREATE_SKIP_TUTORIAL)
end,
},
{
text = SI_PROMPT_BACK_TUTORIAL_BUTTON,
keybind = "DIALOG_NEGATIVE",
callback = function(dialog)
ZO_CharacterCreate_Gamepad_CancelSkipDialogue()
ZO_Dialogs_ShowGamepadDialog(CHARACTER_CREATE_GAMEPAD_DIALOG, { characterName = dialog.data.characterName })
end,
},
}
})
- pregame/charactercreate/gamepad/zo_charactercreate_gamepad.lua:1137 --
ZO_Dialogs_RegisterCustomDialog("CHARACTER_CREATE_TEMPLATE_SELECT", dialogDescription)
- pregame/charactercreate/gamepad/zo_charactercreate_gamepad.lua:1501 --
ZO_Dialogs_RegisterCustomDialog(params.dialogName,
{
mustChoose = true,
canQueue = true,
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.PARAMETRIC,
},
setup = SetupDialog,
OnShownCallback = function()
-- Open Keyboard immediately on entering finishing character dialog
if self.editBoxControl then
self.editBoxControl:TakeFocus()
end
end,
blockDialogReleaseOnPress = true, -- We'll handle Dialog Releases ourselves since we don't want DIALOG_PRIMARY to release the dialog on press.
title =
{
text = params.dialogTitle,
},
mainText =
{
text = params.dialogMainText,
},
parametricList =
{
-- name edit box
{
template = "ZO_Gamepad_GenericDialog_Parametric_TextFieldItem",
templateData = {
nameField = true,
textChangedCallback = function(control)
local newName = control:GetText()
UpdateSelectedName(newName)
if control:GetText() ~= parametricDialog.selectedName then
control:SetText(parametricDialog.selectedName)
end
end,
setup = function(control, data, selected, reselectingDuringRebuild, enabled, active)
control.editBoxControl.textChangedCallback = data.textChangedCallback
ZO_EditDefaultText_Initialize(control.editBoxControl, GetString(SI_CREATE_CHARACTER_GAMEPAD_ENTER_NAME))
local validInput = parametricDialog.selectedName and parametricDialog.selectedName ~= ""
if validInput then
control.editBoxControl:SetText(parametricDialog.selectedName)
end
SetupEditControlForNameValidation(control.editBoxControl)
control.editBoxControl:SetMaxInputChars(CHARNAME_MAX_LENGTH)
control.highlight:SetHidden(not selected)
self.editBoxSelected = selected
self.editBoxControl = control.editBoxControl
end,
},
},
-- Done menu item
{
template = "ZO_GamepadTextFieldSubmitItem",
templateData = doneEntry,
},
},
buttons =
{
{
keybind = "DIALOG_PRIMARY",
text = GetString(SI_CREATE_CHARACTER_GAMEPAD_FINISH_SELECT),
callback = function(dialog)
if self.editBoxSelected then
local targetControl = dialog.entryList:GetTargetControl()
if targetControl and targetControl.editBoxControl then
targetControl.editBoxControl:TakeFocus()
end
else
if not dialog.noViolations then
return
end
ReleaseDialog()
if params.onFinish then
params.onFinish(dialog)
end
end
end,
enabled = function()
return self.editBoxSelected or parametricDialog.noViolations
end,
},
{
keybind = "DIALOG_NEGATIVE",
text = GetString(SI_CREATE_CHARACTER_GAMEPAD_FINISH_BACK),
callback = function(dialog)
ReleaseDialog()
if params.onBack then
params.onBack(dialog)
end
PlaySound(SOUNDS.GAMEPAD_MENU_BACK)
end,
},
},
})
- pregame/charactercreate/keyboard/zo_charactercreate_keyboard.lua:292 --
ZO_Dialogs_RegisterCustomDialog("CHARACTER_CREATE_SKIP_TUTORIAL",
{
customControl = control,
canQueue = true,
title =
{
text = SI_PROMPT_TITLE_SKIP_TUTORIAL,
},
mainText =
{
text = SI_PROMPT_BODY_SKIP_TUTORIAL,
},
noChoiceCallback = function(dialog)
ZO_CHARACTERCREATE_MANAGER:SetShouldPromptForTutorialSkip(true)
end,
buttons =
{
{
control = GetControl(control, "Play"),
text = SI_PROMPT_PLAY_TUTORIAL_BUTTON,
keybind = "DIALOG_PRIMARY",
callback = function(dialog)
self:CreateCharacter(dialog.data.startLocation, CHARACTER_CREATE_DEFAULT_LOCATION)
end,
},
{
control = GetControl(control, "Skip"),
text = SI_PROMPT_SKIP_TUTORIAL_BUTTON,
keybind = "DIALOG_SECONDARY",
callback = function(dialog)
self:CreateCharacter(dialog.data.startLocation, CHARACTER_CREATE_SKIP_TUTORIAL)
end,
},
{
control = GetControl(control, "Back"),
text = SI_PROMPT_BACK_TUTORIAL_BUTTON,
keybind = "DIALOG_NEGATIVE",
callback = function(dialog)
ZO_CHARACTERCREATE_MANAGER:SetShouldPromptForTutorialSkip(true)
end,
},
}
})
- pregame/characterselect/gamepad/zo_characterselect_gamepad.lua:125 --
ZO_Dialogs_RegisterCustomDialog("CONFIRM_DELETE_SELECTED_CHARACTER_GAMEPAD",
{
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
setup = function()
ZO_CharacterSelectDelete_Gamepad_ResetDeleteKeys()
end,
updateFn = function(dialog)
ZO_Dialogs_RefreshDialogText("CONFIRM_DELETE_SELECTED_CHARACTER_GAMEPAD", dialog, { mainTextParams = { ZO_CharacterSelect_Gamepad_GetDeleteKeyText() }})
end,
mustChoose = true,
title =
{
text = SI_CONFIRM_DELETE_CHARACTER_DIALOG_GAMEPAD_TITLE,
},
mainText =
{
text = SI_CONFIRM_DELETE_CHARACTER_DIALOG_GAMEPAD_TEXT,
},
blockDialogReleaseOnPress = true,
buttons =
{
{
text = GetString(SI_CHARACTER_SELECT_GAMEPAD_DELETE_CANCEL),
keybind = "DIALOG_NEGATIVE",
callback = function()
local self = ZO_CharacterSelect_Gamepad
local selectedData = self.characterList:GetTargetData()
PlaySound(SOUNDS.GAMEPAD_MENU_BACK)
ZO_CharacterSelect_Gamepad_ReturnToCharacterList(ACTIVATE_VIEWPORT)
if selectedData and selectedData.needsRename then
ZO_CharacterSelect_Gamepad_RefreshKeybindStrip(self.charListKeybindStripDescriptorRename)
else
ZO_CharacterSelect_Gamepad_RefreshKeybindStrip(self.charListKeybindStripDescriptorDefault)
end
ZO_Dialogs_ReleaseDialog("CONFIRM_DELETE_SELECTED_CHARACTER_GAMEPAD")
end,
},
{
keybind = "DIALOG_LEFT_SHOULDER",
handlesKeyUp = true,
ethereal = true,
callback = function(dialog, onUp)
ZO_CharacterSelectDelete_Gamepad_OnKeyChanged(KEY_GAMEPAD_LEFT_SHOULDER, not onUp)
end,
},
{
keybind = "DIALOG_RIGHT_SHOULDER",
handlesKeyUp = true,
ethereal = true,
callback = function(dialog, onUp)
ZO_CharacterSelectDelete_Gamepad_OnKeyChanged(KEY_GAMEPAD_RIGHT_SHOULDER, not onUp)
end,
},
{
keybind = "DIALOG_LEFT_TRIGGER",
handlesKeyUp = true,
ethereal = true,
callback = function(dialog, onUp)
ZO_CharacterSelectDelete_Gamepad_OnKeyChanged(KEY_GAMEPAD_LEFT_TRIGGER, not onUp)
end,
},
{
keybind = "DIALOG_RIGHT_TRIGGER",
handlesKeyUp = true,
ethereal = true,
callback = function(dialog, onUp)
ZO_CharacterSelectDelete_Gamepad_OnKeyChanged(KEY_GAMEPAD_RIGHT_TRIGGER, not onUp)
end,
},
},
})
- pregame/characterselect/keyboard/zo_characterselect_keyboard.lua:194 --
ZO_Dialogs_RegisterCustomDialog("RENAME_CHARACTER_KEYBOARD",
{
customControl = self,
canQueue = true,
setup = SetupRenameDialog,
title =
{
text = function(dialog)
local titleText = SI_CHARACTER_SELECT_RENAME_CHARACTER_FROM_TOKEN_TITLE
if dialog.data.characterData.needsRename then
titleText = SI_CHARACTER_SELECT_RENAME_CHARACTER_TITLE
end
return GetString(titleText)
end,
},
buttons =
{
{
control = GetControl(self, "AttemptRename"),
text = SI_CHARACTER_SELECT_RENAME_SAVE_NEW_NAME,
callback = function(dialog)
g_requestedCharacterRename = ZO_RenameCharacterDialogNameEdit:GetText()
AttemptCharacterRename(dialog.data.characterData.id, g_requestedCharacterRename)
-- Show a loading dialog in its place until the rename request finishes
ZO_Dialogs_ShowDialog("CHARACTER_SELECT_CHARACTER_RENAMING")
end,
},
{
control = GetControl(self, "Cancel"),
text = SI_DIALOG_CANCEL,
},
},
updateFn = function(dialog)
local nameText = dialog.nameEdit:GetText()
local nameViolations = { IsValidCharacterName(nameText) }
if #nameViolations > 0 then
dialog.renameInstructions:Show(nil, nameViolations)
dialog.attemptRenameButton:SetEnabled(false)
else
dialog.renameInstructions:Hide()
dialog.attemptRenameButton:SetEnabled(true)
end
local correctedName = CorrectCharacterNameCase(nameText)
if correctedName ~= nameText then
-- only set the text if it's actually changed
dialog.nameEdit:SetText(correctedName)
end
end,
})
- pregame/console/createaccount/createaccount_gamepad.lua:65 --
ZO_Dialogs_RegisterCustomDialog(GAMEPAD_CREATE_ACCOUNT_ERROR_DIALOG,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.BASIC,
},
mustChoose = true,
title =
{
text = SI_CREATEACCOUNT_ERROR_HEADER,
},
mainText =
{
text = function() return g_lastErrorString end,
},
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_EXIT,
},
}
})
- pregame/console/gamestartup/gamestartup_gamepad.lua:82 --
ZO_Dialogs_RegisterCustomDialog("FREE_TRIAL_INACTIVE", {
canQueue = true,
gamepadInfo =
{
dialogType = GAMEPAD_DIALOGS.BASIC,
},
title =
{
text = SI_FREE_TRIAL_PURCHASE_DIALOG_HEADER,
},
mainText =
{
text = SI_FREE_TRIAL_PURCHASE_DIALOG_BODY,
},
noChoiceCallback = function()
if IsConsoleUI() then
ReturnToIIS()
end
end,
buttons =
{
{
text = SI_FREE_TRIAL_PURCHASE_KEYBIND,
keybind = "DIALOG_PRIMARY",
callback = function()
if IsConsoleUI() then
ShowConsoleESOGameClientUI()
ReturnToIIS()
end
end,
},
{
text = SI_GAMEPAD_BACK_OPTION,
keybind = "DIALOG_NEGATIVE",
callback = function()
if IsConsoleUI() then
ReturnToIIS()
end
end,
},
},
})
- pregame/console/linkaccountscreen/linkaccountscreen_gamepad.lua:58 --
ZO_Dialogs_RegisterCustomDialog(GAMEPAD_LINK_ACCOUNT_ERROR_DIALOG,
{
gamepadInfo = {
dialogType = GAMEPAD_DIALOGS.BASIC,
},
mustChoose = true,
title =
{
text = SI_LINKACCOUNT_ERROR_HEADER,
},
mainText =
{
text = function() return g_lastErrorString end,
},
buttons =
{
{
keybind = "DIALOG_NEGATIVE",
text = SI_DIALOG_EXIT,
},
}
})
- pregame/globals/overflowdialog.lua:7 --
ZO_Dialogs_RegisterCustomDialog("PROVIDE_OVERFLOW_RESPONSE",
{
customControl = dialogControl,
setup = SetupMainText,
mustChoose = true,
title =
{
text = SI_OVERFLOW_DIALOG_TITLE,
},
buttons =
{
{
control = GetControl(dialogControl, "Cancel"),
text = SI_OVERFLOW_DIALOG_CANCEL_BUTTON,
keybind = false,
callback = function(dialog)
CancelLogin()
PregameStateManager_SetState("AccountLogin")
end,
},
{
control = GetControl(dialogControl, "Overflow"),
text = SI_OVERFLOW_DIALOG_OVERFLOW_BUTTON,
keybind = false,
callback = function(dialog)
RespondToOverflowPrompt(true)
PregameStateManager_ShowLoginRequested()
end,
},
{
control = GetControl(dialogControl, "Queue"),
text = SI_OVERFLOW_DIALOG_QUEUE_BUTTON,
keybind = false,
callback = function(dialog)
RespondToOverflowPrompt(false)
PregameStateManager_ShowLoginRequested()
end,
},
}
})