Die Potato (or music), locken beim Zeichnen, Threads von Parse, Receiver und Sender laufen nun im Hintergrund
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user