+ /// <summary>\r
+ /// Draws the list of current chat messages received by the local client.\r
+ /// </summary>\r
+ private void DrawChatInfo(SpriteBatch spriteBatch)\r
+ {\r
+ if (currentChat.Count > 0)\r
+ {\r
+ for (int y = 0; y < currentChat.Count; y++)\r
+ {\r
+ spriteBatch.DrawString(menuFont, currentChat.ElementAt(y).Sender + ": " + currentChat.ElementAt(y).Message\r
+ , new Vector2(400, 10 + y*15), Color.Blue, 0f, zero, .6f, SpriteEffects.None, 1f);\r
+ }\r
+\r
+ }\r
+ if(chatActive)\r
+ spriteBatch.DrawString(menuFont, chatMessage, new Vector2(400, 10 + 15*(currentChat.Count + 1)), Color.Green, 0f, zero, .6f, SpriteEffects.None, 1f);\r
+ }\r