ESO Lua File v100010

ingame/globals/sharedtextures.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
local ALLIANCE_ICON_TEXTURES =
{
    [ALLIANCE_ALDMERI_DOMINION] = "EsoUI/Art/AvA/AvA_HUD_emblem_aldmeri.dds",
    [ALLIANCE_EBONHEART_PACT] = "EsoUI/Art/AvA/AvA_HUD_emblem_ebonheart.dds",
    [ALLIANCE_DAGGERFALL_COVENANT] = "EsoUI/Art/AvA/AvA_HUD_emblem_daggerfall.dds",
}
function GetAllianceTexture(alliance)
    return ALLIANCE_ICON_TEXTURES[alliance]
end
local ALLIANCE_SYMBOL_ICONS =
{
    [ALLIANCE_ALDMERI_DOMINION] = "EsoUI/Art/Contacts/social_allianceIcon_aldmeri.dds",
    [ALLIANCE_EBONHEART_PACT] = "EsoUI/Art/Contacts/social_allianceIcon_ebonheart.dds",
    [ALLIANCE_DAGGERFALL_COVENANT] = "EsoUI/Art/Contacts/social_allianceIcon_daggerfall.dds",
}
function GetAllianceSymbolIcon(alliance)
    return ALLIANCE_SYMBOL_ICONS[alliance]
end
local LARGE_ALLIANCE_SYMBOL_ICONS =
{
    [ALLIANCE_ALDMERI_DOMINION] = "EsoUI/Art/Stats/allianceBadge_Aldmeri.dds",
    [ALLIANCE_EBONHEART_PACT] = "EsoUI/Art/Stats/allianceBadge_Ebonheart.dds",
    [ALLIANCE_DAGGERFALL_COVENANT] = "EsoUI/Art/Stats/allianceBadge_Daggerfall.dds",
}
function GetLargeAllianceSymbolIcon(alliance)
    return LARGE_ALLIANCE_SYMBOL_ICONS[alliance]
end
local ALLIANCE_BANNER_ICONS =
{
    [ALLIANCE_ALDMERI_DOMINION] = "EsoUI/Art/Contacts/social_allianceIcon_aldmeri.dds",
    [ALLIANCE_EBONHEART_PACT] = "EsoUI/Art/Contacts/social_allianceIcon_ebonheart.dds",
    [ALLIANCE_DAGGERFALL_COVENANT] = "EsoUI/Art/Contacts/social_allianceIcon_daggerfall.dds",
}
function GetAllianceBannerIcon(alliance)
    return ALLIANCE_BANNER_ICONS[alliance]
end
local INSTANCE_DISPLAY_TYPE_ICONS =
{
    [INSTANCE_DISPLAY_TYPE_SOLO] = "EsoUI/Art/Icons/mapKey/mapKey_soloInstance.dds",
    [INSTANCE_DISPLAY_TYPE_GROUP] = "EsoUI/Art/Icons/mapKey/mapKey_groupInstance.dds",
    [INSTANCE_DISPLAY_TYPE_RAID] = "EsoUI/Art/Icons/mapKey/mapKey_raidDungeon.dds",
    [INSTANCE_DISPLAY_TYPE_GROUP_DELVE] = "EsoUI/Art/Icons/mapKey/mapKey_groupDelve.dds",
}
function GetInstanceDisplayTypeIcon(instanceType)
    return INSTANCE_DISPLAY_TYPE_ICONS[instanceType]
end
local SOCKET_TEXTURES = {
    --Using blue slot for enchantment currently
    [SOCKET_TYPE_ENCHANTMENT] = "EsoUI/Art/ItemToolTip/ESO_itemToolTip_blueSlot.dds",
    [SOCKET_TYPE_PRECISION] = "EsoUI/Art/AvA/AvA_itemHighlight_precision.dds",
    [SOCKET_TYPE_AMMO] = "EsoUI/Art/AvA/AvA_itemHighlight_ammo.dds",
    [SOCKET_TYPE_LAUNCH_VELOCITY] = "EsoUI/Art/AvA/AvA_itemHighlight_range.dds",
    [SOCKET_TYPE_TOUGHNESS] = "EsoUI/Art/AvA/AvA_itemHighlight_toughness.dds",
}
function GetSocketTexture(socketType)
    return SOCKET_TEXTURES[socketType]
end
do
    local CLASS_ICONS = {}
    for i = 1, GetNumClasses() do
        local classId, _, _, _, _, _, icon = GetClassInfo(i)
        CLASS_ICONS[classId] = icon
    end 
    function GetClassIcon(classId)
        return CLASS_ICONS[classId]
    end
end
local STATUS_ICONS =
{
    [PLAYER_STATUS_ONLINE] = "EsoUI/Art/Contacts/social_status_online.dds",
    [PLAYER_STATUS_OFFLINE] = "EsoUI/Art/Contacts/social_status_offline.dds",
    [PLAYER_STATUS_AWAY] = "EsoUI/Art/Contacts/social_status_afk.dds",
    [PLAYER_STATUS_DO_NOT_DISTURB] = "EsoUI/Art/Contacts/social_status_dnd.dds",
}
function GetPlayerStatusIcon(playerStatus)
    return STATUS_ICONS[playerStatus]
end
local VETERAN_RANK_ICON = "EsoUI/Art/UnitFrames/target_veteranRank_icon.dds"
function GetVeteranRankIcon()
    return VETERAN_RANK_ICON
end
function GetColoredAvARankIconMarkup(avaRank, alliance, size)
    local rankIconMarkup = string.format("|t%d:%d:%s:inheritColor|t", size, size, GetAvARankIcon(avaRank))
    local coloredRankIconMarkup = GetAllianceColor(alliance):Colorize(rankIconMarkup)
    return coloredRankIconMarkup
end
local POINTS_ATTRIBUTE_ICON =
{
    [ATTRIBUTE_HEALTH] = "EsoUI/Art/Champion/champion_points_health_icon.dds",
    [ATTRIBUTE_MAGICKA] = "EsoUI/Art/Champion/champion_points_magicka_icon.dds",
    [ATTRIBUTE_STAMINA] = "EsoUI/Art/Champion/champion_points_stamina_icon.dds",
}
function GetChampionPointAttributeIcon(attribute)
    return POINTS_ATTRIBUTE_ICON[attribute]
end
local POINTS_ATTRIBUTE_ACTIVE_ICON =
{
    [ATTRIBUTE_HEALTH] = "EsoUI/Art/Champion/champion_points_health_icon_active.dds",
    [ATTRIBUTE_MAGICKA] = "EsoUI/Art/Champion/champion_points_magicka_icon_active.dds",
    [ATTRIBUTE_STAMINA] = "EsoUI/Art/Champion/champion_points_stamina_icon_active.dds",
}
    return POINTS_ATTRIBUTE_ACTIVE_ICON[attribute]
end
if GetUIPlatform() == UI_PLATFORM_PS4 then
    ZO_GAMEPAD_RIGHT_SCROLL_ICON = "EsoUI/Art/Buttons/Gamepad/PS4/Nav_Ps4_RS_Scroll.dds"
else
    ZO_GAMEPAD_RIGHT_SCROLL_ICON = "EsoUI/Art/Buttons/Gamepad/Xbox/Nav_XBone_RS_Scroll.dds"
end
ZO_NO_TEXTURE_FILE = "/esoui/art/icons/icon_missing.dds"