修复思考动作显示错误

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

@ -71,16 +71,20 @@ namespace VPet_Simulator.Windows.Interface
}
}
/// <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);
Next ??= MainPlugin.MW.Main.DisplayToNomal;
Action Next = () => { MainPlugin.MW.Main.SayRnd(text, true, desc); };
if (think.Count > 0)
{
MainPlugin.MW.Main.Display(think[Function.Rnd.Next(think.Count)], Next);
}
else
{
Next();
}
}
/// <summary>
/// 聊天设置

View File

@ -359,7 +359,11 @@ namespace VPet_Simulator.Windows
#endif
}
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);
#endif
public void WriteFile()
{

View File

@ -269,7 +269,7 @@ namespace VPet_Simulator.Windows
{
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))
{

View File

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