mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-13 21:02:08 +08:00
1.1.1 -> 1.1.2 第20次更新
This commit is contained in:
parent
ee1aa2be3e
commit
091442e3c6
@ -291,7 +291,7 @@ public partial class MainWin : Window
|
|||||||
|
|
||||||
while (GameFlashInterval > 10)
|
while (GameFlashInterval > 10)
|
||||||
{
|
{
|
||||||
Left = random.Next(0, (int)((int)SystemParameters.PrimaryScreenWidth - ActualWidth));
|
Left = random.Next(0, (int)(SystemParameters.PrimaryScreenWidth - ActualWidth));
|
||||||
Top = random.Next(0, (int)(SystemParameters.PrimaryScreenHeight - ActualHeight));
|
Top = random.Next(0, (int)(SystemParameters.PrimaryScreenHeight - ActualHeight));
|
||||||
|
|
||||||
PaletteHelper paletteHelper = new();
|
PaletteHelper paletteHelper = new();
|
||||||
@ -301,6 +301,9 @@ public partial class MainWin : Window
|
|||||||
newTheme.SetBaseTheme(random.Next(2) == 0 ? BaseTheme.Light : BaseTheme.Dark);
|
newTheme.SetBaseTheme(random.Next(2) == 0 ? BaseTheme.Light : BaseTheme.Dark);
|
||||||
paletteHelper.SetTheme(newTheme);
|
paletteHelper.SetTheme(newTheme);
|
||||||
|
|
||||||
|
if (GameFlashInterval > 100)
|
||||||
|
GameFlashInterval += random.Next(1, 4);
|
||||||
|
|
||||||
await Task.Delay(GameFlashInterval);
|
await Task.Delay(GameFlashInterval);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -309,10 +312,18 @@ public partial class MainWin : Window
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (GameFlashInterval > 100)
|
switch (GameFlashInterval)
|
||||||
GameFlashInterval -= 150;
|
{
|
||||||
else if (GameFlashInterval > 10)
|
case > 250:
|
||||||
GameFlashInterval -= 30;
|
GameFlashInterval -= 150;
|
||||||
|
break;
|
||||||
|
case > 100:
|
||||||
|
GameFlashInterval = 100;
|
||||||
|
break;
|
||||||
|
case > 10:
|
||||||
|
GameFlashInterval -= 30;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (GameFlashInterval > 10)
|
if (GameFlashInterval > 10)
|
||||||
MessageBox.Show($"{MainConst._GameGradeMsg} {GameFlashInterval}");
|
MessageBox.Show($"{MainConst._GameGradeMsg} {GameFlashInterval}");
|
||||||
|
Loading…
Reference in New Issue
Block a user