From e1ab1da9e72e36f78635e3c9d0e8ec57314f3894 Mon Sep 17 00:00:00 2001 From: Andreas Stange Date: Wed, 7 Apr 2021 20:55:07 +0200 Subject: [PATCH 01/11] SongSelect: show/hide "no mics found" message on mic (dis)connect --- .../MicList/SongSelectMicListController.cs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/UltraStar Play/Assets/Scenes/SongSelect/MicList/SongSelectMicListController.cs b/UltraStar Play/Assets/Scenes/SongSelect/MicList/SongSelectMicListController.cs index 44d59a57a..e78891e9a 100644 --- a/UltraStar Play/Assets/Scenes/SongSelect/MicList/SongSelectMicListController.cs +++ b/UltraStar Play/Assets/Scenes/SongSelect/MicList/SongSelectMicListController.cs @@ -66,12 +66,6 @@ private void HandleClientConnectedEvent(ClientConnectionEvent connectionEvent) } } - private void RemoveListEntry(SongSelectMicListEntry listEntry) - { - Destroy(listEntry.gameObject); - listEntries.Remove(listEntry); - } - public void OnHotSwapFinished() { UpdateListEntries(); @@ -109,8 +103,20 @@ private void CreateListEntry(MicProfile micProfile) listEntry.MicProfile = micProfile; listEntries.Add(listEntry); + + emptyListLabel.SetActive(false); } + private void RemoveListEntry(SongSelectMicListEntry listEntry) + { + Destroy(listEntry.gameObject); + listEntries.Remove(listEntry); + if (listEntries.IsNullOrEmpty()) + { + emptyListLabel.SetActive(true); + } + } + private void OnDestroy() { disposables.ForEach(it => it.Dispose()); From 74fa3fb3ee1d2d3e1fe5f470c270743d20ca0355 Mon Sep 17 00:00:00 2001 From: Andreas Stange Date: Wed, 7 Apr 2021 20:55:42 +0200 Subject: [PATCH 02/11] MainScene: always show build timestamp (not only in debug builds) - makes it easier to tell different builds apart --- UltraStar Play/Assets/Scenes/Main/MainSceneUi.uxml | 8 ++++---- .../Assets/Scenes/Main/MainSceneUiControl.cs | 11 ++--------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/UltraStar Play/Assets/Scenes/Main/MainSceneUi.uxml b/UltraStar Play/Assets/Scenes/Main/MainSceneUi.uxml index 042cb5cc6..1006a3290 100644 --- a/UltraStar Play/Assets/Scenes/Main/MainSceneUi.uxml +++ b/UltraStar Play/Assets/Scenes/Main/MainSceneUi.uxml @@ -1,11 +1,11 @@