Die Potato (or music), locken beim Zeichnen, Threads von Parse, Receiver und Sender laufen nun im Hintergrund

This commit is contained in:
2014-05-13 19:15:41 +02:00
parent c3088bb36a
commit f8c1993c9f
8 changed files with 22 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ namespace WorldOfPeacecraft
private ChatPanel ChatPanel;
private OnlinePlayerList OnlinePlayerList;
private Music m = new Music();
//private Music m = new Music();
public Gui ()
{
@@ -40,6 +40,13 @@ namespace WorldOfPeacecraft
Backend.StartThreads ();
}
protected override void OnPaint (PaintEventArgs e)
{
lock (Backend) {
base.OnPaint(e);
}
}
public void InitializeComponents ()
{
MapPanel.InitializeComponents ();
@@ -65,7 +72,7 @@ namespace WorldOfPeacecraft
this.ResumeLayout();
m.Playmusic ("overworld");
//m.Playmusic ("overworld");
}
protected override void OnClosing (System.ComponentModel.CancelEventArgs e)