大幅优化

Signed-off-by: TRAfoer <lhf190@outlook.com>
This commit is contained in:
2025-10-05 11:45:32 +08:00
parent e145d65d38
commit 725009e354
66 changed files with 616229 additions and 175087 deletions

View File

@@ -64,7 +64,7 @@ public class SampleWindow : MovableWindow//该window高度为300横的要XWid
trackPositioner.enabled = isFocus;
trackPositioner.targetObject = trackHead;
}
InitializeWindow(title);
InitializeWindow(title, null, new Vector3(1.2f, 1.2f, 1.2f));
//
@@ -135,7 +135,10 @@ public class SampleWindow : MovableWindow//该window高度为300横的要XWid
LineMovepoint.localPosition = new(0, -beatDeviver * (songBeat - (int)songBeat), 0);
NoteMovepoint.localPosition = new(0, -beatDeviver * songBeat, 0);
if (RectTransformUtility.RectangleContainsScreenPoint(windowRect, Mouse.current.position.ReadValue()))
if (RectTransformUtility.RectangleContainsScreenPoint(windowRect, Mouse.current.position.ReadValue()) &&
selectedGameObject != DeviverInputField.gameObject &&
selectedGameObject != verticalInputField.gameObject &&
selectedGameObject != horizontalInputField.gameObject)
{
DetectNote();