Expose shuffling to UI

This commit is contained in:
Matt Nadareski
2021-10-06 12:59:11 -07:00
parent c5a4b6a153
commit ff5006063a
4 changed files with 18 additions and 5 deletions

View File

@@ -20,6 +20,7 @@
| **Page Down** | Previous Disc |
| **→** | Next Track |
| **←** | Previous Track |
| **R** | Shuffle Tracks |
| **]** | Next Index |
| **[** | Previous Index |
| **.** | Fast Forward |
@@ -36,6 +37,10 @@ For Save Track(s):
For Disc Switching:
- If you change the number of discs in the internal changer, you must restart the program for it to take effect
For Shuffling:
- Shuffling only works on the current set of playable tracks
- If you are in single disc mode and switch discs, it will not automatically shuffle the new tracks
For both Volume Up and Volume Down:
- Holding **Ctrl** will move in increments of 2
- Holding **Shift** will move in increments of 5

View File

@@ -101,10 +101,10 @@ namespace RedBookPlayer.GUI.ViewModels
}
// Shuffle Track List
// else if(e.Key == App.Settings.ShuffleTracksKey)
// {
// PlayerView?.ViewModel?.ExecuteShuffle();
// }
else if(e.Key == App.Settings.ShuffleTracksKey)
{
PlayerView?.ViewModel?.ExecuteShuffle();
}
// Next Index
else if(e.Key == App.Settings.NextIndexKey)

View File

@@ -183,7 +183,7 @@ namespace RedBookPlayer.GUI.ViewModels
/// <summary>
/// Key assigned to shuffling the track list
/// </summary>
// public Key ShuffleTracksKey { get; set; } = Key.R;
public Key ShuffleTracksKey { get; set; } = Key.R;
/// <summary>
/// Key assigned to move to the next index

View File

@@ -142,6 +142,14 @@
HorizontalAlignment="Right" Margin="8,0,0,0" Width="120"/>
</WrapPanel>
<!-- Shuffle Tracks -->
<WrapPanel Margin="0,0,0,16">
<TextBlock Width="120">Shuffle Tracks</TextBlock>
<ComboBox Name="ShuffleTracksKeyBind"
Items="{Binding KeyboardList}" SelectedItem="{Binding ShuffleTracksKey, Mode=TwoWay}"
HorizontalAlignment="Right" Margin="8,0,0,0" Width="120"/>
</WrapPanel>
<!-- Next Index -->
<WrapPanel Margin="0,0,0,16">
<TextBlock Width="120">Next Index</TextBlock>