修复思考动作显示错误

This commit is contained in:
ZouJin 2024-04-18 05:09:46 +08:00
parent f603bf3f53
commit e197115a70
9 changed files with 14 additions and 6 deletions

View File

@ -211,7 +211,7 @@ namespace VPet_Simulator.Core
else else
{ {
Control.Type = TaskControl.ControlType.Status_Stoped; Control.Type = TaskControl.ControlType.Status_Stoped;
Control.EndAction?.Invoke(); //运行结束动画时事件 Control.EndAction?.Invoke(); //运行结束动画时事件
return; return;
} }
//要下一步 //要下一步

View File

@ -71,16 +71,20 @@ namespace VPet_Simulator.Windows.Interface
} }
} }
/// <summary> /// <summary>
/// 显示思考结束动画 /// 显示思考结束并说话
/// </summary> /// </summary>
public void DisplayThinkEnd(Action Next = null) public void DisplayThinkToSayRnd(string text, string desc = null)
{ {
var think = MainPlugin.MW.Core.Graph.FindGraphs("think", AnimatType.C_End, MainPlugin.MW.Core.Save.Mode); var think = MainPlugin.MW.Core.Graph.FindGraphs("think", AnimatType.C_End, MainPlugin.MW.Core.Save.Mode);
Next ??= MainPlugin.MW.Main.DisplayToNomal; Action Next = () => { MainPlugin.MW.Main.SayRnd(text, true, desc); };
if (think.Count > 0) if (think.Count > 0)
{ {
MainPlugin.MW.Main.Display(think[Function.Rnd.Next(think.Count)], Next); MainPlugin.MW.Main.Display(think[Function.Rnd.Next(think.Count)], Next);
} }
else
{
Next();
}
} }
/// <summary> /// <summary>
/// 聊天设置 /// 聊天设置

View File

@ -359,7 +359,11 @@ namespace VPet_Simulator.Windows
#endif #endif
} }
public bool IsOnMOD(MainWindow mw) => mw.Set.IsOnMod(Name); public bool IsOnMOD(MainWindow mw) => mw.Set.IsOnMod(Name);
#if DEBUG
public bool IsPassMOD(MainWindow mw) => true;
#else
public bool IsPassMOD(MainWindow mw) => mw.Set.IsPassMOD(Name); public bool IsPassMOD(MainWindow mw) => mw.Set.IsPassMOD(Name);
#endif
public void WriteFile() public void WriteFile()
{ {

View File

@ -269,7 +269,7 @@ namespace VPet_Simulator.Windows
{ {
if (winMutiPlayer == null) if (winMutiPlayer == null)
{ {
winInputBox.Show(this, "请输入访客表ID".Translate(), "加入访客表".Translate(), "", (id) => winInputBox.Show(this, "请输入访客表ID".Translate(), "加入访客表".Translate(), "1860000", (id) =>
{ {
if (ulong.TryParse(id, NumberStyles.HexNumber, null, out ulong lid)) if (ulong.TryParse(id, NumberStyles.HexNumber, null, out ulong lid))
{ {

View File

@ -19,7 +19,7 @@ public partial class MainWindow
/// <summary> /// <summary>
/// 版本号 /// 版本号
/// </summary> /// </summary>
public int version { get; } = 11011; public int version { get; } = 11012;
/// <summary> /// <summary>
/// 版本号 /// 版本号
/// </summary> /// </summary>