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 | | **Page Down** | Previous Disc |
| **→** | Next Track | | **→** | Next Track |
| **←** | Previous Track | | **←** | Previous Track |
| **R** | Shuffle Tracks |
| **]** | Next Index | | **]** | Next Index |
| **[** | Previous Index | | **[** | Previous Index |
| **.** | Fast Forward | | **.** | Fast Forward |
@@ -36,6 +37,10 @@ For Save Track(s):
For Disc Switching: For Disc Switching:
- If you change the number of discs in the internal changer, you must restart the program for it to take effect - 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: For both Volume Up and Volume Down:
- Holding **Ctrl** will move in increments of 2 - Holding **Ctrl** will move in increments of 2
- Holding **Shift** will move in increments of 5 - Holding **Shift** will move in increments of 5

View File

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

View File

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

View File

@@ -142,6 +142,14 @@
HorizontalAlignment="Right" Margin="8,0,0,0" Width="120"/> HorizontalAlignment="Right" Margin="8,0,0,0" Width="120"/>
</WrapPanel> </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 --> <!-- Next Index -->
<WrapPanel Margin="0,0,0,16"> <WrapPanel Margin="0,0,0,16">
<TextBlock Width="120">Next Index</TextBlock> <TextBlock Width="120">Next Index</TextBlock>