mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 09:57:37 +02:00
start gearing up for track 5
it is battery acid color (i will change it) i probably did this wrong
This commit is contained in:
@ -21,7 +21,7 @@ namespace HeavenStudio.Editor.Track
|
||||
private Vector2 lastMousePos;
|
||||
public List<TimelineEventObj> eventObjs = new List<TimelineEventObj>();
|
||||
private bool lastFrameDrag;
|
||||
public int LayerCount = 4;
|
||||
public int LayerCount = 5;
|
||||
public bool metronomeEnabled;
|
||||
public bool resizable;
|
||||
private bool movingPlayback;
|
||||
@ -652,12 +652,12 @@ namespace HeavenStudio.Editor.Track
|
||||
public float SnapToLayer(float y)
|
||||
{
|
||||
float size = LayerHeight();
|
||||
return Mathf.Clamp(Mathp.Round2Nearest(y, size), -size * 3f, 0f);
|
||||
return Mathf.Clamp(Mathp.Round2Nearest(y, size), -size * 4f, 0f);
|
||||
}
|
||||
|
||||
public float LayerHeight()
|
||||
{
|
||||
return LayersRect.rect.height / 4f;
|
||||
return LayersRect.rect.height / 5f;
|
||||
}
|
||||
|
||||
public void SetPlaybackSpeed(float speed)
|
||||
|
Reference in New Issue
Block a user