Added editable stage lengths

This commit is contained in:
AbstractConcept 2022-09-18 00:01:12 -05:00
parent 8523abf957
commit d2ca61c61c
194 changed files with 820 additions and 269 deletions

View file

@ -26,7 +26,20 @@ namespace RimWorldAnimationStudio
private static int historyIndex = 0;
public static ActorManipulationMode actorManipulationMode = ActorManipulationMode.Pan;
public static int animationClipWindowSize = 600;
public static int StageWindowSize
{
get
{
if (animationDef == null)
{ return -1; }
if (animationDef.animationStages[stageID].stageWindowSize < 0)
{ return animationDef.animationStages[stageID].animationClips.Select(x => x.duration).Max(); }
return animationDef.animationStages[stageID].stageWindowSize;
}
}
public PawnKeyframe GetCurrentPawnKeyframe(bool makeNewIfNull = true)
{