mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
延时显示升级动画
This commit is contained in:
parent
249d8e8dfa
commit
d203945940
@ -2367,10 +2367,17 @@ namespace VPet_Simulator.Windows
|
|||||||
var gf = Core.Graph.FindGraph("levelup", GraphInfo.AnimatType.Single, GameSavesData.GameSave.Mode);
|
var gf = Core.Graph.FindGraph("levelup", GraphInfo.AnimatType.Single, GameSavesData.GameSave.Mode);
|
||||||
if (gf != null)
|
if (gf != null)
|
||||||
{
|
{
|
||||||
|
Task.Run(() =>
|
||||||
|
{
|
||||||
|
Thread.Sleep(5000);
|
||||||
Main.Display(gf, Main.DisplayToNomal);
|
Main.Display(gf, Main.DisplayToNomal);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (args.IsLevelMaxUp)
|
if (args.IsLevelMaxUp)
|
||||||
{//告知用户上限等级上升
|
{//告知用户上限等级上升
|
||||||
|
Task.Run(() =>
|
||||||
|
{
|
||||||
|
Thread.Sleep(5000);
|
||||||
Dispatcher.Invoke(() =>
|
Dispatcher.Invoke(() =>
|
||||||
{
|
{
|
||||||
Main.Say("邦邦咔邦,{0}等级突破了!".Translate(Name));
|
Main.Say("邦邦咔邦,{0}等级突破了!".Translate(Name));
|
||||||
@ -2378,6 +2385,7 @@ namespace VPet_Simulator.Windows
|
|||||||
1000 + args.BeforeLevelMax * 100, 100 * GameSavesData.GameSave.LevelMax, GameSavesData.GameSave.LevelMax),
|
1000 + args.BeforeLevelMax * 100, 100 * GameSavesData.GameSave.LevelMax, GameSavesData.GameSave.LevelMax),
|
||||||
"桌宠等级突破".Translate());
|
"桌宠等级突破".Translate());
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user