From b6a0cd3871c381165b1fd677719d7ab2e64c77b4 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Thu, 23 May 2019 15:11:31 +0300 Subject: [PATCH] (7a85fb03d) Added: Possibility to access any tutorial in a debug build --- .../Source/Items/Components/Signal/Connection.cs | 4 ++-- Barotrauma/BarotraumaClient/Source/Screens/MainMenuScreen.cs | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Barotrauma/BarotraumaClient/Source/Items/Components/Signal/Connection.cs b/Barotrauma/BarotraumaClient/Source/Items/Components/Signal/Connection.cs index 294f6214b..d5ab17ccb 100644 --- a/Barotrauma/BarotraumaClient/Source/Items/Components/Signal/Connection.cs +++ b/Barotrauma/BarotraumaClient/Source/Items/Components/Signal/Connection.cs @@ -57,8 +57,8 @@ namespace Barotrauma.Items.Components } } - Vector2 rightPos = new Vector2(x + width - 110 * GUI.xScale, y + 80 * GUI.yScale); - Vector2 leftPos = new Vector2(x + 110 * GUI.xScale, y + 80 * GUI.yScale); + Vector2 rightPos = new Vector2(x + width - 130 * GUI.xScale, y + 80 * GUI.yScale); + Vector2 leftPos = new Vector2(x + 130 * GUI.xScale, y + 80 * GUI.yScale); Vector2 rightWirePos = new Vector2(x + width - 5 * GUI.xScale, y + 30 * GUI.yScale); Vector2 leftWirePos = new Vector2(x + 5 * GUI.xScale, y + 30 * GUI.yScale); diff --git a/Barotrauma/BarotraumaClient/Source/Screens/MainMenuScreen.cs b/Barotrauma/BarotraumaClient/Source/Screens/MainMenuScreen.cs index bed963287..1643c78e9 100644 --- a/Barotrauma/BarotraumaClient/Source/Screens/MainMenuScreen.cs +++ b/Barotrauma/BarotraumaClient/Source/Screens/MainMenuScreen.cs @@ -613,12 +613,16 @@ namespace Barotrauma if (i < completedTutorials + 1) { (tutorialList.Content.GetChild(i) as GUITextBlock).TextColor = Color.LightGreen; +#if !DEBUG (tutorialList.Content.GetChild(i) as GUITextBlock).CanBeFocused = true; +#endif } else { (tutorialList.Content.GetChild(i) as GUITextBlock).TextColor = Color.Gray; +#if !DEBUG (tutorialList.Content.GetChild(i) as GUITextBlock).CanBeFocused = false; +#endif } } }