From fb11d2be2b00d24bd642d14579da1fbadfbce3a7 Mon Sep 17 00:00:00 2001 From: Mike Oliphant Date: Fri, 24 May 2024 08:29:19 -0700 Subject: [PATCH] Add song list help dialog. Bump version. --- ChartPlayerShared/HelpDialog.cs | 2 +- ChartPlayerShared/SongListInterface.cs | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChartPlayerShared/HelpDialog.cs b/ChartPlayerShared/HelpDialog.cs index 774e84c..c2fb4de 100644 --- a/ChartPlayerShared/HelpDialog.cs +++ b/ChartPlayerShared/HelpDialog.cs @@ -16,7 +16,7 @@ public HelpDialog(UIElement helpElement) ChildSpacing = 20 }; - contents.Children.Add(new TextBlock("ChartPlayer v0.1.2\nCopyright (c) 2024 Mike Oliphant")); + contents.Children.Add(new TextBlock("ChartPlayer v0.1.3\nCopyright (c) 2024 Mike Oliphant")); contents.Children.Add(helpElement); diff --git a/ChartPlayerShared/SongListInterface.cs b/ChartPlayerShared/SongListInterface.cs index 4842f18..81c3c44 100644 --- a/ChartPlayerShared/SongListInterface.cs +++ b/ChartPlayerShared/SongListInterface.cs @@ -139,6 +139,14 @@ public SongListDisplay() buttonInputStack.AddInput(new DialogInput { Text = "Bass", Action = delegate { SetCurrentInstrument(ESongInstrumentType.BassGuitar); } }); //buttonInputStack.AddInput(new DialogInput { Text = "Keys", Action = delegate { SetCurrentInstrument(ESongInstrumentType.Keys); } }); buttonInputStack.AddInput(new DialogInput { Text = "ReScan", Action = delegate { SongPlayerInterface.Instance.RescanSongIndex(); } }); + buttonInputStack.AddInput(new DialogInput + { + Text = "?", + Action = delegate + { + Layout.Current.ShowPopup(new HelpDialog(new TextBlock("Click to select song.\n\nDrag to scroll, or use arrow keys and page up/down.\n\nClick column titles to sort."))); + } + }); buttonInputStack.AddInput(new DialogInput { Text = "Close", Action = Close }); SongList.SetSortColumn("Artist");