From 6fc2caa10be2b01a624a34ecbbfe71296c2a8ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Wed, 14 May 2014 22:48:58 +0200 Subject: [PATCH] Splashscreen hat jetzt keinen Rahmen mehr, Fenster werden beim start zentriert --- src/Gui/Gui.cs | 1 + src/Gui/Splashscreen.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/Gui/Gui.cs b/src/Gui/Gui.cs index 69cde60..40a4a70 100644 --- a/src/Gui/Gui.cs +++ b/src/Gui/Gui.cs @@ -72,6 +72,7 @@ namespace WorldOfPeacecraft this.Controls.Add (OnlinePlayerList); this.Controls.Add (MapPanel); this.Controls.Add (ChatPanel); + this.CenterToScreen (); this.ResumeLayout(); loaded = true; diff --git a/src/Gui/Splashscreen.cs b/src/Gui/Splashscreen.cs index 70df965..576ae07 100644 --- a/src/Gui/Splashscreen.cs +++ b/src/Gui/Splashscreen.cs @@ -25,6 +25,8 @@ namespace WorldOfPeacecraft Thread t = new Thread (ThreadEntry); t.Start (); this.SetClientSizeCore (450, 150); + this.FormBorderStyle = FormBorderStyle.None; + this.CenterToScreen (); Logo = Image.FromFile (ImagesFolder + "splashscreen.png"); //m.Playmusic ("splashscreen"); }