| | 1 | | using DCL; |
| | 2 | | using DCL.Interface; |
| | 3 | | using DCL.SettingsCommon; |
| | 4 | | using SocialFeaturesAnalytics; |
| | 5 | | using System; |
| | 6 | | using System.Collections; |
| | 7 | | using System.Collections.Generic; |
| | 8 | | using DCl.Social.Friends; |
| | 9 | | using DCL.Social.Friends; |
| | 10 | | using JetBrains.Annotations; |
| | 11 | | using UnityEngine; |
| | 12 | | using static DCL.SettingsCommon.GeneralSettings; |
| | 13 | |
|
| | 14 | | public class VoiceChatWindowController : IHUD |
| | 15 | | { |
| | 16 | | internal const string VOICE_CHAT_FEATURE_FLAG = "voice_chat"; |
| | 17 | | internal const string VOICE_CHAT_JOINED_ON_START_FEATURE_FLAG = "voice_chat_joined_on_start"; |
| | 18 | | internal const float MUTE_STATUS_UPDATE_INTERVAL = 0.3f; |
| | 19 | | internal const string TALKING_MESSAGE_YOU = "You"; |
| | 20 | | internal const string TALKING_MESSAGE_JUST_YOU_IN_THE_VOICE_CHAT = "No one else is here"; |
| | 21 | | internal const string TALKING_MESSAGE_NOBODY_TALKING = "Nobody is talking"; |
| | 22 | | internal const string TALKING_MESSAGE_SEVERAL_PEOPLE_TALKING = "Several people talking"; |
| | 23 | |
|
| 12 | 24 | | public IVoiceChatWindowComponentView VoiceChatWindowView => voiceChatWindowView; |
| 1 | 25 | | public IVoiceChatBarComponentView VoiceChatBarView => voiceChatBarView; |
| | 26 | |
|
| 39 | 27 | | private bool isVoiceChatFFEnabled => dataStore.featureFlags.flags.Get().IsFeatureEnabled(VOICE_CHAT_FEATURE_FLAG); |
| 0 | 28 | | private bool isVoiceChatJoinedOnStartFFEnabled => dataStore.featureFlags.flags.Get().IsFeatureEnabled(VOICE_CHAT_JOI |
| 2 | 29 | | internal BaseVariable<HashSet<string>> visibleTaskbarPanels => dataStore.HUDs.visibleTaskbarPanels; |
| 80 | 30 | | private UserProfile ownProfile => userProfileBridge.GetOwn(); |
| | 31 | |
|
| | 32 | | private IVoiceChatWindowComponentView voiceChatWindowView; |
| | 33 | | private IVoiceChatBarComponentView voiceChatBarView; |
| | 34 | | private IUserProfileBridge userProfileBridge; |
| | 35 | | private IFriendsController friendsController; |
| | 36 | | private ISocialAnalytics socialAnalytics; |
| | 37 | | private IMouseCatcher mouseCatcher; |
| | 38 | | private DataStore dataStore; |
| | 39 | | private Settings settings; |
| 39 | 40 | | internal HashSet<string> trackedUsersHashSet = new HashSet<string>(); |
| 39 | 41 | | internal readonly List<string> usersToMute = new List<string>(); |
| 39 | 42 | | internal readonly List<string> usersToUnmute = new List<string>(); |
| | 43 | | internal bool isOwnPLayerTalking = false; |
| | 44 | | private Coroutine updateMuteStatusRoutine = null; |
| | 45 | | internal bool isMuteAll = false; |
| | 46 | | internal bool isJoined = false; |
| | 47 | |
|
| 5 | 48 | | public bool IsVisible { get; private set; } |
| | 49 | | public event Action OnCloseView; |
| | 50 | |
|
| | 51 | | [UsedImplicitly] // by NSubstitute |
| 76 | 52 | | public VoiceChatWindowController() { } |
| | 53 | |
|
| 1 | 54 | | public VoiceChatWindowController( |
| | 55 | | IUserProfileBridge userProfileBridge, |
| | 56 | | IFriendsController friendsController, |
| | 57 | | ISocialAnalytics socialAnalytics, |
| | 58 | | DataStore dataStore, |
| | 59 | | Settings settings, |
| | 60 | | IMouseCatcher mouseCatcher) |
| | 61 | | { |
| 1 | 62 | | Initialize(userProfileBridge, friendsController, socialAnalytics, dataStore, settings, mouseCatcher); |
| 1 | 63 | | } |
| | 64 | |
|
| | 65 | | public void Initialize( |
| | 66 | | IUserProfileBridge userProfileBridge, |
| | 67 | | IFriendsController friendsController, |
| | 68 | | ISocialAnalytics socialAnalytics, |
| | 69 | | DataStore dataStore, |
| | 70 | | Settings settings, |
| | 71 | | IMouseCatcher mouseCatcher) |
| | 72 | | { |
| 39 | 73 | | this.userProfileBridge = userProfileBridge; |
| 39 | 74 | | this.friendsController = friendsController; |
| 39 | 75 | | this.socialAnalytics = socialAnalytics; |
| 39 | 76 | | this.dataStore = dataStore; |
| 39 | 77 | | this.settings = settings; |
| 39 | 78 | | this.mouseCatcher = mouseCatcher; |
| | 79 | |
|
| 39 | 80 | | if (!isVoiceChatFFEnabled) |
| 1 | 81 | | return; |
| | 82 | |
|
| 38 | 83 | | if(mouseCatcher != null) |
| 38 | 84 | | mouseCatcher.OnMouseLock += CloseView; |
| | 85 | |
|
| 38 | 86 | | voiceChatWindowView = CreateVoiceChatWindowView(); |
| 38 | 87 | | voiceChatWindowView.Hide(instant: true); |
| | 88 | |
|
| 38 | 89 | | voiceChatWindowView.OnClose += CloseView; |
| 38 | 90 | | voiceChatWindowView.OnJoinVoiceChat += RequestJoinVoiceChat; |
| 38 | 91 | | voiceChatWindowView.OnGoToCrowd += GoToCrowd; |
| 38 | 92 | | voiceChatWindowView.OnMuteAll += OnMuteAllToggled; |
| 38 | 93 | | voiceChatWindowView.OnMuteUser += MuteUser; |
| 38 | 94 | | voiceChatWindowView.OnAllowUsersFilterChange += ChangeAllowUsersFilter; |
| 38 | 95 | | voiceChatWindowView.SetNumberOfPlayers(0); |
| | 96 | |
|
| 38 | 97 | | voiceChatBarView = CreateVoiceChatBatView(); |
| 38 | 98 | | voiceChatBarView.SetAsJoined(false); |
| 38 | 99 | | voiceChatBarView.OnJoinVoiceChat += RequestJoinVoiceChat; |
| | 100 | |
|
| 38 | 101 | | dataStore.voiceChat.isJoinedToVoiceChat.OnChange += OnVoiceChatStatusUpdated; |
| 38 | 102 | | OnVoiceChatStatusUpdated(dataStore.voiceChat.isJoinedToVoiceChat.Get(), false); |
| | 103 | |
|
| 38 | 104 | | dataStore.player.otherPlayers.OnAdded += OnOtherPlayersStatusAdded; |
| 38 | 105 | | dataStore.player.otherPlayers.OnRemoved += OnOtherPlayerStatusRemoved; |
| 38 | 106 | | ownProfile.OnUpdate += OnUserProfileUpdated; |
| 38 | 107 | | friendsController.OnUpdateFriendship += OnUpdateFriendship; |
| | 108 | |
|
| 38 | 109 | | settings.generalSettings.OnChanged += OnSettingsChanged; |
| 38 | 110 | | SetAllowUsersOption(settings.generalSettings.Data.voiceChatAllow); |
| | 111 | |
|
| 38 | 112 | | CommonScriptableObjects.rendererState.OnChange += RendererState_OnChange; |
| 38 | 113 | | RendererState_OnChange(CommonScriptableObjects.rendererState.Get(), false); |
| 38 | 114 | | } |
| | 115 | |
|
| | 116 | | public void SetVisibility(bool visible) |
| | 117 | | { |
| 4 | 118 | | if (IsVisible == visible) |
| 2 | 119 | | return; |
| | 120 | |
|
| 2 | 121 | | if (voiceChatWindowView == null) |
| 1 | 122 | | return; |
| | 123 | |
|
| 1 | 124 | | IsVisible = visible; |
| | 125 | |
|
| 1 | 126 | | SetVisiblePanelList(visible); |
| 1 | 127 | | if (visible) |
| 1 | 128 | | voiceChatWindowView.Show(); |
| | 129 | | else |
| 0 | 130 | | voiceChatWindowView.Hide(); |
| 0 | 131 | | } |
| | 132 | |
|
| | 133 | | private void SetVisiblePanelList(bool visible) |
| | 134 | | { |
| 1 | 135 | | HashSet<string> newSet = visibleTaskbarPanels.Get(); |
| 1 | 136 | | if (visible) |
| 1 | 137 | | newSet.Add("VoiceChatWindow"); |
| | 138 | | else |
| 0 | 139 | | newSet.Remove("VoiceChatWindow"); |
| | 140 | |
|
| 1 | 141 | | visibleTaskbarPanels.Set(newSet, true); |
| 1 | 142 | | } |
| | 143 | |
|
| | 144 | | public void SetUsersMuted(string[] usersId, bool isMuted) |
| | 145 | | { |
| 16 | 146 | | for (int i = 0; i < usersId.Length; i++) |
| | 147 | | { |
| 6 | 148 | | voiceChatWindowView.SetPlayerMuted(usersId[i], isMuted); |
| | 149 | | } |
| 2 | 150 | | } |
| | 151 | |
|
| | 152 | | public void SetUserRecording(string userId, bool isRecording) |
| | 153 | | { |
| 2 | 154 | | voiceChatWindowView.SetPlayerRecording(userId, isRecording); |
| 2 | 155 | | SetWhichPlayerIsTalking(); |
| 2 | 156 | | } |
| | 157 | |
|
| | 158 | | public void SetVoiceChatRecording(bool recording) |
| | 159 | | { |
| 2 | 160 | | voiceChatBarView.PlayVoiceChatRecordingAnimation(recording); |
| 2 | 161 | | isOwnPLayerTalking = recording; |
| 2 | 162 | | SetWhichPlayerIsTalking(); |
| 2 | 163 | | } |
| | 164 | |
|
| | 165 | | public void SetVoiceChatEnabledByScene(bool enabled) |
| | 166 | | { |
| 2 | 167 | | if (voiceChatBarView == null) |
| 0 | 168 | | return; |
| | 169 | |
|
| 2 | 170 | | voiceChatBarView.SetVoiceChatEnabledByScene(enabled); |
| 2 | 171 | | } |
| | 172 | |
|
| | 173 | | public void Dispose() |
| | 174 | | { |
| 39 | 175 | | ReportMuteStatuses(); |
| | 176 | |
|
| 39 | 177 | | if (updateMuteStatusRoutine != null) |
| 2 | 178 | | CoroutineStarter.Stop(updateMuteStatusRoutine); |
| | 179 | |
|
| 39 | 180 | | if (voiceChatWindowView != null) |
| | 181 | | { |
| 38 | 182 | | voiceChatWindowView.OnClose -= CloseView; |
| 38 | 183 | | voiceChatWindowView.OnJoinVoiceChat -= RequestJoinVoiceChat; |
| 38 | 184 | | voiceChatWindowView.OnGoToCrowd -= GoToCrowd; |
| 38 | 185 | | voiceChatWindowView.OnMuteAll -= OnMuteAllToggled; |
| 38 | 186 | | voiceChatWindowView.OnMuteUser -= MuteUser; |
| 38 | 187 | | voiceChatWindowView.OnAllowUsersFilterChange -= ChangeAllowUsersFilter; |
| | 188 | | } |
| | 189 | |
|
| 39 | 190 | | if (voiceChatBarView != null) |
| 38 | 191 | | voiceChatBarView.OnJoinVoiceChat -= RequestJoinVoiceChat; |
| | 192 | |
|
| 39 | 193 | | dataStore.voiceChat.isJoinedToVoiceChat.OnChange -= OnVoiceChatStatusUpdated; |
| 39 | 194 | | dataStore.player.otherPlayers.OnAdded -= OnOtherPlayersStatusAdded; |
| 39 | 195 | | dataStore.player.otherPlayers.OnRemoved -= OnOtherPlayerStatusRemoved; |
| 39 | 196 | | ownProfile.OnUpdate -= OnUserProfileUpdated; |
| 39 | 197 | | friendsController.OnUpdateFriendship -= OnUpdateFriendship; |
| 39 | 198 | | settings.generalSettings.OnChanged -= OnSettingsChanged; |
| 39 | 199 | | CommonScriptableObjects.rendererState.OnChange -= RendererState_OnChange; |
| 39 | 200 | | } |
| | 201 | |
|
| | 202 | | internal void CloseView() |
| | 203 | | { |
| 1 | 204 | | OnCloseView?.Invoke(); |
| 1 | 205 | | SetVisibility(false); |
| 1 | 206 | | } |
| | 207 | |
|
| | 208 | | internal void RequestJoinVoiceChat(bool isJoined) |
| | 209 | | { |
| 2 | 210 | | if (isJoined) |
| | 211 | | { |
| 1 | 212 | | WebInterface.JoinVoiceChat(); |
| | 213 | | } |
| | 214 | | else |
| | 215 | | { |
| 1 | 216 | | if (dataStore.voiceChat.isRecording.Get().Key) |
| 1 | 217 | | dataStore.voiceChat.isRecording.Set(new KeyValuePair<bool, bool>(false, false), true); |
| | 218 | |
|
| 1 | 219 | | WebInterface.LeaveVoiceChat(); |
| | 220 | | } |
| 1 | 221 | | } |
| | 222 | |
|
| | 223 | | internal void OnVoiceChatStatusUpdated(bool isJoined, bool previous) |
| | 224 | | { |
| 40 | 225 | | voiceChatWindowView.SetAsJoined(isJoined); |
| 40 | 226 | | voiceChatBarView.SetAsJoined(isJoined); |
| | 227 | |
|
| 40 | 228 | | if (isJoined) |
| | 229 | | { |
| 1 | 230 | | socialAnalytics.SendVoiceChannelConnection(voiceChatWindowView.numberOfPlayers); |
| 1 | 231 | | SetWhichPlayerIsTalking(); |
| | 232 | | } |
| | 233 | | else |
| | 234 | | { |
| 39 | 235 | | socialAnalytics.SendVoiceChannelDisconnection(); |
| 39 | 236 | | isOwnPLayerTalking = false; |
| | 237 | |
|
| 39 | 238 | | if (dataStore.voiceChat.isRecording.Get().Key) |
| 3 | 239 | | dataStore.voiceChat.isRecording.Set(new KeyValuePair<bool, bool>(false, false), true); |
| | 240 | | } |
| 39 | 241 | | } |
| | 242 | |
|
| | 243 | | internal void GoToCrowd() |
| | 244 | | { |
| | 245 | | // Requested temporally by product team since the "go to crowd" approach was always redirecting to the casino. |
| | 246 | | //DCL.Environment.i.world.teleportController.GoToCrowd(); |
| 0 | 247 | | DCL.Environment.i.world.teleportController.Teleport(0, 0); |
| 0 | 248 | | } |
| | 249 | |
|
| | 250 | | internal void OnOtherPlayersStatusAdded(string userId, Player player) |
| | 251 | | { |
| 1 | 252 | | var otherProfile = userProfileBridge.Get(player.id); |
| | 253 | |
|
| 1 | 254 | | if (otherProfile == null) |
| 0 | 255 | | return; |
| | 256 | |
|
| 1 | 257 | | voiceChatWindowView.AddOrUpdatePlayer(otherProfile); |
| | 258 | |
|
| 1 | 259 | | if (!trackedUsersHashSet.Contains(userId)) |
| | 260 | | { |
| 1 | 261 | | trackedUsersHashSet.Add(userId); |
| | 262 | |
|
| 1 | 263 | | bool isMuted = ownProfile.muted.Contains(userId); |
| 1 | 264 | | voiceChatWindowView.SetPlayerMuted(userId, isMuted); |
| 1 | 265 | | voiceChatWindowView.SetPlayerBlocked(userId, ownProfile.blocked != null ? ownProfile.blocked.Contains(userId |
| 1 | 266 | | voiceChatWindowView.SetPlayerAsFriend(userId, friendsController.ContainsStatus(userId, FriendshipStatus.FRIE |
| 1 | 267 | | voiceChatWindowView.SetPlayerAsJoined(userId, dataStore.voiceChat.isJoinedToVoiceChat.Get()); |
| | 268 | |
|
| 1 | 269 | | if (isMuteAll && !isMuted) |
| 0 | 270 | | MuteUser(userId, true); |
| | 271 | | } |
| | 272 | |
|
| 1 | 273 | | SetWhichPlayerIsTalking(); |
| 1 | 274 | | } |
| | 275 | |
|
| | 276 | | internal void OnOtherPlayerStatusRemoved(string userId, Player player) |
| | 277 | | { |
| 1 | 278 | | if (trackedUsersHashSet.Contains(userId)) |
| 0 | 279 | | trackedUsersHashSet.Remove(userId); |
| | 280 | |
|
| 1 | 281 | | voiceChatWindowView.RemoveUser(userId); |
| 1 | 282 | | SetWhichPlayerIsTalking(); |
| 1 | 283 | | } |
| | 284 | |
|
| | 285 | | internal void OnMuteAllToggled(bool isMute) |
| | 286 | | { |
| 2 | 287 | | isMuteAll = isMute; |
| | 288 | |
|
| 2 | 289 | | if (!dataStore.voiceChat.isJoinedToVoiceChat.Get()) |
| 2 | 290 | | return; |
| | 291 | |
|
| 0 | 292 | | MuteAll(isMute); |
| 0 | 293 | | } |
| | 294 | |
|
| | 295 | | internal void MuteAll(bool isMute) |
| | 296 | | { |
| 2 | 297 | | isMuteAll = isMute; |
| | 298 | |
|
| 2 | 299 | | if (isMute) |
| 1 | 300 | | usersToUnmute.Clear(); |
| | 301 | | else |
| 1 | 302 | | usersToMute.Clear(); |
| | 303 | |
|
| 2 | 304 | | using (var iterator = trackedUsersHashSet.GetEnumerator()) |
| | 305 | | { |
| 2 | 306 | | while (iterator.MoveNext()) |
| | 307 | | { |
| 0 | 308 | | MuteUser(iterator.Current, isMute); |
| | 309 | | } |
| 2 | 310 | | } |
| 2 | 311 | | } |
| | 312 | |
|
| | 313 | | internal void MuteUser(string userId, bool isMuted) |
| | 314 | | { |
| 2 | 315 | | var list = isMuted ? usersToMute : usersToUnmute; |
| 2 | 316 | | list.Add(userId); |
| | 317 | |
|
| 2 | 318 | | if (updateMuteStatusRoutine == null) |
| 2 | 319 | | updateMuteStatusRoutine = CoroutineStarter.Start(MuteStateUpdateRoutine()); |
| | 320 | |
|
| 2 | 321 | | if (isMuted) |
| 1 | 322 | | socialAnalytics.SendPlayerMuted(userId); |
| | 323 | | else |
| 1 | 324 | | socialAnalytics.SendPlayerUnmuted(userId); |
| 1 | 325 | | } |
| | 326 | |
|
| | 327 | | internal IEnumerator MuteStateUpdateRoutine() |
| | 328 | | { |
| 2 | 329 | | yield return WaitForSecondsCache.Get(MUTE_STATUS_UPDATE_INTERVAL); |
| 0 | 330 | | ReportMuteStatuses(); |
| 0 | 331 | | updateMuteStatusRoutine = null; |
| 0 | 332 | | } |
| | 333 | |
|
| | 334 | | internal void ReportMuteStatuses() |
| | 335 | | { |
| 39 | 336 | | if (usersToUnmute.Count > 0) |
| 2 | 337 | | WebInterface.SetMuteUsers(usersToUnmute.ToArray(), false); |
| | 338 | |
|
| 39 | 339 | | if (usersToMute.Count > 0) |
| 2 | 340 | | WebInterface.SetMuteUsers(usersToMute.ToArray(), true); |
| | 341 | |
|
| 39 | 342 | | usersToUnmute.Clear(); |
| 39 | 343 | | usersToMute.Clear(); |
| 39 | 344 | | } |
| | 345 | |
|
| | 346 | | internal void ChangeAllowUsersFilter(string optionId) |
| | 347 | | { |
| 3 | 348 | | var newSettings = settings.generalSettings.Data; |
| | 349 | |
|
| 3 | 350 | | if (optionId == VoiceChatAllow.ALL_USERS.ToString()) |
| 1 | 351 | | newSettings.voiceChatAllow = VoiceChatAllow.ALL_USERS; |
| 2 | 352 | | else if (optionId == VoiceChatAllow.VERIFIED_ONLY.ToString()) |
| 1 | 353 | | newSettings.voiceChatAllow = VoiceChatAllow.VERIFIED_ONLY; |
| 1 | 354 | | else if (optionId == VoiceChatAllow.FRIENDS_ONLY.ToString()) |
| 1 | 355 | | newSettings.voiceChatAllow = VoiceChatAllow.FRIENDS_ONLY; |
| | 356 | |
|
| 3 | 357 | | settings.generalSettings.Apply(newSettings); |
| 3 | 358 | | } |
| | 359 | |
|
| | 360 | | internal void OnUserProfileUpdated(UserProfile profile) |
| | 361 | | { |
| 1 | 362 | | using (var iterator = trackedUsersHashSet.GetEnumerator()) |
| | 363 | | { |
| 2 | 364 | | while (iterator.MoveNext()) |
| | 365 | | { |
| 1 | 366 | | voiceChatWindowView.SetPlayerBlocked(iterator.Current, profile.blocked != null ? profile.blocked.Contain |
| | 367 | | } |
| 1 | 368 | | } |
| 1 | 369 | | } |
| | 370 | |
|
| 4 | 371 | | internal void OnUpdateFriendship(string userId, FriendshipAction action) { voiceChatWindowView.SetPlayerAsFriend(use |
| | 372 | |
|
| | 373 | | internal void OnSettingsChanged(GeneralSettings settings) |
| | 374 | | { |
| 5 | 375 | | SetAllowUsersOption(settings.voiceChatAllow); |
| 5 | 376 | | socialAnalytics.SendVoiceChatPreferencesChanged(settings.voiceChatAllow); |
| 5 | 377 | | } |
| | 378 | |
|
| | 379 | | private void SetAllowUsersOption(VoiceChatAllow option) |
| | 380 | | { |
| | 381 | | switch (option) |
| | 382 | | { |
| | 383 | | case VoiceChatAllow.ALL_USERS: |
| 9 | 384 | | voiceChatWindowView.SelectAllowUsersOption(0); |
| 9 | 385 | | break; |
| | 386 | | case VoiceChatAllow.VERIFIED_ONLY: |
| 31 | 387 | | voiceChatWindowView.SelectAllowUsersOption(1); |
| 31 | 388 | | break; |
| | 389 | | case VoiceChatAllow.FRIENDS_ONLY: |
| 3 | 390 | | voiceChatWindowView.SelectAllowUsersOption(2); |
| | 391 | | break; |
| | 392 | | } |
| 3 | 393 | | } |
| | 394 | |
|
| | 395 | | internal void RendererState_OnChange(bool current, bool previous) |
| | 396 | | { |
| 38 | 397 | | if (!current) |
| 38 | 398 | | return; |
| | 399 | |
|
| 0 | 400 | | CommonScriptableObjects.rendererState.OnChange -= RendererState_OnChange; |
| | 401 | |
|
| 0 | 402 | | RequestJoinVoiceChat(isVoiceChatJoinedOnStartFFEnabled); |
| 0 | 403 | | } |
| | 404 | |
|
| | 405 | | internal void SetWhichPlayerIsTalking() |
| | 406 | | { |
| 12 | 407 | | if (isOwnPLayerTalking) |
| 3 | 408 | | voiceChatBarView.SetTalkingMessage(true, TALKING_MESSAGE_YOU); |
| 9 | 409 | | else if (voiceChatWindowView.numberOfPlayers == 0) |
| 6 | 410 | | voiceChatBarView.SetTalkingMessage(false, TALKING_MESSAGE_JUST_YOU_IN_THE_VOICE_CHAT); |
| 3 | 411 | | else if (voiceChatWindowView.numberOfPlayersTalking == 0) |
| 1 | 412 | | voiceChatBarView.SetTalkingMessage(false, TALKING_MESSAGE_NOBODY_TALKING); |
| 2 | 413 | | else if (voiceChatWindowView.numberOfPlayersTalking == 1) |
| | 414 | | { |
| 1 | 415 | | UserProfile userProfile = userProfileBridge.Get(voiceChatWindowView.GetUserTalkingByIndex(0)); |
| 1 | 416 | | voiceChatBarView.SetTalkingMessage(true, userProfile != null ? userProfile.userName : voiceChatWindowView.Ge |
| | 417 | | } |
| | 418 | | else |
| 1 | 419 | | voiceChatBarView.SetTalkingMessage(true, TALKING_MESSAGE_SEVERAL_PEOPLE_TALKING); |
| 1 | 420 | | } |
| | 421 | |
|
| 0 | 422 | | protected internal virtual IVoiceChatWindowComponentView CreateVoiceChatWindowView() => VoiceChatWindowComponentView |
| | 423 | |
|
| 0 | 424 | | protected internal virtual IVoiceChatBarComponentView CreateVoiceChatBatView() => VoiceChatBarComponentView.Create() |
| | 425 | |
|
| 0 | 426 | | protected internal virtual IVoiceChatPlayerComponentView CreateVoiceChatPlayerView() => VoiceChatPlayerComponentView |
| | 427 | | } |