Back to Home

ESO Lua File v101044

ingame/tooltip/notificationstooltips.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
function ZO_Tooltip:LayoutNotification(note, messageText)
    local bodySection = self:AcquireSection(self:GetStyle("bodySection"))
    if messageText then
        bodySection:AddLine(messageText, self:GetStyle("bodyDescription"))
    end
    if note then
        bodySection:AddLine(note, self:GetStyle("notificationNote"))
    end
    self:AddSection(bodySection)
end
function ZO_Tooltip:LayoutKeybindNotification(entryData)
    local bodySection = self:AcquireSection(self:GetStyle("bodySection"))
    local params = {
        ZO_SELECTED_TEXT:Colorize(entryData.data:GetCategoryName()),
        ZO_SELECTED_TEXT:Colorize(entryData.data:GetName()),
        "UI_SHORTCUT_RIGHT_STICK",
    }
    local KEYBIND_INDEX = 3
    bodySection:AddParameterizedKeybindLine(SI_COLLECTIONS_UPDATED_NOTIFICATION_MESSAGE_MORE_INFO_GAMEPAD, params, KEYBIND_INDEX, self:GetStyle("bodyDescription"))
    self:AddSection(bodySection)
end