Skip to content

Commit

Permalink
#50
Browse files Browse the repository at this point in the history
  • Loading branch information
tym32167 committed Nov 18, 2016
1 parent 28b9f48 commit 04ff039
Showing 1 changed file with 1 addition and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ namespace Arma3BE.Client.Modules.ChatModule.Boxes
/// <summary>
/// Interaction logic for ColoredTextControl.xaml
/// </summary>
public partial class ColoredTextControl : UserControl
public partial class ColoredTextControl
{
private Paragraph _paragraph;



public static readonly DependencyProperty IsAutoScrollProperty =
DependencyProperty.Register("IsAutoScroll", typeof(Boolean), typeof(ColoredTextControl),
new FrameworkPropertyMetadata(false));
Expand Down Expand Up @@ -84,29 +82,6 @@ private void AppendText(Paragraph p, ScrollViewer scroll, ChatMessage message, s
scroll.ScrollToEnd();
}

//public void AppendText(ChatMessage message, string servername)
//{
// AppendText(_paragraph, message, servername);
//}

//private void AppendText(Paragraph p, ChatMessage message, string servername)
//{
// var text = string.Format("[{0}] [ {1:yyyy-MM-dd HH:mm:ss} ] {2}\n", servername, message.Date.UtcToLocalFromSettings(),
// message.Message);
// var color = ServerMonitorChatViewModel.GetMessageColor(message);
// var brush = new SolidColorBrush(color);
// var span = new Span { Foreground = brush };

// if (message.Type != ChatMessage.MessageType.RCon && message.IsImportantMessage)
// {
// span.FontWeight = FontWeights.Heavy;
// }

// span.Inlines.Add(text);
// p.Inlines.Add(span);
//}


public void AppendPlayerText(KeyValuePair<string, string> player, bool isIn)
{
var text = $"[ {DateTime.UtcNow.UtcToLocalFromSettings():HH:mm:ss} ] ";
Expand Down

0 comments on commit 04ff039

Please sign in to comment.