Signed-off-by: TRAfoer <lhf190@outlook.com>
This commit is contained in:
2025-07-15 22:22:51 +08:00
parent c184035378
commit f965857267
17 changed files with 17046 additions and 17637 deletions

View File

@@ -114,6 +114,7 @@ public class FlexibleFloatTab : MonoBehaviour
{
AddEvent();
}
}
// 添加事件

View File

@@ -59,6 +59,7 @@ public partial class GraphicalFlexibleFloatWindow : MovableWindow
};
XDeviverScale("1");
EvEndpointChangeButton.onClick.AddListener(EvEndpointStartChange);
GetComponent<RectTransform>().sizeDelta = new Vector2(1400, (FlexibleFloats.Length + 1) * 200 + 50);
}
public void AddUnit(FlexibleFloat flexibleFloat, string Subtitle)
{
@@ -196,6 +197,7 @@ public partial class GraphicalFlexibleFloatWindow
public void Update()
{
if (Keyboard.current.deleteKey.isPressed && ConnectedPoint != null)
{
RemoveConnectedPoint();
@@ -219,6 +221,23 @@ public partial class GraphicalFlexibleFloatWindow
}
}
}
if (RectTransformUtility.RectangleContainsScreenPoint(GetComponent<RectTransform>(), Mouse.current.position.ReadValue()))
{
if (Keyboard.current.aKey.wasPressedThisFrame)
{
if (ConnectedPoint != null)
{
ConnectedPoint.animatedFloat.endValue *= -1;
ConnectedPoint.animatedFloat.startValue *= -1;
ConnectedPoint.ReDraw(scalevalue);
}
}
}
}
public void PasteClipboard()