mirror of
https://github.com/celisej567/Launcher.git
synced 2025-12-31 09:49:25 +03:00
Add files via upload
This commit is contained in:
@@ -14,14 +14,88 @@
|
||||
<Grid Background="Black">
|
||||
|
||||
|
||||
<Image HorizontalAlignment="Left" Height="498" Margin="-146,0,-51,0" VerticalAlignment="Top" Width="849" Source="images/smallroom.png" Stretch="Fill"/>
|
||||
<Icons:Exit Visibility="Visible" x:Name="Exit" HorizontalAlignment="Left" Height="30" Margin="622,0,0,0" VerticalAlignment="Top" Width="30" Background="#4C4B4B4B" MouseEnter="Exit_MouseEnter"/>
|
||||
<Icons:BiggerExit Visibility="Hidden" x:Name="BiggerExit" HorizontalAlignment="Left" Height="30" Margin="622,0,0,0" VerticalAlignment="Top" Width="30" Background="#4C4B4B4B" PreviewMouseLeftButtonDown="Exit_PreviewMouseLeftButtonDown" MouseLeave="Exit_MouseLeave"/>
|
||||
<Border BorderThickness="1" HorizontalAlignment="Left" Height="151" Margin="24,308,0,0" VerticalAlignment="Top" Width="272">
|
||||
<Label x:Name="startgame" Content="Start" FontFamily="/Launcher;component/fonts/#League Gothic" FontSize="55" Foreground="#FFE6E6E6" Margin="1,-1,150,83" MouseEnter="Label_MouseEnter" MouseLeave="startgame_MouseLeave" RenderTransformOrigin="0.5,0.5"/>
|
||||
</Border>
|
||||
<Icons:Hide Visibility="Visible" x:Name="Hide" HorizontalAlignment="Left" Height="30" Margin="592,0,0,0" VerticalAlignment="Top" Width="30" Background="#4C4B4B4B" MouseEnter="Hide_MouseEnter"/>
|
||||
<Icons:BiggerHide Visibility="Hidden" x:Name="BiggerHide" HorizontalAlignment="Left" Height="30" Margin="592,0,0,0" VerticalAlignment="Top" Width="30" Background="#4C4B4B4B" MouseLeave="Hide_MouseLeave" PreviewMouseLeftButtonDown="BiggerHide_PreviewMouseLeftButtonDown"/>
|
||||
|
||||
<Image
|
||||
HorizontalAlignment="Left"
|
||||
Height="498"
|
||||
Margin="-146,0,-51,0"
|
||||
VerticalAlignment="Top"
|
||||
Width="849"
|
||||
Source="images/smallroom.png"
|
||||
Stretch="Fill"/>
|
||||
|
||||
<Icons:Exit
|
||||
Visibility="Visible"
|
||||
x:Name="Exit"
|
||||
HorizontalAlignment="Left"
|
||||
Height="30"
|
||||
Margin="622,0,0,0"
|
||||
VerticalAlignment="Top"
|
||||
Width="30"
|
||||
Background="#4C4B4B4B"
|
||||
MouseEnter="Exit_MouseEnter"/>
|
||||
|
||||
<Icons:BiggerExit
|
||||
Visibility="Hidden"
|
||||
x:Name="BiggerExit"
|
||||
HorizontalAlignment="Left"
|
||||
Height="30"
|
||||
Margin="622,0,0,0"
|
||||
VerticalAlignment="Top"
|
||||
Width="30"
|
||||
Background="#4C4B4B4B"
|
||||
PreviewMouseLeftButtonDown="Exit_PreviewMouseLeftButtonDown"
|
||||
MouseLeave="Exit_MouseLeave"/>
|
||||
<Label
|
||||
x:Name="startgame"
|
||||
Content="Start"
|
||||
FontFamily="/Launcher;component/fonts/#League Gothic"
|
||||
FontSize="55"
|
||||
Foreground="#FFE6E6E6"
|
||||
Margin="139,209,390,212"
|
||||
MouseEnter="Label_MouseEnter"
|
||||
MouseLeave="startgame_MouseLeave"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<Label.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform/>
|
||||
<SkewTransform AngleY="9.689"/>
|
||||
<RotateTransform Angle="-0.432"/>
|
||||
<TranslateTransform Y="9.272" X="0.007"/>
|
||||
</TransformGroup>
|
||||
</Label.RenderTransform>
|
||||
</Label>
|
||||
<Icons:Hide
|
||||
Visibility="Visible"
|
||||
x:Name="Hide"
|
||||
HorizontalAlignment="Left"
|
||||
Height="30"
|
||||
Margin="592,0,0,0"
|
||||
VerticalAlignment="Top"
|
||||
Width="30"
|
||||
Background="#4C4B4B4B"
|
||||
MouseEnter="Hide_MouseEnter"/>
|
||||
<Icons:BiggerHide
|
||||
Visibility="Hidden"
|
||||
x:Name="BiggerHide"
|
||||
HorizontalAlignment="Left"
|
||||
Height="30"
|
||||
Margin="592,0,0,0"
|
||||
VerticalAlignment="Top"
|
||||
Width="30"
|
||||
Background="#4C4B4B4B"
|
||||
MouseLeave="Hide_MouseLeave"
|
||||
PreviewMouseLeftButtonDown="BiggerHide_PreviewMouseLeftButtonDown"/>
|
||||
<Label x:Name="exitgame" Content="EXIT" FontFamily="/Launcher;component/fonts/#League Gothic" FontSize="24" Foreground="#FFE6E6E6" Margin="390,251,198,136" MouseEnter="Exit_enter" MouseLeave="Exit_leave" RenderTransformOrigin="0.5,0.5">
|
||||
<Label.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform/>
|
||||
<SkewTransform AngleY="-10.28"/>
|
||||
<RotateTransform/>
|
||||
<TranslateTransform Y="-11.134"/>
|
||||
</TransformGroup>
|
||||
</Label.RenderTransform>
|
||||
</Label>
|
||||
|
||||
|
||||
</Grid>
|
||||
|
||||
@@ -25,6 +25,9 @@ namespace Launcher
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
|
||||
|
||||
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -39,37 +42,9 @@ namespace Launcher
|
||||
private void Label_MouseEnter(object sender, MouseEventArgs e)
|
||||
{
|
||||
this.startgame.Foreground = new SolidColorBrush(Color.FromArgb(255, 164, 164, 164));
|
||||
Random rnd = new Random();
|
||||
int sound = rnd.Next(0, 20);
|
||||
UnmanagedMemoryStream[] rndsong =
|
||||
{
|
||||
Properties.Resources._1,
|
||||
Properties.Resources._2,
|
||||
Properties.Resources._3,
|
||||
Properties.Resources._4,
|
||||
Properties.Resources._5,
|
||||
Properties.Resources._6,
|
||||
Properties.Resources._7,
|
||||
Properties.Resources._8,
|
||||
Properties.Resources._9,
|
||||
Properties.Resources._10,
|
||||
Properties.Resources._11,
|
||||
Properties.Resources._12,
|
||||
Properties.Resources._13,
|
||||
Properties.Resources._13,
|
||||
Properties.Resources._14,
|
||||
Properties.Resources._15,
|
||||
Properties.Resources._17,
|
||||
Properties.Resources._18,
|
||||
Properties.Resources._19,
|
||||
Properties.Resources._20,
|
||||
Properties.Resources._21
|
||||
};
|
||||
SoundPlayer sp = new SoundPlayer(rndsong[sound]);
|
||||
|
||||
sp.Play();
|
||||
|
||||
|
||||
|
||||
|
||||
RandomSound();
|
||||
|
||||
|
||||
}
|
||||
@@ -107,5 +82,53 @@ namespace Launcher
|
||||
this.Hide.Visibility = Visibility.Visible;
|
||||
this.BiggerHide.Visibility = Visibility.Hidden;
|
||||
}
|
||||
|
||||
private void Exit_enter(object sender, MouseEventArgs e)
|
||||
{
|
||||
|
||||
this.exitgame.Foreground = new SolidColorBrush(Color.FromArgb(255, 164, 164, 164));
|
||||
RandomSound();
|
||||
|
||||
}
|
||||
|
||||
private void Exit_leave(object sender, MouseEventArgs e)
|
||||
{
|
||||
this.exitgame.Foreground = new SolidColorBrush(Color.FromArgb(255, 230, 230, 230));
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void RandomSound()
|
||||
{
|
||||
Random rnd = new Random();
|
||||
int sound = rnd.Next(0, 20);
|
||||
UnmanagedMemoryStream[] rndsong =
|
||||
{
|
||||
Properties.Resources._1,
|
||||
Properties.Resources._2,
|
||||
Properties.Resources._3,
|
||||
Properties.Resources._4,
|
||||
Properties.Resources._5,
|
||||
Properties.Resources._6,
|
||||
Properties.Resources._7,
|
||||
Properties.Resources._8,
|
||||
Properties.Resources._9,
|
||||
Properties.Resources._10,
|
||||
Properties.Resources._11,
|
||||
Properties.Resources._12,
|
||||
Properties.Resources._13,
|
||||
Properties.Resources._13,
|
||||
Properties.Resources._14,
|
||||
Properties.Resources._15,
|
||||
Properties.Resources._17,
|
||||
Properties.Resources._18,
|
||||
Properties.Resources._19,
|
||||
Properties.Resources._20,
|
||||
Properties.Resources._21
|
||||
};
|
||||
SoundPlayer sp = new SoundPlayer(rndsong[sound]);
|
||||
|
||||
sp.PlaySync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -16,5 +16,5 @@ F:\C#\Launcher\Launcher\App.xaml
|
||||
13-1505183044
|
||||
Icons\bigger\BiggerExit.xaml;Icons\bigger\BiggerHide.xaml;Icons\Hide.xaml;Icons\Exit.xaml;MainWindow.xaml;
|
||||
|
||||
True
|
||||
False
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "064A0C2D2FCF5C8E218ACAE8A4AB358381A27602BD92244DE2AD44B84CC9ABED"
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "D84A96D53DEE253E2E258B765F29EF74EA9D9E8C19A44B4184C9FE3F11FD3241"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
@@ -42,7 +42,7 @@ namespace Launcher {
|
||||
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 18 "..\..\MainWindow.xaml"
|
||||
#line 29 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Launcher.Icons.Exit Exit;
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace Launcher {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 19 "..\..\MainWindow.xaml"
|
||||
#line 40 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Launcher.Icons.BiggerExit BiggerExit;
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace Launcher {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 21 "..\..\MainWindow.xaml"
|
||||
#line 50 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Label startgame;
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace Launcher {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 23 "..\..\MainWindow.xaml"
|
||||
#line 70 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Launcher.Icons.Hide Hide;
|
||||
|
||||
@@ -74,13 +74,21 @@ namespace Launcher {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 24 "..\..\MainWindow.xaml"
|
||||
#line 80 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Launcher.Icons.BiggerHide BiggerHide;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 89 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Label exitgame;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
@@ -127,13 +135,13 @@ namespace Launcher {
|
||||
case 3:
|
||||
this.startgame = ((System.Windows.Controls.Label)(target));
|
||||
|
||||
#line 21 "..\..\MainWindow.xaml"
|
||||
#line 56 "..\..\MainWindow.xaml"
|
||||
this.startgame.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Label_MouseEnter);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 21 "..\..\MainWindow.xaml"
|
||||
#line 57 "..\..\MainWindow.xaml"
|
||||
this.startgame.MouseLeave += new System.Windows.Input.MouseEventHandler(this.startgame_MouseLeave);
|
||||
|
||||
#line default
|
||||
@@ -145,6 +153,21 @@ namespace Launcher {
|
||||
case 5:
|
||||
this.BiggerHide = ((Launcher.Icons.BiggerHide)(target));
|
||||
return;
|
||||
case 6:
|
||||
this.exitgame = ((System.Windows.Controls.Label)(target));
|
||||
|
||||
#line 89 "..\..\MainWindow.xaml"
|
||||
this.exitgame.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Exit_enter);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 89 "..\..\MainWindow.xaml"
|
||||
this.exitgame.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Exit_leave);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "064A0C2D2FCF5C8E218ACAE8A4AB358381A27602BD92244DE2AD44B84CC9ABED"
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "D84A96D53DEE253E2E258B765F29EF74EA9D9E8C19A44B4184C9FE3F11FD3241"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
@@ -42,7 +42,7 @@ namespace Launcher {
|
||||
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 18 "..\..\MainWindow.xaml"
|
||||
#line 29 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Launcher.Icons.Exit Exit;
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace Launcher {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 19 "..\..\MainWindow.xaml"
|
||||
#line 40 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Launcher.Icons.BiggerExit BiggerExit;
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace Launcher {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 21 "..\..\MainWindow.xaml"
|
||||
#line 50 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Label startgame;
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace Launcher {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 23 "..\..\MainWindow.xaml"
|
||||
#line 70 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Launcher.Icons.Hide Hide;
|
||||
|
||||
@@ -74,13 +74,21 @@ namespace Launcher {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 24 "..\..\MainWindow.xaml"
|
||||
#line 80 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Launcher.Icons.BiggerHide BiggerHide;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 89 "..\..\MainWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Label exitgame;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
@@ -127,13 +135,13 @@ namespace Launcher {
|
||||
case 3:
|
||||
this.startgame = ((System.Windows.Controls.Label)(target));
|
||||
|
||||
#line 21 "..\..\MainWindow.xaml"
|
||||
#line 56 "..\..\MainWindow.xaml"
|
||||
this.startgame.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Label_MouseEnter);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 21 "..\..\MainWindow.xaml"
|
||||
#line 57 "..\..\MainWindow.xaml"
|
||||
this.startgame.MouseLeave += new System.Windows.Input.MouseEventHandler(this.startgame_MouseLeave);
|
||||
|
||||
#line default
|
||||
@@ -145,6 +153,21 @@ namespace Launcher {
|
||||
case 5:
|
||||
this.BiggerHide = ((Launcher.Icons.BiggerHide)(target));
|
||||
return;
|
||||
case 6:
|
||||
this.exitgame = ((System.Windows.Controls.Label)(target));
|
||||
|
||||
#line 89 "..\..\MainWindow.xaml"
|
||||
this.exitgame.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Exit_enter);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 89 "..\..\MainWindow.xaml"
|
||||
this.exitgame.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Exit_leave);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user