mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Expanded menus and bug fixes
This commit is contained in:
parent
cc28ac4bd4
commit
721443592f
146 changed files with 5891 additions and 269 deletions
|
@ -15,7 +15,6 @@ namespace RimWorldAnimationStudio
|
|||
public GameObject keyframeSelector;
|
||||
|
||||
private float lastUpdate = -1f;
|
||||
private float timeBetweenUpdates = 0.15f;
|
||||
private float largeStep = 0.1f;
|
||||
private float smallStep = 0.03f;
|
||||
|
||||
|
@ -24,7 +23,7 @@ namespace RimWorldAnimationStudio
|
|||
|
||||
public bool CanRepeatThisUpdate()
|
||||
{
|
||||
if (Time.unscaledTime > lastUpdate + timeBetweenUpdates)
|
||||
if (Time.unscaledTime > lastUpdate + Constants.actionRepeatSpeed)
|
||||
{
|
||||
lastUpdate = Time.unscaledTime;
|
||||
return true;
|
||||
|
@ -402,5 +401,22 @@ namespace RimWorldAnimationStudio
|
|||
{
|
||||
Camera.main.GetComponent<CameraController>().ResetCamera();
|
||||
}
|
||||
|
||||
public void StretchKeyframesToggle()
|
||||
{
|
||||
AnimationController.Instance.stretchKeyframesToggle.isOn = !AnimationController.Instance.stretchKeyframesToggle.isOn;
|
||||
}
|
||||
|
||||
public void OpenProjectHome()
|
||||
{
|
||||
if (Uri.IsWellFormedUriString(Constants.projectHome, UriKind.RelativeOrAbsolute))
|
||||
{ Application.OpenURL(Constants.projectHome); }
|
||||
}
|
||||
|
||||
public void OpenProjectWiki()
|
||||
{
|
||||
if (Uri.IsWellFormedUriString(Constants.projectWiki, UriKind.RelativeOrAbsolute))
|
||||
{ Application.OpenURL(Constants.projectWiki); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue