Komplettumbau und Splashscreen sollte jetzt funktionieren (Muss noch getestet werden)

This commit is contained in:
Wafa Sadri
2014-05-13 18:48:51 +02:00
parent 810e69e759
commit c3088bb36a
10 changed files with 121 additions and 59 deletions

View File

@@ -15,9 +15,6 @@ namespace WorldOfPeacecraft
ChatInput = new ChatInputBox ();
ChatInput.ChatMessageSubmitted += OnChatMessageSent;
ChatOutput = new ChatOutputBox (backend);
this.Controls.Add (ChatInput);
this.Controls.Add (ChatOutput);
}
protected override void OnLayout (LayoutEventArgs levent)
@@ -36,8 +33,9 @@ namespace WorldOfPeacecraft
{
if (message.StartsWith ("/")) {
string command = message.Substring (1);
Backend.SendCommand(command);
} else {
Backend.SendCommand (command);
}
else {
Backend.SendChatMessage(message);
}
// TODO Move focus to board?
@@ -47,5 +45,11 @@ namespace WorldOfPeacecraft
{
ChatOutput.UpdateData ();
}
public void InitializeComponents(){
ChatOutput.InitializeComponents ();
this.Controls.Add (ChatInput);
this.Controls.Add (ChatOutput);
}
}
}