ESO Lua File v100011

ingame/contacts/notifications.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
local EVENT_NAMESPACE = "KeyboardNotifications"
local KEYBOARD_NOTIFICATION_ICONS =
{
    [NOTIFICATION_TYPE_FRIEND] = "EsoUI/Art/Notifications/notificationIcon_friend.dds",
    [NOTIFICATION_TYPE_GUILD] = "EsoUI/Art/Notifications/notificationIcon_guild.dds",
    [NOTIFICATION_TYPE_GUILD_MOTD] = "EsoUI/Art/Notifications/notificationIcon_guild.dds",
    [NOTIFICATION_TYPE_CAMPAIGN_QUEUE] = "EsoUI/Art/Notifications/notificationIcon_campaignQueue.dds",
    [NOTIFICATION_TYPE_RESURRECT] = "EsoUI/Art/Notifications/notificationIcon_resurrect.dds",
    [NOTIFICATION_TYPE_GROUP] = "EsoUI/Art/Notifications/notificationIcon_group.dds",
    [NOTIFICATION_TYPE_TRADE] = "EsoUI/Art/Notifications/notificationIcon_trade.dds",
    [NOTIFICATION_TYPE_QUEST_SHARE] = "EsoUI/Art/Notifications/notificationIcon_quest.dds",
    [NOTIFICATION_TYPE_PLEDGE_OF_MARA] = "EsoUI/Art/Notifications/notificationIcon_mara.dds",
    [NOTIFICATION_TYPE_CUSTOMER_SERVICE] = "EsoUI/Art/Notifications/notification_cs.dds",
    [NOTIFICATION_TYPE_LEADERBOARD] = "EsoUI/Art/Notifications/notificationIcon_leaderboard.dds",
    [NOTIFICATION_TYPE_COLLECTIONS] = "EsoUI/Art/Notifications/notificationIcon_collections.dds",
}
-- Provider Overrides
-------------------------
-- Friend Request Provier
-------------------------
local ZO_KeyboardFriendRequestProvider = ZO_FriendRequestProvider:Subclass()
function ZO_KeyboardFriendRequestProvider:New(notificationManager)
    local provider = ZO_FriendRequestProvider.New(self, notificationManager)
    return provider
end
function ZO_KeyboardFriendRequestProvider:CreateMessage(displayName)
    return zo_strformat(SI_FRIEND_REQUEST_MESSAGE, displayName)
end
function ZO_KeyboardFriendRequestProvider:Decline(data, button, openedFromKeybind)
    ClearMenu()
    AddMenuItem(GetString(SI_NOTIFICATIONS_REQUEST_DECLINE), function()
                                                                RejectFriendRequest(data.displayName)
                                                                PlaySound(SOUNDS.FRIEND_REQUEST_DECLINED)
                                                             end)
    AddMenuItem(GetString(SI_NOTIFICATIONS_REQUEST_IGNORE_PLAYER), function()
                                                                    AddIgnore(data.displayName)
                                                                    PlaySound(SOUNDS.FRIEND_REQUEST_IGNORED)
                                                                   end)
    AddMenuItem(GetString(SI_NOTIFICATIONS_REQUEST_REPORT_SPAMMING), function() ZO_FEEDBACK:ReportPlayer(data.displayName, REPORT_PLAYER_REASON_FRIEND_REQUEST_SPAM) end)
    if(openedFromKeybind == NOTIFICATIONS_MENU_OPENED_FROM_KEYBIND) then
        self.notificationManager.sortFilterList:ShowMenu(button, 1)
    else
        self.notificationManager.sortFilterList:ShowMenu(button)
    end
end
-- Guild Invite Request Provier
-------------------------
local ZO_KeyboardGuildInviteProvider = ZO_GuildInviteProvider:Subclass()
function ZO_KeyboardGuildInviteProvider:New(notificationManager)
    local provider = ZO_GuildInviteProvider.New(self, notificationManager)
    return provider
end
function ZO_KeyboardGuildInviteProvider:CreateMessage(guildAlliance, guildName, inviterDisplayName)
    local allianceIcon = zo_iconFormat(GetAllianceBannerIcon(guildAlliance), 24, 24)
    return zo_strformat(SI_GUILD_INVITE_MESSAGE, allianceIcon, guildName, inviterDisplayName)
end
function ZO_KeyboardGuildInviteProvider:Decline(data, button, openedFromKeybind)
    ClearMenu()
    AddMenuItem(GetString(SI_NOTIFICATIONS_REQUEST_DECLINE), function() RejectGuildInvite(data.guildId) end)
    AddMenuItem(GetString(SI_NOTIFICATIONS_REQUEST_IGNORE_PLAYER), function() AddIgnore(data.displayName) end)
    AddMenuItem(GetString(SI_NOTIFICATIONS_REQUEST_REPORT_SPAMMING), function() ZO_FEEDBACK:ReportPlayer(data.displayName, REPORT_PLAYER_REASON_GUILD_REQUEST_SPAM) end)
    if(openedFromKeybind == NOTIFICATIONS_MENU_OPENED_FROM_KEYBIND) then
        self.notificationManager.sortFilterList:ShowMenu(button, 1)
    else
        self.notificationManager.sortFilterList:ShowMenu(button)
    end
end
--Campaign Queue Provider
-------------------------
local ZO_KeyboardCampaignQueueProvider = ZO_CampaignQueueProvider:Subclass()
function ZO_KeyboardCampaignQueueProvider:New(notificationManager)
    local provider = ZO_CampaignQueueProvider.New(self, notificationManager)
    return provider
end
function ZO_KeyboardCampaignQueueProvider:CreateMessageFormat(isGroup)
    return isGroup and SI_CAMPAIGN_QUEUE_MESSAGE_GROUP or SI_CAMPAIGN_QUEUE_MESSAGE_INDIVIDUAL
end
function ZO_KeyboardCampaignQueueProvider:CreateLoadText()
    return GetString(SI_CAMPAIGN_ENTER_MESSAGE)
end
function ZO_KeyboardCampaignQueueProvider:Accept(data)
    ZO_Dialogs_ShowPlatformDialog("CAMPAIGN_QUEUE_READY", {campaignId = data.campaignId, isGroup = data.isGroup}, {mainTextParams = {data.campaignName}})
     PlaySound(SOUNDS.CAMPAIGN_QUEUE_ACCEPTED)
end
--Resurrect Provider
-------------------------
local ZO_KeyboardResurrectProvider = ZO_ResurrectProvider:Subclass()
function ZO_KeyboardResurrectProvider:New(notificationManager)
    local provider = ZO_ResurrectProvider.New(self, notificationManager)
    return provider
end
function ZO_KeyboardResurrectProvider:CreateMessageFormat()
    return SI_RESURRECT_MESSAGE
end
--Group Invite Provider
-------------------------
local ZO_KeyboardGroupInviteProvider = ZO_GroupInviteProvider:Subclass()
function ZO_KeyboardGroupInviteProvider:New(notificationManager)
    local provider = ZO_GroupInviteProvider.New(self, notificationManager)
    return provider
end
function ZO_KeyboardGroupInviteProvider:CreateMessage(inviterName)
    return zo_strformat(SI_GROUP_INVITE_MESSAGE, inviterName)
end
--Trade Invite Provider
-------------------------
local ZO_KeyboardTradeInviteProvider = ZO_TradeInviteProvider:Subclass()
function ZO_KeyboardTradeInviteProvider:New(notificationManager)
    local provider = ZO_TradeInviteProvider.New(self, notificationManager)
    return provider
end
function ZO_KeyboardTradeInviteProvider:CreateMessage(inviterName)
    return zo_strformat(SI_TRADE_INVITE_MESSAGE, inviterName)
end
--Quest Share Provider
-------------------------
local ZO_KeyboardQuestShareProvider = ZO_QuestShareProvider:Subclass()
function ZO_KeyboardQuestShareProvider:New(notificationManager)
    local provider = ZO_QuestShareProvider.New(self, notificationManager)
    return provider
end
function ZO_KeyboardQuestShareProvider:CreateMessage(playerName, questName)
    return zo_strformat(SI_QUEST_SHARE_MESSAGE, playerName, questName)
end
--Pledge of Mara Provider
-------------------------
local ZO_KeyboardPledgeOfMaraProvider = ZO_PledgeOfMaraProvider:Subclass()
function ZO_KeyboardPledgeOfMaraProvider:New(notificationManager)
    local provider = ZO_PledgeOfMaraProvider.New(self, notificationManager)
    return provider
end
function ZO_KeyboardPledgeOfMaraProvider:CreateMessage(targetName)
    return zo_strformat(SI_PLEDGE_OF_MARA_MESSAGE, targetName)
end
function ZO_KeyboardPledgeOfMaraProvider:CreateSenderMessage(targetName)
    return zo_strformat(SI_PLEDGE_OF_MARA_SENDER_MESSAGE, targetName)
end
-- CS Chat Request Provider
-------------------------
local ZO_KeyboardAgentChatRequestProvider = ZO_AgentChatRequestProvider:Subclass()
function ZO_KeyboardAgentChatRequestProvider:New(notificationManager)
    local provider = ZO_AgentChatRequestProvider.New(self, notificationManager)
    return provider
end
function ZO_KeyboardAgentChatRequestProvider:CreateMessage()
    return GetString(SI_AGENT_CHAT_REQUEST_MESSAGE)
end
-- Leaderboard Raid Provider
-------------------------
local ZO_KeyboardLeaderboardRaidProvider = ZO_LeaderboardRaidProvider:Subclass()
function ZO_KeyboardLeaderboardRaidProvider:New(notificationManager)
    local provider = ZO_LeaderboardRaidProvider.New(self, notificationManager)
    return provider
end
function ZO_KeyboardLeaderboardRaidProvider:CreateMessage(raidName, raidScore, hasFriend, hasGuildMember)
    local messageStringId
    if(hasFriend and hasGuildMember) then
        messageStringId = SI_NOTIFICATIONS_LEADERBOARD_RAID_MESSAGE_FRIENDS_AND_GUILD_MEMBERS
    elseif(hasFriend) then
        messageStringId = SI_NOTIFICATIONS_LEADERBOARD_RAID_MESSAGE_FRIENDS
    else
        messageStringId = SI_NOTIFICATIONS_LEADERBOARD_RAID_MESSAGE_GUILD_MEMBERS
    end
    return zo_strformat(messageStringId, raidName, raidScore)
end
function ZO_KeyboardLeaderboardRaidProvider:ShowMessageTooltip(data, control)
    InitializeTooltip(InformationTooltip, control, TOP, 0, 0)
    
    local numMembers = GetNumRaidScoreNotificationMembers(data.notificationId)
    local guildMembersSection = {}
    local friendsSection = {}
    for memberIndex = 1, numMembers do
        local displayName, characterName, isFriend, isGuildMember = GetRaidScoreNotificationMemberInfo(data.notificationId, memberIndex)
        if(isGuildMember) then
            table.insert(guildMembersSection, displayName)
        elseif(isFriend) then
            table.insert(friendsSection, displayName)
        end
    end
    if(#guildMembersSection > 0) then
        InformationTooltip:AddLine(GetString(SI_NOTIFICATIONS_LEADERBOARD_RAID_NOTIFICATION_HEADER_GUILD_MEMBERS))
        for _, guildMemberName in ipairs(guildMembersSection) do
            InformationTooltip:AddVerticalPadding(-9)
            InformationTooltip:AddLine(guildMemberName, "", ZO_NORMAL_TEXT:UnpackRGB())
        end
    end
    if(#friendsSection > 0) then
        InformationTooltip:AddLine(GetString(SI_NOTIFICATIONS_LEADERBOARD_RAID_NOTIFICATION_HEADER_FRIENDS))
        for _, friendName in ipairs(friendsSection) do
            InformationTooltip:AddVerticalPadding(-9)
            InformationTooltip:AddLine(friendName, "", ZO_NORMAL_TEXT:UnpackRGB())
        end
    end
end
function ZO_KeyboardLeaderboardRaidProvider:HideMessageTooltip()
    ClearTooltip(InformationTooltip)
end
--Collections Update Provider
-------------------------
local ZO_KeyboardCollectionsUpdateProvider = ZO_CollectionsUpdateProvider:Subclass()
function ZO_KeyboardCollectionsUpdateProvider:New(notificationManager)
    local provider = ZO_CollectionsUpdateProvider.New(self, notificationManager)
    return provider
end
function ZO_KeyboardCollectionsUpdateProvider:Accept(entryData)
    ZO_CollectionsUpdateProvider.Accept(self, entryData)
    local data = entryData.data
    COLLECTIONS_BOOK:BrowseToCollectible(data.collectibleIndex, data.categoryIndex, data.subcategoryIndex)
end
--Notification Manager
-------------------------
local ZO_KeyboardNotificationManager = ZO_NotificationManager:Subclass()
function ZO_KeyboardNotificationManager:New(control)
    local manager = ZO_NotificationManager.New(self, control)
    return manager
end
function ZO_KeyboardNotificationManager:InitializeNotificationList(control)
    self.sortFilterList = ZO_NotificationList:New(control)
    ZO_ScrollList_AddDataType(self.sortFilterList.list, NOTIFICATIONS_REQUEST_DATA, "ZO_NotificationsRequestRow", 50, function(control, data) self:SetupRequest(control, data) end)
    ZO_ScrollList_AddDataType(self.sortFilterList.list, NOTIFICATIONS_WAITING_DATA, "ZO_NotificationsWaitingRow", 50, function(control, data) self:SetupWaiting(control, data) end)
    ZO_ScrollList_AddDataType(self.sortFilterList.list, NOTIFICATIONS_LEADERBOARD_DATA, "ZO_NotificationsLeaderboardRow", 50, function(control, data) self:SetupTwoButtonRow(control, data) end)
    ZO_ScrollList_AddDataType(self.sortFilterList.list, NOTIFICATIONS_ALERT_DATA, "ZO_NotificationsAlertRow", 50, function(control, data) self:SetupAlert(control, data) end)
    ZO_ScrollList_AddDataType(self.sortFilterList.list, NOTIFICATIONS_COLLECTIBLE_DATA, "ZO_NotificationsCollectibleRow", 50, function(control, data) self:SetupRequest(control, data) end)
    ZO_ScrollList_EnableHighlight(self.sortFilterList.list, "ZO_ThinListHighlight")
    self.totalNumNotifications = 0
    self.eventNamespace = EVENT_NAMESPACE
    local collectionsProvider = ZO_KeyboardCollectionsUpdateProvider:New(self)
    self.collectionsProvider = collectionsProvider
    self.providers =
    {
        ZO_KeyboardFriendRequestProvider:New(self),
        ZO_KeyboardGuildInviteProvider:New(self),
        ZO_GuildMotDProvider:New(self),
        ZO_KeyboardCampaignQueueProvider:New(self),
        ZO_KeyboardResurrectProvider:New(self),
        ZO_KeyboardGroupInviteProvider:New(self),
        ZO_KeyboardTradeInviteProvider:New(self),
        ZO_KeyboardQuestShareProvider:New(self),
        ZO_KeyboardPledgeOfMaraProvider:New(self),
        ZO_KeyboardAgentChatRequestProvider:New(self),
        ZO_KeyboardLeaderboardRaidProvider:New(self),
        collectionsProvider,
    }
    self.sortFilterList:SetEmptyText(GetString(SI_NO_NOTIFICATIONS_MESSAGE))
    self.sortFilterList:SetAlternateRowBackgrounds(true)
    self.sortFilterList:RefreshData()
    NOTIFICATIONS_SCENE = ZO_Scene:New("notifications", SCENE_MANAGER)
    NOTIFICATIONS_SCENE:RegisterCallback("StateChange",  function(oldState, newState)
        if(newState == SCENE_SHOWING) then
            KEYBIND_STRIP:AddKeybindButtonGroup(self.keybindStripDescriptor)
        elseif(newState == SCENE_HIDING) then
            ClearMenu()
        elseif(newState == SCENE_HIDDEN) then
            KEYBIND_STRIP:RemoveKeybindButtonGroup(self.keybindStripDescriptor)
        end
    end)
end
function ZO_KeyboardNotificationManager:InitializeKeybindDescriptor()
    self.keybindStripDescriptor =
    {
        alignment = KEYBIND_STRIP_ALIGN_RIGHT,
        -- Decline Request
        {
            name = function()   
                local data = self:GetSelectedData()
                return data.declineText
            end,
            keybind = "UI_SHORTCUT_NEGATIVE",
            callback = function()
                local data = ZO_ScrollList_GetData(self:GetSelectedData())
                self:DeclineRequest(data, nil, NOTIFICATIONS_MENU_OPENED_FROM_KEYBIND)
            end,
            visible = function()
                local data = self:GetSelectedData()
                if( data and data.declineText) then
                    return true
                end
                return false
            end
        },
        -- Accept Request
        {
            name = function()
                local data = self:GetSelectedData()
                return data.acceptText
            end,
            keybind = "UI_SHORTCUT_PRIMARY",
            callback = function()
                local data = ZO_ScrollList_GetData(self:GetSelectedData())
                self:AcceptRequest(data)
            end,
            visible = function()
                local data = self:GetSelectedData()
                if(data and data.acceptText) then
                    return true
                end
                return false
            end
        },
    }
end
function ZO_KeyboardNotificationManager:ClearNotificationList()
    local scrollData = ZO_ScrollList_GetDataList(self.sortFilterList.list)
    ZO_ClearNumericallyIndexedTable(scrollData)
end
function ZO_KeyboardNotificationManager:AddDataEntry(dataType, data)
    local dataEntry = ZO_ScrollList_CreateDataEntry(dataType or REQUEST_DATA, data)
    local scrollData = ZO_ScrollList_GetDataList(self.sortFilterList.list)
    table.insert(scrollData, dataEntry)
end
function ZO_KeyboardNotificationManager:GetSelectedData()
    return self.sortFilterList.mouseOverRow
end
function ZO_KeyboardNotificationManager:FinishNotificationList()
    self.sortFilterList:RefreshFilters()
end
function ZO_KeyboardNotificationManager:RefreshVisible()
    self.sortFilterList:RefreshVisible()
end
function ZO_KeyboardNotificationManager:OnNumNotificationsChanged(totalNumNotifications)
    CHAT_SYSTEM:OnNumNotificationsChanged(totalNumNotifications)
end
function ZO_KeyboardNotificationManager:BuildEmptyList()
end
function ZO_KeyboardNotificationManager:SetupNote(control, data)
    local note = GetControl(control, "Note")
    if(data.note and data.note ~= "") then
        note:SetHidden(false)
    else
        note:SetHidden(true)
    end
end
function ZO_KeyboardNotificationManager:SetupBaseRow(control, data)
    ZO_SortFilterList.SetupRow(self.sortFilterList, control, data)
    local notificationType = data.notificationType
    control.notificationType = notificationType
    control.index = data.index
    GetControl(control, "Icon"):SetTexture(KEYBOARD_NOTIFICATION_ICONS[notificationType])
    GetControl(control, "Type"):SetText(zo_strformat(SI_NOTIFICATIONS_TYPE_FORMATTER, GetString("SI_NOTIFICATIONTYPE", notificationType)))
end
function ZO_KeyboardNotificationManager:SetupTwoButtonRow(control, data)
    self:SetupMessage(control:GetNamedChild("Message"), data)    
end
function ZO_KeyboardNotificationManager:SetupRequest(control, data)
    self:SetupMessage(control:GetNamedChild("Message"), data)
end
function ZO_KeyboardNotificationManager:SetupWaiting(control, data)
    local loading = GetControl(control, "Loading")
    loading:SetText(data.loadText)
    loading:Show()
end
function ZO_KeyboardNotificationManager:SetupAlert(control, data)
    self:SetupMessage(control:GetNamedChild("Message"), data)
end
--Local XML
function ZO_KeyboardNotificationManager:OnNotificationsChatButtonEnter(control)
    InitializeTooltip(InformationTooltip, control, TOPLEFT, 0, 0, BOTTOMRIGHT)
    local bindingText = ZO_Keybindings_GetHighestPriorityBindingStringFromAction("TOGGLE_NOTIFICATIONS", KEYBIND_TEXT_OPTIONS_FULL_NAME)
    SetTooltipText(InformationTooltip, zo_strformat(SI_NOTIFICATIONS_TOOLTIP_HEADER, bindingText or GetString(SI_ACTION_IS_NOT_BOUND)))
    InformationTooltip:AddVerticalPadding(10)
    if(self.totalNumNotifications > 0) then
        InformationTooltip:AddLine(zo_strformat(SI_NOTIFICATIONS_TOOLTIP_HAS_NOTIFICATIONS, self.totalNumNotifications), "", ZO_NORMAL_TEXT:UnpackRGB())
    else
        InformationTooltip:AddLine(GetString(SI_NOTIFICATIONS_TOOLTIP_NO_NOTIFICATIONS), "", ZO_NORMAL_TEXT:UnpackRGB())
    end
end
function ZO_KeyboardNotificationManager:OnNotificationsChatButtonExit()
    ClearTooltip(InformationTooltip)
end
function ZO_KeyboardNotificationManager:RowNote_OnMouseEnter(control)
    InitializeTooltip(InformationTooltip, control, BOTTOM, 0, 0)
    SetTooltipText(InformationTooltip, data.note)
    self.sortFilterList:EnterRow(control:GetParent())
end
function ZO_KeyboardNotificationManager:RowNote_OnMouseExit(control)
    ClearTooltip(InformationTooltip)
    self.sortFilterList:ExitRow(control:GetParent())
end
function ZO_KeyboardNotificationManager:Accept_OnClicked(control)
end
function ZO_KeyboardNotificationManager:Decline_OnClicked(control)
    self:DeclineRequest(data, button, MENU_OPENED_FROM_MOUSE)
end
function ZO_KeyboardNotificationManager:Message_OnMouseEnter(control)
    data.provider:ShowMessageTooltip(data, control)
end
function ZO_KeyboardNotificationManager:Message_OnMouseExit(control)
    data.provider:HideMessageTooltip(control)
end
--Global XML
    NOTIFICATIONS:RowNote_OnMouseEnter(control)
end
    NOTIFICATIONS:RowNote_OnMouseExit(control)
end
    NOTIFICATIONS.sortFilterList:Row_OnMouseEnter(control)
    KEYBIND_STRIP:UpdateKeybindButtonGroup(NOTIFICATIONS.keybindStripDescriptor)
end
    NOTIFICATIONS.sortFilterList:Row_OnMouseExit(control)
    KEYBIND_STRIP:UpdateKeybindButtonGroup(NOTIFICATIONS.keybindStripDescriptor)
end
    NOTIFICATIONS:Accept_OnClicked(control)
end
    NOTIFICATIONS:Decline_OnClicked(control)
end
    NOTIFICATIONS:Message_OnMouseEnter(control)
end
    NOTIFICATIONS:Message_OnMouseExit(control)
end
    NOTIFICATIONS = ZO_KeyboardNotificationManager:New(self)
end
function ZO_Notifications_ClearCollectibleNotificationsForCategory(categoryIndex, subcategoryIndex)
    NOTIFICATIONS.collectionsProvider:ClearNotificationsForCategory(categoryIndex, subcategoryIndex)
end