增加TubeGenerator,DUI架构调整

This commit is contained in:
SoulliesOfficial
2025-03-20 02:42:10 -04:00
parent 0e22f6ac21
commit 22c6ca80ca
33 changed files with 381 additions and 57 deletions

View File

@@ -12,6 +12,7 @@ namespace Ichni.Editor
{
public RectTransform WindowRect { get; set; }
public List<DynamicUIContainer> Containers { get; set; }
public Dictionary<string, DynamicUIElement> MarkedElements { get; set; }
public CompositeParameterWindow GenerateCompositeParameterWindow(IBaseElement baseElement, string title,
string parameterName)

View File

@@ -17,11 +17,13 @@ namespace Ichni.Editor
public RectTransform WindowRect { get; set; }
public List<DynamicUIContainer> Containers { get; set; }
public Dictionary<string, DynamicUIElement> MarkedElements { get; set; }
private void Awake()
{
WindowRect = inspectorRect;
Containers = new List<DynamicUIContainer>();
MarkedElements = new Dictionary<string, DynamicUIElement>();
}
/// <summary>
@@ -39,6 +41,7 @@ namespace Ichni.Editor
{
Containers.ForEach(container => Destroy(container.gameObject));
Containers.Clear();
MarkedElements.Clear();
}
public InspectorSecondaryWindow GenerateSecondaryWindow(GameElement gameElement, string title)

View File

@@ -10,16 +10,17 @@ namespace Ichni.Editor
public GameElement connectedGameElement;
public RectTransform WindowRect { get; set; }
public List<DynamicUIContainer> Containers { get; set; }
public Dictionary<string, DynamicUIElement> MarkedElements { get; set; }
public void Initialize(GameElement gameElement, string titleText)
{
StartCoroutine(WindowAnim.ShowPanelOnScale(gameObject));
WindowRect = windowRect;
Containers = new List<DynamicUIContainer>();
MarkedElements = new Dictionary<string, DynamicUIElement>();
connectedGameElement = gameElement;
InitializeWindow(titleText);
}
}
}