diff --git a/src/Update/Sucrose.Update/Assets/Icon/Confetti.png b/src/Update/Sucrose.Update/Assets/Icon/Confetti.png new file mode 100644 index 000000000..ff0005e1c Binary files /dev/null and b/src/Update/Sucrose.Update/Assets/Icon/Confetti.png differ diff --git a/src/Update/Sucrose.Update/Assets/Icon/Firework.png b/src/Update/Sucrose.Update/Assets/Icon/Firework.png new file mode 100644 index 000000000..6870d23e9 Binary files /dev/null and b/src/Update/Sucrose.Update/Assets/Icon/Firework.png differ diff --git a/src/Update/Sucrose.Update/View/DarkInfoBox.xaml b/src/Update/Sucrose.Update/View/DarkInfoBox.xaml index 402a90258..268c7d946 100644 --- a/src/Update/Sucrose.Update/View/DarkInfoBox.xaml +++ b/src/Update/Sucrose.Update/View/DarkInfoBox.xaml @@ -55,6 +55,8 @@ + + diff --git a/src/Update/Sucrose.Update/View/DarkInfoBox.xaml.cs b/src/Update/Sucrose.Update/View/DarkInfoBox.xaml.cs index ab8919e72..2c3a38741 100644 --- a/src/Update/Sucrose.Update/View/DarkInfoBox.xaml.cs +++ b/src/Update/Sucrose.Update/View/DarkInfoBox.xaml.cs @@ -22,7 +22,7 @@ internal DarkInfoBox(SSDEUT Type) Info_Image.Visibility = Visibility.Visible; break; case SSDEUT.Update: - Success_Image.Visibility = Visibility.Visible; + Firework_Image.Visibility = Visibility.Visible; break; case SSDEUT.Status: Warn_Image.Visibility = Visibility.Visible; @@ -32,7 +32,7 @@ internal DarkInfoBox(SSDEUT Type) break; case SSDEUT.Updating: Countdown(); - Success_Image.Visibility = Visibility.Visible; + Confetti_Image.Visibility = Visibility.Visible; break; case SSDEUT.Releases: Warn_Image.Visibility = Visibility.Visible; @@ -51,6 +51,14 @@ internal DarkInfoBox(SSDEUT Type) private async void Countdown() { + Close_Button.Content = $"{SSRER.GetValue("Update", "InfoBox", "CloseText")} 5"; + + await Task.Delay(1000); + + Close_Button.Content = $"{SSRER.GetValue("Update", "InfoBox", "CloseText")} 4"; + + await Task.Delay(1000); + Close_Button.Content = $"{SSRER.GetValue("Update", "InfoBox", "CloseText")} 3"; await Task.Delay(1000); diff --git a/src/Update/Sucrose.Update/View/LightInfoBox.xaml b/src/Update/Sucrose.Update/View/LightInfoBox.xaml index 7c36554e8..6def29dc1 100644 --- a/src/Update/Sucrose.Update/View/LightInfoBox.xaml +++ b/src/Update/Sucrose.Update/View/LightInfoBox.xaml @@ -55,6 +55,8 @@ + + diff --git a/src/Update/Sucrose.Update/View/LightInfoBox.xaml.cs b/src/Update/Sucrose.Update/View/LightInfoBox.xaml.cs index 00da79486..e005d6f0b 100644 --- a/src/Update/Sucrose.Update/View/LightInfoBox.xaml.cs +++ b/src/Update/Sucrose.Update/View/LightInfoBox.xaml.cs @@ -20,7 +20,7 @@ internal LightInfoBox(SSDEUT Type) Info_Image.Visibility = Visibility.Visible; break; case SSDEUT.Update: - Success_Image.Visibility = Visibility.Visible; + Firework_Image.Visibility = Visibility.Visible; break; case SSDEUT.Status: Warn_Image.Visibility = Visibility.Visible; @@ -30,7 +30,7 @@ internal LightInfoBox(SSDEUT Type) break; case SSDEUT.Updating: Countdown(); - Success_Image.Visibility = Visibility.Visible; + Confetti_Image.Visibility = Visibility.Visible; break; case SSDEUT.Releases: Warn_Image.Visibility = Visibility.Visible; @@ -47,6 +47,14 @@ internal LightInfoBox(SSDEUT Type) private async void Countdown() { + Close_Button.Content = $"{SSRER.GetValue("Update", "InfoBox", "CloseText")} 5"; + + await Task.Delay(1000); + + Close_Button.Content = $"{SSRER.GetValue("Update", "InfoBox", "CloseText")} 4"; + + await Task.Delay(1000); + Close_Button.Content = $"{SSRER.GetValue("Update", "InfoBox", "CloseText")} 3"; await Task.Delay(1000);