生病的时候也能睡觉

This commit is contained in:
ZouJin 2024-06-13 20:57:27 +08:00
parent 3b496e745d
commit 08fc7ea6bc
8 changed files with 13 additions and 13 deletions

View File

@ -417,19 +417,19 @@ namespace VPet_Simulator.Core
private void Sleep_Click(object sender, RoutedEventArgs e)
{
this.Visibility = Visibility.Collapsed;
if (m.Core.Save.Mode != IGameSave.ModeType.Ill)
if (m.State == Main.WorkingState.Sleep)
{
m.State = WorkingState.Nomal;
m.Display(GraphType.Sleep, AnimatType.C_End, m.DisplayNomal);
}
else if (m.State == Main.WorkingState.Nomal)
m.DisplaySleep(true);
else
{
m.WorkTimer.Stop(() => m.DisplaySleep(true));
}
if (m.State == Main.WorkingState.Sleep)
{
if (m.Core.Save.Mode == IGameSave.ModeType.Ill)
return;
m.State = WorkingState.Nomal;
m.Display(GraphType.Sleep, AnimatType.C_End, m.DisplayNomal);
}
else if (m.State == Main.WorkingState.Nomal)
m.DisplaySleep(true);
else
{
m.WorkTimer.Stop(() => m.DisplaySleep(true));
}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB