From 9ffd923e56a8ac4b06d42b9637e6d2bfd7a73cc2 Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Wed, 9 Aug 2023 14:36:04 +0200 Subject: [PATCH] Fix gamemode splash again (forgot other menus) --- P3D/Screens/MainMenu/PressStartScreen.vb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/P3D/Screens/MainMenu/PressStartScreen.vb b/P3D/Screens/MainMenu/PressStartScreen.vb index 0953dd163..26d1b9fda 100644 --- a/P3D/Screens/MainMenu/PressStartScreen.vb +++ b/P3D/Screens/MainMenu/PressStartScreen.vb @@ -422,6 +422,7 @@ Public Class NewMainMenuScreen Next End If Case 2 + GameModeSplash = Nothing For x = 0 To _MainProfiles.Count - 1 Dim xOffset As Single = _screenOrigin.X + _mainOffset.X + x * 180 + ((x + 1) * 100 * (1 - _fadeInMain)) If New Rectangle(CInt(xOffset), CInt(_screenOrigin.Y + _screenOffsetTarget.Y), 160, 160).Contains(MouseHandler.MousePosition) Then @@ -474,6 +475,7 @@ Public Class NewMainMenuScreen SoundManager.PlaySound("select") End If Else + GameModeSplash = Nothing If CurrentScreen.Identification = Identifications.MainMenuScreen Then Dim diff As Integer = x - _selectedProfile _optionsOffsetTarget.X -= diff * 180 @@ -644,7 +646,7 @@ Public Class NewMainMenuScreen UpdateScreenOffset() UpdateOptionsOffset() - If _MainProfiles(_selectedProfile).GameMode <> "Kolben" Then + If _MainProfiles(_selectedProfile).GameMode <> "Kolben" AndAlso (_menuIndex = 0 OrElse _menuIndex = 1) Then If GameModeSplash Is Nothing Then Try Dim fileName As String = GameController.GamePath & "\GameModes\" & _MainProfiles(_selectedProfile).GameMode & "\MainMenu.png"