diff --git a/Assets/Scenes/Main Menu.unity b/Assets/Scenes/Main Menu.unity index c1f111f09..4fafe8336 100644 --- a/Assets/Scenes/Main Menu.unity +++ b/Assets/Scenes/Main Menu.unity @@ -525,7 +525,7 @@ MonoBehaviour: type: 3} m_TrackedDeviceOrientationAction: {fileID: 1025543830046995696, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} - m_DeselectOnBackgroundClick: 0 + m_DeselectOnBackgroundClick: 1 m_PointerBehavior: 0 --- !u!114 &553528108 MonoBehaviour: diff --git a/Assets/Scripts/Editor/ScenarioPickerVerify.cs b/Assets/Scripts/Editor/ScenarioPickerVerify.cs index 3d9acb75e..8d464f48e 100644 --- a/Assets/Scripts/Editor/ScenarioPickerVerify.cs +++ b/Assets/Scripts/Editor/ScenarioPickerVerify.cs @@ -51,6 +51,8 @@ public static class ScenarioPickerVerify CancelAndBackAreOnePath(); DetailPaneFollowsSelection(); OneGroupHasNoSectionLabel(); + LaunchesOnceHoweverItIsReached(); + ArrowingThroughTheRealListKeepsTheSelectionVisible(); Debug.Log("[ScenarioPickerVerify] ok"); EditorApplication.Exit(0); } @@ -66,7 +68,7 @@ public static class ScenarioPickerVerify if (!condition) throw new InvalidOperationException(what); } - private static Screen Build(bool oneGroup = false) + private static Screen Build(bool oneGroup = false, bool real = false) { var (menu, list, detail) = ScenarioPickerCapture.Build(); // Build opens the scene afresh, which destroys the previous EventSystem. @@ -80,7 +82,7 @@ public static class ScenarioPickerVerify B = new Scenario[] { new Fake("Gamma", ambient: false) }, C = new Scenario[] { new Fake("Delta"), new Fake("Echo") } }; - var groups = oneGroup + var groups = real ? ScenarioPickerCapture.AllGroups() : oneGroup ? new List<(string label, Scenario[] scenarios)> { ("modes", screen.A) } : new List<(string label, Scenario[] scenarios)> { ("modes", screen.A), ("development", screen.B), ("test arenas", screen.C) }; screen.Picker = ScenarioPicker.Show(list, detail, groups, screen.Launched.Add, () => screen.Backs++, menu.Dialog.Confirm); @@ -88,9 +90,43 @@ public static class ScenarioPickerVerify screen.Rows = buttons.Take(buttons.Length - 1).ToArray(); screen.Back = buttons.Last(); screen.Launch = detail.GetComponentsInChildren