设置页面

This commit is contained in:
SoulliesOfficial
2025-03-08 23:11:55 -05:00
parent 076f1a637f
commit c326f3ef90
41 changed files with 2287 additions and 6174 deletions

View File

@@ -1,3 +1,4 @@
using System;
using System.Collections;
using System.Collections.Generic;
using Ichni.RhythmGame;
@@ -11,16 +12,26 @@ namespace Ichni.Editor
{
public GameObject hierarchyTabPrefab;
public RectTransform tabContainer;
public Button addFolderButton;
public List<HierarchyTab> tabList;
private void Awake()
{
tabList = new List<HierarchyTab>();
addFolderButton.onClick.AddListener(() =>
{
ElementFolder.GenerateElement("New Folder", Guid.NewGuid(), new List<string>(), true, null);
});
}
public HierarchyTab GenerateTab(GameElement targetElement, GameElement parentElement)
{
HierarchyTab tab = Instantiate(hierarchyTabPrefab, tabContainer).GetComponent<HierarchyTab>();
//if(parentElement.connectedTab!=null)tab.transform.SetSiblingIndex(parentElement.connectedTab.transform.GetSiblingIndex());
tab.SetTab(targetElement, parentElement);
tabList.Add(tab);
return tab;
}
public void FindTab(GameElement targetElement, bool findparent = false)
{
if (targetElement.connectedTab != null)