延时显示升级动画

This commit is contained in:
ZouJin 2024-08-14 13:01:11 +08:00
parent 249d8e8dfa
commit d203945940

View File

@ -2367,10 +2367,17 @@ namespace VPet_Simulator.Windows
var gf = Core.Graph.FindGraph("levelup", GraphInfo.AnimatType.Single, GameSavesData.GameSave.Mode);
if (gf != null)
{
Task.Run(() =>
{
Thread.Sleep(5000);
Main.Display(gf, Main.DisplayToNomal);
});
}
if (args.IsLevelMaxUp)
{//告知用户上限等级上升
Task.Run(() =>
{
Thread.Sleep(5000);
Dispatcher.Invoke(() =>
{
Main.Say("邦邦咔邦,{0}等级突破了!".Translate(Name));
@ -2378,6 +2385,7 @@ namespace VPet_Simulator.Windows
1000 + args.BeforeLevelMax * 100, 100 * GameSavesData.GameSave.LevelMax, GameSavesData.GameSave.LevelMax),
"桌宠等级突破".Translate());
});
});
}
}
}