Back to Home

ESO Lua File v100036

internalingame/url/confirmurl.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
37
        "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,
                }
            }
        }
    )
EVENT_MANAGER:RegisterForEvent("ZoConfirmURL", EVENT_CONFIRM_UNSAFE_URL, function(eventCode, URL)
    ZO_Dialogs_ReleaseDialog("CONFIRM_UNSAFE_URL")
    ZO_Dialogs_ShowPlatformDialog("CONFIRM_UNSAFE_URL", { URL = URL }, {mainTextParams = { URL }})
end)