Back to Home

ESO Lua File v101038

ingame/voicechat/console/zo_voicechathud_gamepad.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
--------------------------------------------------------------------------------
-- VoiceChat HUD Gamepad
-- In-game version of the Voice Chat HUD.
--------------------------------------------------------------------------------
ZO_VoiceChatHUD_Gamepad = {}
local FADE_MS = 200
function ZO_VoiceChatHUD_Gamepad:RegisterForProgressBarEvents()
    local function OnPlayerProgressBarShowing()
        self.listFade:FadeOut(0, FADE_MS)
    end
    local function OnPlayerProgressBarHiding()
        self.listFade:FadeIn(0, FADE_MS)
    end
    CALLBACK_MANAGER:RegisterCallback("PlayerProgressBarFadingIn", OnPlayerProgressBarShowing())
    CALLBACK_MANAGER:RegisterCallback("PlayerProgressBarFadingOut", OnPlayerProgressBarHiding())
end
--XML Calls
    zo_mixin(control, ZO_VoiceChatHUD, ZO_VoiceChatHUD_Gamepad)
    
    control.listFade = ZO_AlphaAnimation:New(control.speakerList)
    
    VOICE_CHAT_HUD_GAMEPAD = control
end
     VOICE_CHAT_HUD_GAMEPAD:Update()
end