修修补补

This commit is contained in:
2025-03-16 01:45:49 +08:00
parent 41d944c9e1
commit b3caa0c11e
16 changed files with 944 additions and 72 deletions

View File

@@ -63,7 +63,9 @@ namespace Ichni.Editor
for (int i = 1; i <= this.tabLayer; i++)
{
float lineX = 30 * i - 15;
Instantiate(indentationLinePrefab, tabRect).GetComponent<RectTransform>().anchoredPosition = new Vector2(lineX, 0);
var d = Instantiate(indentationLinePrefab, tabRect);
d.GetComponent<RectTransform>().anchoredPosition = new Vector2(lineX, 0);
StartCoroutine(WindowAnim.ShowPanelOnScale(d.gameObject));
}
}
@@ -145,8 +147,8 @@ namespace Ichni.Editor
for (int i = 0; i < 10; i++)
{
AnimationCurveEvaluator.Evaluate(AnimationCurveType.OutCubic, i / 10f);
//expandButton.transform.GetComponentInChildren<TMP_Text>().rectTransform.Rotate(new Vector3(0, 0, 18));
expandButton.transform.GetComponentInChildren<TMP_Text>().rectTransform.localRotation =
Quaternion.Euler(0, 0, isExpanded ? 18 * i : 180 - 18 * i);
yield return null;
}
expandButton.transform.GetComponentInChildren<TMP_Text>().rectTransform.localRotation = Quaternion.Euler(0, 0, isExpanded ? 180 : 0);