-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7c45194
Showing
37 changed files
with
2,326 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.30320.27 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EmotionPlayer", "EmotionPlayer\EmotionPlayer.csproj", "{683A5471-D6B6-4F14-9114-3CD057C1A5AD}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Debug|x64 = Debug|x64 | ||
Release|Any CPU = Release|Any CPU | ||
Release|x64 = Release|x64 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{683A5471-D6B6-4F14-9114-3CD057C1A5AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{683A5471-D6B6-4F14-9114-3CD057C1A5AD}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{683A5471-D6B6-4F14-9114-3CD057C1A5AD}.Debug|x64.ActiveCfg = Debug|x64 | ||
{683A5471-D6B6-4F14-9114-3CD057C1A5AD}.Debug|x64.Build.0 = Debug|x64 | ||
{683A5471-D6B6-4F14-9114-3CD057C1A5AD}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{683A5471-D6B6-4F14-9114-3CD057C1A5AD}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{683A5471-D6B6-4F14-9114-3CD057C1A5AD}.Release|x64.ActiveCfg = Release|x64 | ||
{683A5471-D6B6-4F14-9114-3CD057C1A5AD}.Release|x64.Build.0 = Release|x64 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {0C5A8CFB-7703-4795-82A4-4F8B28328094} | ||
EndGlobalSection | ||
EndGlobal |
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,29 @@ | ||
<Window x:Class="EmotionPlayer.About" | ||
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:EmotionPlayer" | ||
mc:Ignorable="d" | ||
Title="About" Height="340.184" Width="453.021" | ||
Style="{DynamicResource WindowStyle}" KeyDown="Window_KeyDown" ResizeMode="NoResize"> | ||
<Grid Background="#1f1f1f" MouseLeftButtonDown="Grid_MouseDown"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition/> | ||
<RowDefinition Height="40"/> | ||
</Grid.RowDefinitions> | ||
<TextBlock Margin="111,35,0,0" VerticalAlignment="Top" | ||
TextAlignment="Left" Height="132" MaxHeight="274" HorizontalAlignment="Left" Width="225" Foreground="White"> | ||
<Span FontSize="26">About</Span><LineBreak/><LineBreak/> | ||
<Span FontSize="16">App: <Span FontSize="18">EmotionPlayer</Span></Span><LineBreak/> | ||
<Span FontSize="16">Version: <Span FontSize="18">1.0</Span></Span><LineBreak/> | ||
<Span FontSize="16">Last update: <Span FontSize="18">17.08.2020</Span></Span> | ||
</TextBlock> | ||
<TextBlock Margin="0,201,0.4,38.4" VerticalAlignment="Center" | ||
TextAlignment="Center" Height="31" Foreground="GhostWhite"> | ||
<Span FontSize="20">Telegram: @rgexacku</Span> | ||
</TextBlock> | ||
<Button Style="{DynamicResource TextButtonStyle}" Background="#121212" Content="Close" Foreground="White" | ||
TextElement.FontSize="14" Click="Button_Click" Grid.Row="1"/> | ||
</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,42 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading; | ||
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.Animation; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Shapes; | ||
|
||
namespace EmotionPlayer | ||
{ | ||
public partial class About : Window | ||
{ | ||
|
||
public About() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void Button_Click(object sender = null, RoutedEventArgs e = null) | ||
{ | ||
Close(); | ||
} | ||
private void Grid_MouseDown(object sender, MouseButtonEventArgs e) | ||
{ | ||
DragMove(); | ||
} | ||
|
||
private void Window_KeyDown(object sender, KeyEventArgs e) | ||
{ | ||
if (e.Key == Key.H) | ||
Close(); | ||
} | ||
} | ||
} |
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/> | ||
</startup> | ||
</configuration> |
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,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Configuration; | ||
using System.Data; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Reflection; | ||
using System.Runtime.InteropServices; | ||
using System.Threading; | ||
using System.IO.MemoryMappedFiles; | ||
using System.IO; | ||
using System.Text; | ||
|
||
namespace EmotionPlayer | ||
{ | ||
public partial class App : Application | ||
{ | ||
public const long ARGS_SIZE = 5_000_000; | ||
public const string MEMORY_NAME = "EmotionPlayer_0x24"; | ||
|
||
private void Application_Startup(object sender, StartupEventArgs e) | ||
{ | ||
new MainWindow().Show(); | ||
} | ||
} | ||
} |
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,32 @@ | ||
<Button x:Class="EmotionPlayer.Controls.PathButton" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:EmotionPlayer.Controls" | ||
mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800" | ||
PreviewMouseDown="Button_PreviewMouseDown" | ||
PreviewMouseUp="Button_PreviewMouseUp" | ||
MouseEnter="Button_MouseEnter" MouseLeave="Button_MouseLeave" | ||
Loaded="Button_Loaded" | ||
Background="{x:Null}" BorderBrush="{x:Null}" | ||
Cursor="Hand" x:Name="button"> | ||
<Button.Template> | ||
<ControlTemplate TargetType="{x:Type local:PathButton}"> | ||
<Border | ||
Background="Transparent" | ||
Height="{TemplateBinding Height}" | ||
Width="{TemplateBinding Width}"> | ||
|
||
<ContentPresenter | ||
Margin="{TemplateBinding Padding}"> | ||
<ContentPresenter.Content> | ||
<Path Name="buttonPath" Data="{TemplateBinding Data}" | ||
Stretch="{TemplateBinding Stretch}" | ||
Fill="{TemplateBinding Foreground}"/> | ||
</ContentPresenter.Content> | ||
</ContentPresenter> | ||
</Border> | ||
</ControlTemplate> | ||
</Button.Template> | ||
</Button> |
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,88 @@ | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
|
||
namespace EmotionPlayer.Controls | ||
{ | ||
public partial class PathButton : Button | ||
{ | ||
public static readonly DependencyProperty DataProperty; | ||
public static readonly DependencyProperty NormalBrushProperty; | ||
public static readonly DependencyProperty OverBrushProperty; | ||
public static readonly DependencyProperty PressedBrushProperty; | ||
public static readonly DependencyProperty StretchProperty; | ||
|
||
public Geometry Data | ||
{ | ||
get => GetValue(DataProperty) as Geometry; | ||
set => SetValue(DataProperty, value); | ||
} | ||
public Stretch Stretch | ||
{ | ||
get => (Stretch)(GetValue(StretchProperty) ?? Stretch.None); | ||
set => SetValue(StretchProperty, value); | ||
} | ||
public SolidColorBrush NormalBrush | ||
{ | ||
get => GetValue(NormalBrushProperty) as SolidColorBrush; | ||
set => SetValue(NormalBrushProperty, value); | ||
} | ||
public SolidColorBrush OverBrush | ||
{ | ||
get => GetValue(OverBrushProperty) as SolidColorBrush; | ||
set => SetValue(OverBrushProperty, value); | ||
} | ||
public SolidColorBrush PressedBrush | ||
{ | ||
get => GetValue(PressedBrushProperty) as SolidColorBrush; | ||
set => SetValue(PressedBrushProperty, value); | ||
} | ||
|
||
static PathButton() | ||
{ | ||
DataProperty = | ||
DependencyProperty.Register("Data", typeof(Geometry), typeof(PathButton)); | ||
|
||
NormalBrushProperty = | ||
DependencyProperty.Register("NormalBrush", typeof(SolidColorBrush), typeof(PathButton)); | ||
|
||
OverBrushProperty = | ||
DependencyProperty.Register("OverBrush", typeof(SolidColorBrush), typeof(PathButton)); | ||
|
||
PressedBrushProperty = | ||
DependencyProperty.Register("PressedBrush", typeof(SolidColorBrush), typeof(PathButton)); | ||
|
||
StretchProperty = | ||
DependencyProperty.Register("Stretch", typeof(Stretch), typeof(PathButton)); | ||
} | ||
|
||
public PathButton() | ||
{ | ||
Stretch = Stretch.Uniform; | ||
|
||
InitializeComponent(); | ||
} | ||
|
||
private void Button_PreviewMouseDown(object sender, MouseButtonEventArgs e) | ||
{ | ||
Foreground = PressedBrush; | ||
} | ||
private void Button_PreviewMouseUp(object sender, MouseButtonEventArgs e) | ||
{ | ||
Foreground = IsMouseOver ? OverBrush : NormalBrush; | ||
} | ||
private void Button_MouseEnter(object sender, MouseEventArgs e) | ||
{ | ||
Foreground = IsPressed ? PressedBrush : OverBrush; | ||
} | ||
private void Button_MouseLeave(object sender, MouseEventArgs e) | ||
{ | ||
Foreground = IsPressed ? OverBrush : NormalBrush; | ||
} | ||
private void Button_Loaded(object sender, RoutedEventArgs e) | ||
{ | ||
Foreground = IsMouseOver ? OverBrush : NormalBrush; | ||
} | ||
} | ||
} |
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,20 @@ | ||
<Window x:Class="EmotionPlayer.DarkMsgBox" | ||
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:EmotionPlayer" | ||
mc:Ignorable="d" | ||
Title="Rating" Height="248.8" Width="253.6" | ||
Style="{DynamicResource WindowStyle}" MouseDown="Window_MouseDown"> | ||
<Grid Background="Black"> | ||
<TextBlock Margin="1,10,0.2,102.2" Name="Age" | ||
TextWrapping="Wrap" Text="18+" FontSize="72" TextAlignment="Center" Foreground="GhostWhite"/> | ||
<TextBlock Margin="1,147,127.2,10.2" x:Name="Neg" | ||
TextWrapping="Wrap" Text="180" FontSize="30" TextAlignment="Center" Foreground="Orange"/> | ||
<TextBlock Margin="110,145,108.2,33.2" | ||
TextWrapping="Wrap" Text="/" FontSize="30" TextAlignment="Center" Foreground="GhostWhite"/> | ||
<TextBlock Margin="125,147,0.2,10.2" x:Name="Pos" | ||
TextWrapping="Wrap" Text="1200" FontSize="30" TextAlignment="Center" Foreground="GreenYellow"/> | ||
</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,32 @@ | ||
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 EmotionPlayer | ||
{ | ||
public partial class DarkMsgBox : Window | ||
{ | ||
public DarkMsgBox(string rate, int pos, int neg) | ||
{ | ||
InitializeComponent(); | ||
this.Age.Text = rate.ToString(); | ||
this.Pos.Text = pos.ToString(); | ||
this.Neg.Text = neg.ToString(); | ||
} | ||
|
||
private void Window_MouseDown(object sender, MouseButtonEventArgs e) | ||
{ | ||
this.Close(); | ||
} | ||
} | ||
} |
Oops, something went wrong.