From 12dd6413e86230f1a7199125bbf6d5cdc547c037 Mon Sep 17 00:00:00 2001 From: RileyTheFox Date: Sat, 2 Mar 2024 17:34:01 +0000 Subject: [PATCH] Add button to cancel search (unfocus input field) in music library --- Assets/Script/Menu/MusicLibrary/SongSearchingField.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Assets/Script/Menu/MusicLibrary/SongSearchingField.cs b/Assets/Script/Menu/MusicLibrary/SongSearchingField.cs index 61842ef32..809f4b40d 100644 --- a/Assets/Script/Menu/MusicLibrary/SongSearchingField.cs +++ b/Assets/Script/Menu/MusicLibrary/SongSearchingField.cs @@ -4,6 +4,7 @@ using TMPro; using UnityEngine; using UnityEngine.InputSystem; +using YARG.Core.Input; using YARG.Core.Song; using YARG.Menu.Navigation; using YARG.Song; @@ -201,7 +202,11 @@ private void Update() if (_searchNavPushed) return; _searchNavPushed = true; - Navigator.Instance.PushScheme(NavigationScheme.Empty); + Navigator.Instance.PushScheme(new NavigationScheme(new() + { + new NavigationScheme.Entry(MenuAction.Blue, "Cancel Search", + () => _searchField.DeactivateInputField()), + }, false)); } else {