Back to Home

ESO Lua File v101041

pregameandingame/globals/presence.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
local PresenceEvents = "PresenceEvents"
local function UpdateInformation()
end
local function UpdateName()
end
local function OnPlayerActivated()
    UpdateName()
end
local platform = GetUIPlatform()
if platform ~= UI_PLATFORM_PC then
    EVENT_MANAGER:RegisterForEvent(PresenceEvents, EVENT_PLAYER_ACTIVATED, OnPlayerActivated)
    EVENT_MANAGER:RegisterForEvent(PresenceEvents, EVENT_LEVEL_UPDATE, UpdateInformation)
    EVENT_MANAGER:RegisterForEvent(PresenceEvents, EVENT_CHAMPION_POINT_UPDATE, UpdateInformation)
    EVENT_MANAGER:RegisterForEvent(PresenceEvents, EVENT_ZONE_UPDATE, UpdateInformation)
end