Signed-off-by: TRAfoer <lhf190@outlook.com>
This commit is contained in:
2025-07-23 11:40:29 +08:00
parent 2dae60d368
commit 6d010467ae
60 changed files with 196637 additions and 17425 deletions

View File

@@ -26,6 +26,7 @@ public class EventPoint : MonoBehaviour
public FlexibleFloatTab FatherTab;
public TMP_Text ViewText;
public static bool Locked = false;
public int BeatDeviver => FatherTab.BeatDeviver;
public void Initialize(AnimatedFloat animatedFloat)
{
@@ -51,8 +52,13 @@ public class EventPoint : MonoBehaviour
}
public float value => FatherTab.scalevalue;
public void Refresh()
public void Refresh(bool changePos = false)
{
if (changePos)
{
Initialize(animatedFloat);
}
UpdateValue();
ReDraw(value);
}
@@ -138,6 +144,7 @@ public class EventPoint : MonoBehaviour
public void SelectButtonClick()//unity内当按钮按下时
{
if (Locked) return;
if (Keyboard.current.leftShiftKey.isPressed)
{
if (FatherTab.FatherWindow.ClipBoard[FatherTab.Title].Contains(animatedFloat))
@@ -190,7 +197,7 @@ public class EventPoint : MonoBehaviour
}
private void UpdateValue()
public void UpdateValue()
{
// 设置新的连接点并更新UI
FatherTab.FatherWindow.ConnectedPoint = this;
@@ -270,6 +277,7 @@ public class EventPoint : MonoBehaviour
}
}
// 添加静态方法:克隆 AnimatedFloat 并应用时间偏移
/// <summary>
/// 克隆一个 AnimatedFloat 对象,并根据偏移量调整其开始和结束时间。