Example #1
0
        public ChatBubble(string message,
                          bool isGroupChat,
                          IHaveChatBubble referenceRenderer,
                          IChatBubbleTextureProvider chatBubbleTextureProvider)
        {
            _isGroupChat               = isGroupChat;
            _referenceRenderer         = referenceRenderer;
            _chatBubbleTextureProvider = chatBubbleTextureProvider;

            _textLabel = new XNALabel(Constants.FontSize08pt5)
            {
                Visible   = true,
                TextWidth = 165,
                TextAlign = LabelAlignment.MiddleCenter,
                ForeColor = Color.Black,
                AutoSize  = true,
                Text      = message
            };
            _textLabel.Initialize(); //todo: figure out if this needs to be removed from game components

            _drawLocation = Vector2.Zero;
            _startTime    = DateTime.Now;

            SetLabelDrawPosition();
        }
Example #2
0
 public ChatBubble(string message,
                   IHaveChatBubble referenceRenderer,
                   IChatBubbleTextureProvider chatBubbleTextureProvider)
     : this(message, false, referenceRenderer, chatBubbleTextureProvider)
 {
 }