修复 处于某些动作时,触发别的动作存在bug

Fix #92
This commit is contained in:
ZouJin 2023-11-21 00:58:09 +08:00
parent 2157095823
commit c259f4e9cb
3 changed files with 3 additions and 16 deletions

View File

@ -273,6 +273,7 @@ namespace VPet_Simulator.Core
{
if (Function.Rnd.Next(++looptimes) > Core.Graph.GraphConfig.GetDuration(graphname))
{
looptimes = 0;
Display(graphname, AnimatType.C_End, GraphType.StateTWO, DisplayIdel_StateONEing);
}
else

View File

@ -7,16 +7,10 @@ using System.Threading.Tasks;
using System.Windows;
using VPet_Simulator.Core;
using System.Windows.Forms;
using MessageBox = System.Windows.MessageBox;
using ContextMenu = System.Windows.Forms.ContextMenu;
using MenuItem = System.Windows.Forms.MenuItem;
using Application = System.Windows.Application;
using System.Timers;
using LinePutScript;
using static VPet_Simulator.Core.GraphCore;
using Panuon.WPF.UI;
using VPet_Simulator.Windows.Interface;
using System.Windows.Controls;
using System.Linq;
using LinePutScript.Localization.WPF;
using System.Runtime.InteropServices;
@ -25,9 +19,7 @@ using static VPet_Simulator.Windows.PerformanceDesktopTransparentWindow;
using Line = LinePutScript.Line;
using static VPet_Simulator.Core.GraphInfo;
using System.Globalization;
using static VPet_Simulator.Windows.Interface.ExtensionFunction;
using LinePutScript.Dictionary;
using System.Windows.Media.Imaging;
namespace VPet_Simulator.Windows
{
@ -388,12 +380,6 @@ namespace VPet_Simulator.Windows
Core.Save = GameSavesData.GameSave;
}
private void M_menu_Popup(object sender, EventArgs e)
{
throw new NotImplementedException();
}
private void WorkTimer_E_FinishWork(WorkTimer.FinishWorkInfo obj)
{
if (obj.work.Type == GraphHelper.Work.WorkType.Work)

View File

@ -5,9 +5,9 @@
xmlns:ll="clr-namespace:LinePutScript.Localization.WPF;assembly=LinePutScript.Localization.WPF"
xmlns:local="clr-namespace:VPet_Simulator.Windows"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI"
xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI" d:DesignHeight="1000"
xmlns:system="clr-namespace:System;assembly=mscorlib" Width="{ll:Dbe SettingWidth, DefValue=650}" Height="550"
Closing="WindowX_Closing" FontSize="16" Style="{DynamicResource BaseWindowXStyle}" Topmost="True"
Closing="WindowX_Closing" FontSize="16" Style="{DynamicResource BaseWindowXStyle}" Topmost="True"
WindowStartupLocation="CenterScreen" mc:Ignorable="d">
<!--<pu:WindowX.Resources>
<DataTemplate x:Key="DIYDataTemplate">