Vec3InputField 2

e
按·(esc下面那个)暂时关闭UI
This commit is contained in:
2025-02-12 21:29:40 +08:00
parent cbbfc624d6
commit 3a1ee5f9ef
9 changed files with 137 additions and 486 deletions

View File

@@ -63,13 +63,13 @@ namespace Ichni.Editor
for (int i = 1; i <= this.tabLayer; i++)
{
float lineX = 30 * i;
float lineX = 30 * i;
Instantiate(indentationLinePrefab, tabRect).GetComponent<RectTransform>().anchoredPosition = new Vector2(lineX, 0);
}
}
float posX = -5 + 30 * tabLayer;
float posX = -25 +( 30 * tabLayer);
tabMainRect.anchoredPosition = new Vector2(posX, tabMainRect.anchoredPosition.y);
tabButton.onClick.AddListener(SelectGameElement);
@@ -125,9 +125,9 @@ namespace Ichni.Editor
{
if (!expand && isExpanded)
{
foreach (var tab in childTabList)
for(int i=childTabList.Count;i>0;i--)
{
tab.SetExpansion(expand); //false
childTabList[i-1].SetExpansion(expand); //false
}
}