From af8dd6142e4faf2310c0441555847e287709c716 Mon Sep 17 00:00:00 2001 From: minenice55 <43734252+minenice55@users.noreply.github.com> Date: Mon, 19 Sep 2022 10:04:56 -0400 Subject: [PATCH] fix event grid not scaling with song (#172) --- Assets/Scenes/Editor.unity | 8 ++++---- Assets/Scripts/LevelEditor/Timeline/Timeline.cs | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Assets/Scenes/Editor.unity b/Assets/Scenes/Editor.unity index 1761e0d2..a7f4f705 100644 --- a/Assets/Scenes/Editor.unity +++ b/Assets/Scenes/Editor.unity @@ -4820,7 +4820,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 0} - m_AnchoredPosition: {x: -289.15002, y: 2} + m_AnchoredPosition: {x: -289.15005, y: 2} m_SizeDelta: {x: -578.29, y: 49.92} m_Pivot: {x: 0.5, y: 0} --- !u!114 &156962255 @@ -25345,7 +25345,7 @@ MonoBehaviour: m_HandleRect: {fileID: 1589389271} m_Direction: 2 m_Value: 1 - m_Size: 0.99759334 + m_Size: 0.9999893 m_NumberOfSteps: 0 m_OnValueChanged: m_PersistentCalls: @@ -32369,7 +32369,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0.5} m_AnchorMax: {x: 1, y: 0.5} - m_AnchoredPosition: {x: 0, y: 129.91068} + m_AnchoredPosition: {x: 0, y: 129.90404} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 1} --- !u!114 &1154875944 @@ -49282,7 +49282,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 0, y: -84.99005} + m_AnchoredPosition: {x: 0, y: -84.99002} m_SizeDelta: {x: 320, y: -84.99} m_Pivot: {x: 0, y: 1} --- !u!1 &1852819572 diff --git a/Assets/Scripts/LevelEditor/Timeline/Timeline.cs b/Assets/Scripts/LevelEditor/Timeline/Timeline.cs index d0f0bd17..83c59fbd 100644 --- a/Assets/Scripts/LevelEditor/Timeline/Timeline.cs +++ b/Assets/Scripts/LevelEditor/Timeline/Timeline.cs @@ -282,6 +282,7 @@ namespace HeavenStudio.Editor.Track if (songBeats == 0) songBeats = 320; else songBeats += 10; TimelineContent.sizeDelta = new Vector2(songBeats, currentSizeDelta.y); + TimelineEventGrid.sizeDelta = new Vector2(songBeats, currentSizeDelta.y); } public void AutoBtnUpdate()