2025-02-09 23:47:42 -05:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Ichni.RhythmGame;
|
|
|
|
|
using UnityEngine;
|
2025-02-10 15:56:10 +08:00
|
|
|
using UnityEngine.UI;
|
2025-02-09 23:47:42 -05:00
|
|
|
|
|
|
|
|
namespace Ichni.Editor
|
|
|
|
|
{
|
|
|
|
|
public class Hierarchy : StaticWindow
|
|
|
|
|
{
|
|
|
|
|
public GameObject hierarchyTabPrefab;
|
|
|
|
|
public RectTransform tabContainer;
|
|
|
|
|
public List<HierarchyTab> tabList;
|
2025-02-10 15:56:10 +08:00
|
|
|
|
2025-02-09 23:47:42 -05:00
|
|
|
public void GenerateTab(GameElement targetElement, GameElement parentElement)
|
|
|
|
|
{
|
|
|
|
|
HierarchyTab tab = Instantiate(hierarchyTabPrefab, tabContainer).GetComponent<HierarchyTab>();
|
|
|
|
|
tab.SetTab(targetElement, parentElement);
|
2025-02-10 15:56:10 +08:00
|
|
|
|
2025-02-09 23:47:42 -05:00
|
|
|
tabList.Add(tab);
|
|
|
|
|
}
|
2025-02-10 15:56:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-02-09 23:47:42 -05:00
|
|
|
}
|
|
|
|
|
}
|