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

@@ -12,9 +12,6 @@ namespace WorldOfPeacecraft
public OnlinePlayerList(IBackend backend)
{
this.Backend = backend;
SetStyle (ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true);
Font = new Font(Font, FontStyle.Bold);
PlayerOnlineImage = Image.FromFile("textures/playerOnline.png");
}
protected override void OnPaint (PaintEventArgs e)
@@ -32,5 +29,14 @@ namespace WorldOfPeacecraft
count++;
}
}
public void LoadResources(){
Font = new Font(Font, FontStyle.Bold);
PlayerOnlineImage = Image.FromFile("textures/playerOnline.png");
}
public void InitializeComponents(){
SetStyle (ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true);
}
}
}