-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
8 changed files
with
129 additions
and
8 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 |
---|---|---|
|
@@ -6,4 +6,5 @@ obj/ | |
# Files | ||
*.dll | ||
*.otf | ||
__*.cs | ||
__*.cs | ||
*.user |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,29 @@ | ||
<Window x:Class="osu_Player.SplashWindow" | ||
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:osu_Player" | ||
mc:Ignorable="d" AllowsTransparency="True" Background="Transparent" | ||
Title="Loading - osu! Player" Height="256" Width="256" WindowStyle="None" | ||
ShowInTaskbar="False" WindowStartupLocation="CenterScreen" | ||
Closing="OnClosing" Topmost="True" Opacity="0"> | ||
<Window.Triggers> | ||
<EventTrigger RoutedEvent="Window.Loaded"> | ||
<BeginStoryboard> | ||
<Storyboard> | ||
<DoubleAnimation Duration="0:0:1" To="1" | ||
Storyboard.TargetProperty="Opacity" /> | ||
</Storyboard> | ||
</BeginStoryboard> | ||
</EventTrigger> | ||
</Window.Triggers> | ||
<Window.Resources> | ||
<Storyboard x:Key="CloseAnimation" Completed="OnAnimationCompleted"> | ||
<DoubleAnimation Duration="0:0:0.5" To="0" | ||
Storyboard.TargetProperty="Opacity" /> | ||
</Storyboard> | ||
</Window.Resources> | ||
|
||
<Image Source="Resources/logo.png" /> | ||
</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,37 @@ | ||
using System; | ||
using System.ComponentModel; | ||
using System.Windows; | ||
using System.Windows.Media.Animation; | ||
|
||
namespace osu_Player | ||
{ | ||
/// <summary> | ||
/// SplashWindow.xaml の相互作用ロジック | ||
/// </summary> | ||
public partial class SplashWindow : Window | ||
{ | ||
private bool _isAnimationCompleted; | ||
|
||
public SplashWindow() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
public void OnClosing(object sender, CancelEventArgs e) | ||
{ | ||
if (!_isAnimationCompleted) | ||
{ | ||
e.Cancel = true; | ||
Storyboard sb = FindResource("CloseAnimation") as Storyboard; | ||
Storyboard.SetTarget(sb, this); | ||
sb.Begin(); | ||
} | ||
} | ||
|
||
public void OnAnimationCompleted(object sender, EventArgs e) | ||
{ | ||
_isAnimationCompleted = true; | ||
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