From a359665ba0e0c6549a777042c9a77ead1c24800e Mon Sep 17 00:00:00 2001 From: Taiizor <41683699+Taiizor@users.noreply.github.com> Date: Thu, 14 Sep 2023 15:24:53 +0300 Subject: [PATCH] Update Improvement --- .../Sucrose.Update/Assets/Icon/Confetti.png | Bin 0 -> 2953 bytes .../Sucrose.Update/Assets/Icon/Firework.png | Bin 0 -> 2984 bytes src/Update/Sucrose.Update/View/DarkInfoBox.xaml | 2 ++ .../Sucrose.Update/View/DarkInfoBox.xaml.cs | 12 ++++++++++-- src/Update/Sucrose.Update/View/LightInfoBox.xaml | 2 ++ .../Sucrose.Update/View/LightInfoBox.xaml.cs | 12 ++++++++++-- 6 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 src/Update/Sucrose.Update/Assets/Icon/Confetti.png create mode 100644 src/Update/Sucrose.Update/Assets/Icon/Firework.png 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 0000000000000000000000000000000000000000..ff0005e1cf9abcd7172e495ec4f727d71e9570f2 GIT binary patch literal 2953 zcmV;43wHF0P)Px#1am@3R0s$N2z&@+hyVZ!Gf6~2RCt{2ntzN`)fLA-=glnaFWdn{gyqMe!~p6t zYE6rcWi~Ns6_F(=fi|WLiQ1Z0m}wd{`iDzWTT6{Ir2n)v)wfA2i%rAAN~tmJ%xYRo zMIAsCP?=r%QAK|2!0zns?9SZ&@!s2gGdn-tEcBmtzsY9b+#lzjbM8I&+;i@QNlaoA zlbFOLCh`9YaneYI@dI0c772~-la4m&h*DGhhc{I+xVJUo85+2}OLMtGr+;>Hypp~} zcw7Vc0iRV~h+jK22ZURID9}=S z+nVqUr7m}9ZdY)kCZNJ}0}C+(Z;=qOO8PrdKpa>OfJQ*J(B_12o&qd%D_m=fuZYUw zWP(be>>hyK1hVKVOjL!-+gUZ$afNIGX;a4R0C*u2RRlbhGFk$b*{xJzDyCaj0TMz7 zLbf755LIEkCHtZG*3+)n(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(r?9I+l)jOGoEM_H@{ydb;l*m3nt zK<&TlGlnnE=i*^&^dv$DZdxn#-4=3}v}~%UT`xFx&g@GMsD)0*GmoN8&gClAs=wm|wpcJG1Y|ue%1Vbo61u@<%bk|aITb?Q9z=@fZ zSHPP~UgOfy5fl-p?yFP|u^jqX-z(6dkS@@ILdMKDN>3f_Ub{j-bWj1a>p=|(D#WMA zh5-aERLhQ%>GksGfOPj}xu2FwgjcXpDFSn!IOO>4@EDAjBZ6898QVik2?D5`S0R@0 z(o;)~zlQc$4O4ZiHj65AkLcumz&(Q}9Pw?n*TxtWsr)&OAd#_eYvYqPYg4PEy2JMH z5(PQFJ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..6870d23e94b274e086e28598d9326bb32bca9ed6 GIT binary patch literal 2984 zcmV;Z3s>}sP)Px#1am@3R0s$N2z&@+hyVZ!Qb|NXRCt{2n{A9-RT;;B&$)MIw=df5w!9Px4n$~@yg(u#CvFrvnnwk8;(gl-WD#u%3md@vzlH70!U10~^$h<00If<){RqX-Byv!Icd zw$rWH7u2@$((-1vK-=BD_nyZO^RhF$Gdp*ucc>ryf10!RInT>~pL5Q0&be2J2%1SI ze6f2$^Rd+abX0m<4HK0jAKMSw0i^s)azj*lE8%5&ws^Uo`=Znt838V4sPtP2`or|m zLucLi7iy4tSYlswpRHATk0ZojE8{e)G2k5zw< zzP##_jr6;aS7o0n`&`IJ<2ATZDFQICMPVy|hur{dsV5r*_G*E7g@$|rcxg7>lFp9- z$>_W-AhHYqaBzlEIaO>%?rbX%DFKqskGYr>DnE*02BOlde_8Pn&0VuRDt(oRbO-=Q zI-e)PG3t#Zuk$Bt4)H{Ds}j<;>y@Z-72FOTx;l=yqU(ufYRNc?S66-vY!6 zE%`+#yGO5IrZ2DU3u_}30bZu(Cn!1J_y49NJ=cWkBXFen^G40}Tpre;N~qe~O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k+VAC7Am}X>B&3@?DQfw~TQkX|m+QGt zGs#fz4#)aNpLL}@;ksNc>0KwLKNk^=G80<;{IQ~z-`F7xZ + + 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);