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 |
----------------------------------------------------------------------------------------
-- Voice Chat Social Options Gamepad
-- Class for displaying voice chat related social options for a voice chat
-- participant. Registers social keybinds with scenes that display it.
----------------------------------------------------------------------------------------
return object
end
end
return
end
end
return entry
end
-- ZO_SocialOptionsDialogGamepad Overrides
local alliance = nil
if channelType == VOICE_CHANNEL_GUILD then
if memberIndex then
end
else
--Channel is Area or Group, so the alliance for this character must be the same
end
local socialData = {
displayName = displayName ,
alliance = alliance ,
voiceChannelType = channelType ,
}
end
self : AddOptionTemplate ( groupId , ZO_SocialOptionsDialogGamepad . BuildInviteToGroupOption , function ( ) return self . socialData . voiceChannelType ~= VOICE_CHANNEL_GROUP end )
end
end
self : AddOptionTemplate ( groupId , BuildTravelToGuildPlayerOption , function ( ) return self . socialData . voiceChannelType == VOICE_CHANNEL_GUILD end )
self : AddOptionTemplate ( groupId , BuildTravelToGroupPlayerOption , function ( ) return self . socialData . voiceChannelType == VOICE_CHANNEL_GROUP end )
return guildId ~= 0
end
for i = 1 , MAX_GUILDS do
self : AddOptionTemplate ( groupId , function ( ) return self : BuildInviteToGuildOption ( i ) end , function ( ) return ShouldAddInviteToGuildOption ( i ) end )
end
self : AddOptionTemplate ( groupId , ZO_SocialOptionsDialogGamepad . BuildAddFriendOption , ZO_SocialOptionsDialogGamepad . ShouldAddFriendOption )
end
----------------------------------------------------------------------------------------
-- Voice Chat Gamepad
-- Manages creation of voice chat related scenes and objects.
----------------------------------------------------------------------------------------
return object
end
GAMEPAD_VOICECHAT_PARTICIPANTS_SCENE = ZO_Scene : New ( "gamepad_voice_chat_participants" , SCENE_MANAGER )
VOICE_CHAT_CHANNELS_GAMEPAD = ZO_VoiceChatChannelsGamepad : New ( self . control : GetNamedChild ( "Channels" ) )
VOICE_CHAT_PARTICIPANTS_GAMEPAD = ZO_VoiceChatParticipantsGamepad : New ( self . control : GetNamedChild ( "Participants" ) )
VOICE_CHAT_SOCIAL_OPTIONS = ZO_VoiceChatSocialOptions_Gamepad : New ( self . control : GetNamedChild ( "SocialOptions" ) )
end
--Area is left and rejoined when zoning, but we don't want to play a second alert when this happens. To prevent this,
--flag when it becomes unavailable and is the desired channel, and skip showing the alert later on if it's true.
return
end
local channelType = channelData . channelType
return
end
--Display an alert if not on a Voice Chat menu
local soundId = SOUNDS . VOICE_CHAT_ALERT_CHANNEL_MADE_ACTIVE
end
end
if channelData . channelType == VOICE_CHANNEL_AREA and VOICE_CHAT_MANAGER : GetDesiredActiveChannelType ( ) == VOICE_CHANNEL_AREA then
end
end
self . control : RegisterForEvent ( EVENT_VOICE_TRANSMIT_CHANNEL_CHANGED , function ( eventCode , ... ) OnVoiceTransmitChannelChanged ( ... ) end )
self . control : RegisterForEvent ( EVENT_VOICE_CHANNEL_UNAVAILABLE , function ( eventCode , ... ) OnVoiceChannelUnavailable ( ... ) end )
end
-- XML Calls
end |