-
Notifications
You must be signed in to change notification settings - Fork 0
/
MusicForm.xaml
75 lines (69 loc) · 9.03 KB
/
MusicForm.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<Window x:Class="MapleDesktop2._0.MusicForm"
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:MapleDeaktop2._0"
mc:Ignorable="d"
Title="Maple Music" Height="493" Width="400" Icon="/MaplebotIcon.ico" Closing="Window_Closing" ResizeMode="CanMinimize">
<Window.Background>
<ImageBrush ImageSource="/Artboard [email protected]"/>
</Window.Background>
<Grid Margin="0,4,0,-4">
<Grid.Background>
<ImageBrush ImageSource="/Artboard [email protected]"/>
</Grid.Background>
<Image HorizontalAlignment="Center" Width="380" Source="/Music Bg Panel.png" Stretch="Fill" Margin="0,8,0,12"/>
<DockPanel LastChildFill="False" Visibility="Hidden">
<ComboBox x:Name="comboBoxOutputDriver" Width="14" Height="316" BorderBrush="#00ACACAC" Foreground="#00000000" IsEditable="True" Visibility="Hidden" >
<ComboBox.Background>
<LinearGradientBrush EndPoint="0,1">
<GradientStop Color="#FFF0F0F0"/>
<GradientStop Color="#00E5E5E5" Offset="1"/>
</LinearGradientBrush>
</ComboBox.Background>
</ComboBox>
<Label Content="Label" Width="0"/>
</DockPanel>
<Rectangle HorizontalAlignment="Center" Height="294" Margin="0,141,0,0" Stroke="#00000000" VerticalAlignment="Top" Width="324" Fill="#3F009EDF"/>
<Label Content="Maple Music" HorizontalAlignment="Center" Margin="0,18,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="18"/>
<TextBox x:Name="txb_SongInput" HorizontalAlignment="Center" Margin="0,74,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="324" Height="23" KeyDown="txb_SongInput_KeyDown"/>
<Button x:Name="btn_Play" Content="Play" HorizontalAlignment="Left" Margin="38,104,0,0" VerticalAlignment="Top" Width="60" Background="#FF020202" Foreground="White" BorderBrush="#00707070" Height="25" Click="btn_Play_Click"/>
<RadioButton x:Name="rbn_PlayAudio" Content="Audio" HorizontalAlignment="Left" Margin="303,53,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" IsChecked="True" Unchecked="rbn_PlayAudio_Unchecked" Checked="rbn_PlayAudio_Checked"/>
<CheckBox x:Name="ckb_SaveMusic" Content="Save Music" HorizontalAlignment="Left" Margin="168,110,0,0" VerticalAlignment="Top" FontWeight="Bold" Checked="ckb_SaveMusic_Checked" Unchecked="ckb_SaveMusic_Unchecked"/>
<CheckBox x:Name="ckb_SaveVideo" Content="Save Video" HorizontalAlignment="Left" Margin="266,110,0,0" VerticalAlignment="Top" FontWeight="Bold" Checked="ckb_SaveVideo_Checked" Unchecked="ckb_SaveVideo_Unchecked"/>
<RadioButton x:Name="rbn_PlayVideo" Content="Video" HorizontalAlignment="Left" Margin="239,53,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Bold" Foreground="Black" Background="White" Opacity="0.75" IsEnabled="False" Visibility="Hidden"/>
<Label x:Name="lbl_PlayingStatus" Content="-" HorizontalAlignment="Center" Margin="0,141,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="12"/>
<Label Content="Name:" HorizontalAlignment="Left" Margin="53,173,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="12"/>
<Label Content="Artist:" HorizontalAlignment="Left" Margin="53,210,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="12"/>
<Label x:Name="lbl_PlayingArtist" HorizontalAlignment="Left" Margin="98,210,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="12">
<TextBlock x:Name="txb_PlayingArtist" TextWrapping="WrapWithOverflow" Width="240" MaxWidth="240" FontSize="9" TextTrimming="WordEllipsis" >-</TextBlock>
</Label>
<Label Content="Link:" HorizontalAlignment="Left" Margin="58,247,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="12"/>
<Slider x:Name="tbr_TrackProgressBar" HorizontalAlignment="Center" Margin="0,286,0,0" VerticalAlignment="Top" Width="280" Foreground="#FFF7F6F6" MouseDown="tbr_TrackProgressBar_MouseDown" MouseUp="tbr_TrackProgressBar_MouseUp" PreviewMouseDown="tbr_TrackProgressBar_MouseDown" PreviewMouseUp="tbr_TrackProgressBar_MouseUp"/>
<Button x:Name="btn_Pause" Content="Pause" HorizontalAlignment="Left" Margin="58,335,0,0" VerticalAlignment="Top" Background="#FF080808" Foreground="#FFFCFBFB" BorderBrush="#FFFDFCFC" Width="40" Click="OnButtonPauseClick"/>
<Button x:Name="btn_Resume" Content="Resume" HorizontalAlignment="Left" Margin="98,335,0,0" VerticalAlignment="Top" Background="#FF080808" Foreground="#FFFCFBFB" BorderBrush="#FFFDFCFC" Width="51" Click="OnButtonResumeClick"/>
<Button x:Name="btn_PlayingLast" Content="Prev" HorizontalAlignment="Left" Margin="159,335,0,0" VerticalAlignment="Top" Background="#FF080808" Foreground="#FFFCFBFB" BorderBrush="#FFFDFCFC" Width="40" Click="btn_PlayingLast_Click"/>
<Button x:Name="btn_Skip" Content="Skip" HorizontalAlignment="Left" Margin="199,335,0,0" VerticalAlignment="Top" Background="#FF080808" Foreground="#FFFCFBFB" BorderBrush="#FFFDFCFC" Width="42" Click="btn_Skip_Click"/>
<Button x:Name="btn_Stop" Content="Stop" HorizontalAlignment="Left" Margin="251,335,0,0" VerticalAlignment="Top" Background="#FF080808" Foreground="#FFFCFBFB" BorderBrush="#FFFDFCFC" Width="33" Click="OnButtonStopClick"/>
<Button x:Name="btn_StopAll" Content="Stop All" HorizontalAlignment="Left" Margin="284,335,0,0" VerticalAlignment="Top" Background="#FF080808" Foreground="#FFFCFBFB" BorderBrush="#FFFDFCFC" Width="52" Click="btn_StopAll_Click"/>
<Label x:Name="lbl_CurrentTrackPosition" Content="0:00/0:00" HorizontalAlignment="Center" Margin="0,304,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="12"/>
<Label Content="0:00" HorizontalAlignment="Left" Margin="51,304,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="12"/>
<Label x:Name="lbl_ProgressBarTrackLength" Content="0:00" HorizontalAlignment="Left" Margin="307,304,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="12"/>
<Button x:Name="btn_Playlist" Content="Playlist" HorizontalAlignment="Left" Margin="59,366,0,0" VerticalAlignment="Top" Background="#FF080808" Foreground="#FFFCFBFB" BorderBrush="#FFFDFCFC" Width="51" Click="btn_Playlist_Click"/>
<Label Content="Playing #:" HorizontalAlignment="Left" Margin="124,363,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="12"/>
<Button x:Name="lbl_PlayTrackPlaylistID" Content="-" HorizontalAlignment="Left" Margin="193,366,0,0" VerticalAlignment="Top" Background="#00DDDDDD" BorderBrush="#00707070" FontWeight="Bold"/>
<Slider x:Name="volumeSlider3" HorizontalAlignment="Left" Margin="261,368,0,0" VerticalAlignment="Top" Width="92" ValueChanged="OnVolumeSliderChanged" Maximum="100" LargeChange="10" SmallChange="1" Cursor="Help" Value="50"/>
<Label Content="Volume" HorizontalAlignment="Left" Margin="279,377,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="12"/>
<Label Content="Files are Saved to" HorizontalAlignment="Left" Margin="109,399,0,0" VerticalAlignment="Top" FontSize="9"/>
<Button x:Name="linkLabel1" Content="\AppData\Roaming\Maple" HorizontalAlignment="Left" Margin="188,402,0,0" VerticalAlignment="Top" Background="#000450B7" BorderBrush="#00707070" FontSize="9" FontStyle="Italic" FontWeight="Bold" Foreground="#FF020202" Click="linkLabel1_Click"/>
<Button x:Name="btn_MusicDebugConsoleToggle" Content="Debug" Margin="0,418,43,0" VerticalAlignment="Top" Background="#FF080808" Foreground="#FFFCFBFB" BorderBrush="#FFFDFCFC" FontSize="6" Click="btn_MusicDebugConsoleToggle_Click" HorizontalAlignment="Right" Width="37"/>
<Label x:Name="lbl_PlayingLink" Cursor="Hand" HorizontalAlignment="Left" Margin="100,249,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="12" PreviewMouseLeftButtonUp="lbl_PlayingLink_PreviewMouseLeftButtonUp" FontStretch="ExtraCondensed">
<TextBlock x:Name="txb_PlayingLink" TextDecorations="Underline" TextWrapping="WrapWithOverflow" Width="240" MaxWidth="240" Cursor="Hand" MouseEnter="TextBlock_MouseEnter" MouseLeave="TextBlock_MouseLeave" FontSize="9" TextTrimming="WordEllipsis" PreviewMouseLeftButtonUp="TextBlock_PreviewMouseLeftButtonUp" >-</TextBlock>
</Label>
<Button x:Name="btn_WebWindowToggle" Content="Web Window" Margin="47,415,0,0" VerticalAlignment="Top" Background="#FF080808" Foreground="#FFFCFBFB" BorderBrush="#FFFDFCFC" FontSize="6" HorizontalAlignment="Left" Width="56" Height="15" Click="btn_WebWindowToggle_Click"/>
<Label x:Name="lbl_PlayingName" HorizontalAlignment="Left" Margin="98,173,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="12">
<TextBlock x:Name="txb_PlayingName" TextWrapping="WrapWithOverflow" Width="240" MaxWidth="240" FontSize="9" TextTrimming="WordEllipsis" ><Run Text="-"/></TextBlock>
</Label>
</Grid>
</Window>