-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added config file. Can change keybinds. Can specify mounts
- Loading branch information
1 parent
dcdee1d
commit 0c39cc9
Showing
12 changed files
with
648 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<Window x:Class="TerrariaMidiPlayer.ChangeKeybindsDialog" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="clr-namespace:TerrariaMidiPlayer" | ||
mc:Ignorable="d" | ||
Title="Change Keybinds" Height="246" Width="300" Background="#FFF9F9F9" Icon="Resources/Icons/Keybinds.png" SnapsToDevicePixels="True" UseLayoutRounding="True" ResizeMode="NoResize" WindowStartupLocation="CenterOwner"> | ||
<Grid> | ||
<local:KeybindReader x:Name="keybindReaderPlay" Margin="74,22,0,0" /> | ||
<Button Content="Cancel" HorizontalAlignment="Right" Margin="0,0,10,10" VerticalAlignment="Bottom" Width="75" IsCancel="True"/> | ||
<Button Content="OK" HorizontalAlignment="Right" Margin="0,0,95,10" VerticalAlignment="Bottom" Width="75" IsDefault="True" Click="OnOKClicked"/> | ||
<Label Content="Play" HorizontalAlignment="Left" Margin="37,20,0,0" VerticalAlignment="Top"/> | ||
<Label Content="Pause" HorizontalAlignment="Left" Margin="28,51,0,0" VerticalAlignment="Top"/> | ||
<Label Content="Stop" HorizontalAlignment="Left" Margin="34,82,0,0" VerticalAlignment="Top"/> | ||
<Label Content="Close" HorizontalAlignment="Left" Margin="28,123,0,0" VerticalAlignment="Top"/> | ||
<local:KeybindReader x:Name="keybindReaderPause" Margin="74,53,0,0" /> | ||
<local:KeybindReader x:Name="keybindReaderStop" Margin="74,84,0,0" /> | ||
<Separator Height="7" Margin="20,113,20,0" VerticalAlignment="Top"/> | ||
<local:KeybindReader x:Name="keybindReaderClose" Margin="74,125,0,0" /> | ||
|
||
</Grid> | ||
</Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Shapes; | ||
|
||
namespace TerrariaMidiPlayer { | ||
/// <summary> | ||
/// Interaction logic for EditKeybindsDialog.xaml | ||
/// </summary> | ||
public partial class ChangeKeybindsDialog : Window { | ||
|
||
public ChangeKeybindsDialog(Keybind play, Keybind pause, Keybind stop, Keybind close) { | ||
InitializeComponent(); | ||
keybindReaderPlay.Keybind = play; | ||
keybindReaderPause.Keybind = pause; | ||
keybindReaderStop.Keybind = stop; | ||
keybindReaderClose.Keybind = close; | ||
} | ||
|
||
private void OnOKClicked(object sender, RoutedEventArgs e) { | ||
DialogResult = true; | ||
} | ||
|
||
public static bool ShowDialog(Window owner, ref Keybind play, ref Keybind pause, ref Keybind stop, ref Keybind close) { | ||
ChangeKeybindsDialog window = new ChangeKeybindsDialog(play, pause, stop, close); | ||
window.Owner = owner; | ||
var result = window.ShowDialog(); | ||
if (result != null && result.Value) { | ||
play = window.keybindReaderPlay.Keybind; | ||
pause = window.keybindReaderPause.Keybind; | ||
stop = window.keybindReaderStop.Keybind; | ||
close = window.keybindReaderClose.Keybind; | ||
return true; | ||
} | ||
return false; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.