mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复新播放系统相关BUG
This commit is contained in:
parent
722aa3188d
commit
8eddd5b318
@ -216,12 +216,12 @@ namespace VPet_Simulator.Core
|
|||||||
{
|
{
|
||||||
looptimes = 0;
|
looptimes = 0;
|
||||||
CountNomal = 0;
|
CountNomal = 0;
|
||||||
var name = Core.Graph.FindName(GraphType.State_ONE);
|
var name = Core.Graph.FindName(GraphType.StateONE);
|
||||||
var list = Core.Graph.FindGraphs(name, AnimatType.A_Start, Core.Save.Mode)?.FindAll(x => x.GraphInfo.Type == GraphType.State_ONE);
|
var list = Core.Graph.FindGraphs(name, AnimatType.A_Start, Core.Save.Mode)?.FindAll(x => x.GraphInfo.Type == GraphType.StateONE);
|
||||||
if (list != null && list.Count > 0)
|
if (list != null && list.Count > 0)
|
||||||
Display(list[Function.Rnd.Next(list.Count)], () => DisplayIdel_StateONEing(name));
|
Display(list[Function.Rnd.Next(list.Count)], () => DisplayIdel_StateONEing(name));
|
||||||
else
|
else
|
||||||
Display(GraphType.State_ONE, AnimatType.A_Start, DisplayIdel_StateONEing);
|
Display(GraphType.StateONE, AnimatType.A_Start, DisplayIdel_StateONEing);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 显示待机(模式1)情况
|
/// 显示待机(模式1)情况
|
||||||
@ -235,12 +235,12 @@ namespace VPet_Simulator.Core
|
|||||||
DisplayIdel_StateTWO(graphname);
|
DisplayIdel_StateTWO(graphname);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Display(graphname, AnimatType.C_End, GraphType.State_ONE, DisplayNomal);
|
Display(graphname, AnimatType.C_End, GraphType.StateONE, DisplayNomal);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Display(graphname, AnimatType.B_Loop, GraphType.State_ONE, DisplayIdel_StateONEing);
|
Display(graphname, AnimatType.B_Loop, GraphType.StateONE, DisplayIdel_StateONEing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -250,7 +250,7 @@ namespace VPet_Simulator.Core
|
|||||||
{
|
{
|
||||||
looptimes = 0;
|
looptimes = 0;
|
||||||
CountNomal++;
|
CountNomal++;
|
||||||
Display(graphname, AnimatType.A_Start, GraphType.State_TWO, DisplayIdel_StateTWOing);
|
Display(graphname, AnimatType.A_Start, GraphType.StateTWO, DisplayIdel_StateTWOing);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 显示待机(模式2)情况
|
/// 显示待机(模式2)情况
|
||||||
@ -259,11 +259,11 @@ namespace VPet_Simulator.Core
|
|||||||
{
|
{
|
||||||
if (Function.Rnd.Next(++looptimes) > Core.Graph.GraphConfig.GetDuration(graphname))
|
if (Function.Rnd.Next(++looptimes) > Core.Graph.GraphConfig.GetDuration(graphname))
|
||||||
{
|
{
|
||||||
Display(graphname, AnimatType.C_End, GraphType.State_TWO, DisplayIdel_StateONEing);
|
Display(graphname, AnimatType.C_End, GraphType.StateTWO, DisplayIdel_StateONEing);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Display(graphname, AnimatType.B_Loop, GraphType.State_TWO, DisplayIdel_StateTWOing);
|
Display(graphname, AnimatType.B_Loop, GraphType.StateTWO, DisplayIdel_StateTWOing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -326,7 +326,7 @@ namespace VPet_Simulator.Core
|
|||||||
Display(GraphType.Sleep, AnimatType.A_Start, DisplayBLoopingForce);
|
Display(GraphType.Sleep, AnimatType.A_Start, DisplayBLoopingForce);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Display(GraphType.Sleep, AnimatType.A_Start, (x) => DisplayBLoopingToNomal(Core.Graph.GraphConfig.GetDuration(x)));
|
Display(GraphType.Sleep, AnimatType.A_Start, (x) => DisplayBLoopingToNomal(x, Core.Graph.GraphConfig.GetDuration(x)));
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 显示B循环 (强制)
|
/// 显示B循环 (强制)
|
||||||
|
@ -224,7 +224,7 @@ namespace VPet_Simulator.Core
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name">动画名称</param>
|
/// <param name="name">动画名称</param>
|
||||||
/// <returns>持续时间</returns>
|
/// <returns>持续时间</returns>
|
||||||
public int GetDuration(string name) => Duration.GetInt(name, 20);
|
public int GetDuration(string name) => Duration.GetInt(name ?? "", 10);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获得 Str 里面储存的文本 (已翻译)
|
/// 获得 Str 里面储存的文本 (已翻译)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -83,11 +83,11 @@ namespace VPet_Simulator.Core
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 待机 模式1 (开始&循环&结束)
|
/// 待机 模式1 (开始&循环&结束)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
State_ONE,
|
StateONE,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 待机 模式2 (开始&循环&结束)
|
/// 待机 模式2 (开始&循环&结束)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
State_TWO,
|
StateTWO,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 开机 *
|
/// 开机 *
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -19,3 +19,4 @@ move:|graph#walk.left.faster:|TriggerLeft#200:|TriggerType#16:|CheckLeft#100:|Ch
|
|||||||
move:|graph#walk.right.faster:|TriggerRight#200:|TriggerType#32:|CheckRight#100:|CheckType#32:|SpeedX#20:|Distance#5:|ModeType#2:|
|
move:|graph#walk.right.faster:|TriggerRight#200:|TriggerType#32:|CheckRight#100:|CheckType#32:|SpeedX#20:|Distance#5:|ModeType#2:|
|
||||||
move:|graph#crawl.left:|TriggerLeft#200:|TriggerType#16:|CheckLeft#100:|CheckType#16:|SpeedX#-10:|Distance#8:|ModeType#14:|
|
move:|graph#crawl.left:|TriggerLeft#200:|TriggerType#16:|CheckLeft#100:|CheckType#16:|SpeedX#-10:|Distance#8:|ModeType#14:|
|
||||||
move:|graph#crawl.right:|TriggerRight#200:|TriggerType#32:|CheckRight#100:|CheckType#32:|SpeedX#10:|Distance#8:|ModeType#14:|
|
move:|graph#crawl.right:|TriggerRight#200:|TriggerType#32:|CheckRight#100:|CheckType#32:|SpeedX#10:|Distance#8:|ModeType#14:|
|
||||||
|
duration:|state#10:|squat#20:|boring#20:|sleep#20:|
|
Loading…
Reference in New Issue
Block a user