ESO Lua File v100012

libraries/utility/zo_platformutils.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
    return IsConsoleUI() and UndecorateDisplayName(name) or name
end
    return IsConsoleUI() and DecorateDisplayName(name) or name
end
    return GetString("SI_PLATFORMACCOUNTLABEL", GetUIPlatform())
end
function ZO_GetPlatformUserFacingName(characterName, displayName)
    local userFacingName
    if IsInGamepadPreferredMode() then
        -- Prioritize the userID if using the gamepad UI, but fallback to character name on PC for cases where
        -- we have the character name but not the userID
        userFacingName = displayName ~= "" and ZO_FormatUserFacingDisplayName(displayName) or characterName
    else
        -- Prioritize the character name in the keyboard UI.
        userFacingName = characterName ~= "" and characterName or ZO_FormatUserFacingDisplayName(displayName)
    end
    return userFacingName
end
    if IsConsoleUI() and SavePlayerConsoleProfile ~= nil then
        SavePlayerConsoleProfile()
    end
end