修修补补
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user