Komplettumbau und Splashscreen sollte jetzt funktionieren (Muss noch getestet werden)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user