mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Added editable stage lengths
This commit is contained in:
parent
8523abf957
commit
d2ca61c61c
194 changed files with 820 additions and 269 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue