From d79d32590ab190673c4efd3322d7a9c2e33d07c8 Mon Sep 17 00:00:00 2001 From: ShiraZull HP Date: Wed, 13 Nov 2019 22:55:06 +0100 Subject: [PATCH] Loop de luup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lööp --- PartiAppen/PartiAppen/MenuManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PartiAppen/PartiAppen/MenuManager.cs b/PartiAppen/PartiAppen/MenuManager.cs index ee6984d..4983d6f 100644 --- a/PartiAppen/PartiAppen/MenuManager.cs +++ b/PartiAppen/PartiAppen/MenuManager.cs @@ -81,8 +81,8 @@ public void LoadMenu(ContentManager content) // Logo menu.Pages[(int)Menues.Menu].AddImage(new Image(logo, logoRect)); // circle around logo - int circleSize = 590; - menu.Pages[(int)Menues.Menu].AdvancedImages.Add(new AdvancedImage(circle, new Rectangle(new Point((int)(logoRect.Location.X * 1.5f), (int)(logoRect.Location.Y * 1.5f)), new Point(circleSize)), logoBlue, 0f, new Vector2(circleSize /2f))); + int circleSize = (circle.Height + circle.Width)/2; + menu.Pages[(int)Menues.Menu].AdvancedImages.Add(new AdvancedImage(circle, new Rectangle(new Point((int)(720/2), (int)((logoRect.Location.Y + logoRect.Height)/2) + 0), new Point(circleSize)), logoBlue, 0f, new Vector2(circleSize/2))); // Buttons menu.Pages[(int)Menues.Menu].AddButtonList(menuFont, mainRec, 80f, new[] { "Vårt Program", "Om Oss", "Press" }, padding, logoBlue, logoYellow, new Action[] {() => SetMenuState(Menues.Program), () => SetMenuState(Menues.OmOss), () => SetMenuState(Menues.Press)});