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 38 39 40 41 42 43 44 45 |
local CHARACTER_NAME_ICON = "EsoUI/Art/Miscellaneous/Gamepad/gp_charNameIcon.dds"
local KEYBOARD_UI_ICON_SIZE = 24
local GAMEPAD_UI_ICON_SIZE = 32
end
end
return IsDecoratedDisplayName ( characterOrDisplayName ) and ZO_FormatUserFacingDisplayName ( characterOrDisplayName ) or ZO_FormatUserFacingCharacterName ( characterOrDisplayName )
end
end
end
local userFacingName
-- 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 ZO_FormatUserFacingCharacterName ( characterName )
else
-- Prioritize the character name in the keyboard UI.
userFacingName = characterName ~= "" and ZO_FormatUserFacingCharacterName ( characterName ) or ZO_FormatUserFacingDisplayName ( displayName )
end
return userFacingName
end
end
end |