mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Code refactor
This commit is contained in:
parent
a55ba7b95b
commit
5ca7e486f8
243 changed files with 1065 additions and 625 deletions
|
@ -77,11 +77,21 @@ namespace RimWorldAnimationStudio
|
|||
|
||||
// Stage controls
|
||||
private static float playBackSpeed = 1f;
|
||||
public static bool isAnimating;
|
||||
private static bool isAnimating;
|
||||
public static bool stretchKeyframes;
|
||||
|
||||
// Stage controls set / get
|
||||
public static float PlayBackSpeed { get { return playBackSpeed; } set { Mathf.Clamp(Workspace.playBackSpeed, 0.01f, 10f); } }
|
||||
public static float PlayBackSpeed
|
||||
{
|
||||
get { return playBackSpeed; }
|
||||
set { Mathf.Clamp(Workspace.playBackSpeed, 0.01f, 10f); }
|
||||
}
|
||||
|
||||
public static bool IsAnimating
|
||||
{
|
||||
get { return isAnimating; }
|
||||
set { isAnimating = value; EventsManager.OnAnimationToggled(); }
|
||||
}
|
||||
|
||||
// Animation indices
|
||||
private static int stageID = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue