@@ -1,6 +1,5 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.Eventing.Reader;
|
||||
using System.Linq;
|
||||
using DG.Tweening;
|
||||
using Ichni;
|
||||
@@ -33,10 +32,8 @@ public partial class GraphicalFlexibleFloatWindow : MovableWindow
|
||||
public int BeatNextDeviver = 1;
|
||||
public void Initialize(IBaseElement baseElement, string title, FlexibleFloat[] FlexibleFloats, string[] Subtitles)
|
||||
{
|
||||
|
||||
InitializeWindow(title, null, new Vector3(1f, 1f, 1f));
|
||||
scalevalue = 5;
|
||||
transform.localScale = Vector3.zero;
|
||||
StartCoroutine(WindowAnim.ShowPanelOnScale(gameObject));
|
||||
this.connectedBaseElement = baseElement;
|
||||
this.title.text = title;
|
||||
unitList = new List<FlexibleFloatTab>();
|
||||
|
||||
@@ -46,8 +46,7 @@ namespace Ichni.Editor
|
||||
if (targetGameElement != null)
|
||||
transform.position = targetGameElement.transform.position;
|
||||
transform.localScale = Vector3.zero;
|
||||
StartCoroutine(WindowAnim.ShowPanelOnScale(gameObject));
|
||||
|
||||
transform.DOScale(Vector3.one, 0.2f).SetEase(Ease.OutBack);
|
||||
targetGameElement.OnDestroyAsObservable()
|
||||
.Subscribe(_ =>
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user