Back to Home

ESO Lua File v100034

ingame/collections/combinationpromptmanager.lua

[◄ back to folders ]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
function ZO_CombinationPromptManager_ShowEvolutionPrompt(baseCollectibleId, unlockedCollectibleId, acceptCallback, declineCallback)
    local baseCollectibleData = ZO_COLLECTIBLE_DATA_MANAGER:GetCollectibleDataById(baseCollectibleId)
    local baseCollectibleName = ZO_WHITE:Colorize(baseCollectibleData:GetName())
    local unlockedCollectibleData = ZO_COLLECTIBLE_DATA_MANAGER:GetCollectibleDataById(unlockedCollectibleId)
    local unlockedCollectibleName = ZO_WHITE:Colorize(unlockedCollectibleData:GetName())
    local dialogData =
    {
        baseCollectibleId = baseCollectibleId,
        evolvedCollectibleId = unlockedCollectibleId,
        acceptCallback = acceptCallback,
        declineCallback = declineCallback,
    }
    local textParams =
    {
        mainTextParams =
        {
            baseCollectibleName,
            unlockedCollectibleName
        },
    }
    if IsInGamepadPreferredMode() then
        ZO_Dialogs_ShowGamepadDialog("CONFIRM_COLLECTIBLE_EVOLUTION_PROMPT_GAMEPAD", dialogData, textParams)
    else
        ZO_Dialogs_ShowDialog("CONFIRM_COLLECTIBLE_EVOLUTION_PROMPT_KEYBOARD", dialogData, textParams)
    end
end
    ZO_Dialogs_ReleaseDialog("CONFIRM_COLLECTIBLE_EVOLUTION_PROMPT_KEYBOARD")
    ZO_Dialogs_ReleaseDialog("CONFIRM_COLLECTIBLE_EVOLUTION_PROMPT_GAMEPAD")
end