public void NotifyPrivateMessageRecipientNotFound(string recipientName)
        {
            var whichTab = _chatRepository.PMTarget1.ToLower() == recipientName.ToLower()
                ? new Optional <ChatTab>(ChatTab.Private1)
                : _chatRepository.PMTarget2.ToLower() == recipientName.ToLower()
                    ? new Optional <ChatTab>(ChatTab.Private2)
                    : Optional <ChatTab> .Empty;

            if (whichTab.HasValue)
            {
                if (whichTab == ChatTab.Private1)
                {
                    _chatRepository.PMTarget1 = string.Empty;
                }
                else if (whichTab == ChatTab.Private2)
                {
                    _chatRepository.PMTarget2 = string.Empty;
                }

                _chatRepository.AllChat[whichTab].Clear();

                var chatPanel = _hudControlProvider.GetComponent <ChatPanel>(HudControlIdentifier.ChatPanel);
                chatPanel.ClosePMTab(whichTab);
            }
        }
Exemple #2
0
        private void StopAllAnimations()
        {
            var characterAnimator = _hudControlProvider.GetComponent <ICharacterAnimator>(HudControlIdentifier.CharacterAnimator);

            characterAnimator.StopAllOtherCharacterAnimations();

            var npcAnimator = _hudControlProvider.GetComponent <INPCAnimator>(HudControlIdentifier.NPCAnimator);

            npcAnimator.StopAllAnimations();
        }
 private ChatTextBox GetChatTextBox()
 {
     return(_hudControlProvider.GetComponent <ChatTextBox>(HudControlIdentifier.ChatTextBox));
 }