修了一下timeline
本来想重写的但是无力反抗(
This commit is contained in:
@@ -57,18 +57,11 @@ namespace Ichni.Editor
|
||||
pointer.gameObject.SetActive(isActive);
|
||||
});
|
||||
if (OnePointer != null) moveTabPoint.localPosition =
|
||||
new Vector3(timePointerArea.localPosition.x + OnePointer.transform.localPosition.x - timePointerInterval, 0, 0);
|
||||
new Vector3(timePointerArea.localPosition.x + OnePointer.transform.localPosition.x - 30f, 0, 0);
|
||||
|
||||
foreach (var i in moveTabPoint.transform.GetComponentsInChildren<SubTab>())
|
||||
{
|
||||
if (i.Time >= songInformation.songTime)
|
||||
{
|
||||
i.transform.localScale = new Vector3(1, 1, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
i.transform.localScale = new Vector3(0, 0, 0);
|
||||
}
|
||||
i.gameObject.transform.localScale = i.Time >= timeline.songTime ? Vector3.one : Vector3.zero;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -141,7 +134,10 @@ namespace Ichni.Editor
|
||||
/// </summary>
|
||||
/// <param name="beatDivider">细分X分音符</param>
|
||||
/// <param name="index"></param>
|
||||
TimePointer OnePointer = null;
|
||||
|
||||
|
||||
TimePointer OnePointer = null;//第一个pointer
|
||||
|
||||
private void CreatePointer(int beatDivider, int index)
|
||||
{
|
||||
TimePointer pointer = Instantiate(timePointerPrefab, timePointerArea).GetComponent<TimePointer>();
|
||||
@@ -155,7 +151,7 @@ namespace Ichni.Editor
|
||||
pointer.intervalUnitText.text = Mathf.RoundToInt(index * intervalUnit).ToString();
|
||||
if (index == 0)
|
||||
{
|
||||
OnePointer = timePointerList[timePointerList.Count - 1];
|
||||
OnePointer = pointer;
|
||||
}
|
||||
if (beatDivider > 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user