Chatnachrichten werden jetzt angezeigt

This commit is contained in:
2014-05-01 20:30:33 +02:00
parent 8cada1d5ce
commit 30579e1488
9 changed files with 107 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ namespace WorldOfPeacecraft
public class ChatPanel : Panel
{
private ChatInputBox ChatInput;
private TextBox ChatOutput;
private ChatOutputBox ChatOutput;
private IBackend Backend;
public ChatPanel (IBackend backend)
@@ -14,9 +14,7 @@ namespace WorldOfPeacecraft
Backend = backend;
ChatInput = new ChatInputBox ();
ChatInput.ChatMessageSubmitted += OnChatMessageSent;
ChatOutput = new TextBox ();
ChatOutput.ReadOnly = true;
ChatOutput.Multiline = true;
ChatOutput = new ChatOutputBox (backend);
this.Controls.Add (ChatInput);
this.Controls.Add (ChatOutput);
@@ -42,5 +40,10 @@ namespace WorldOfPeacecraft
}
// TODO Move focus to board?
}
public void UpdateData()
{
ChatOutput.UpdateData ();
}
}
}