Inspector Secondary Window & QuickCopy
inspector的二级界面,主要用于工具制作。 重新制作了Track的QuickCopy功能
This commit is contained in:
@@ -33,7 +33,8 @@ namespace Ichni.Editor
|
||||
public class CopyPasteDeleteModule
|
||||
{
|
||||
public GameElement copiedElement;
|
||||
|
||||
public List<GameElement> pastedElementList;
|
||||
|
||||
public void CopyElement(GameElement gameElement)
|
||||
{
|
||||
LogWindow.Log("Copied element: " + gameElement.elementName);
|
||||
@@ -49,6 +50,7 @@ namespace Ichni.Editor
|
||||
}
|
||||
|
||||
LogWindow.Log("Pasted element: " + copiedElement.elementName + " to " + parentElement.elementName);
|
||||
pastedElementList = new List<GameElement>();
|
||||
AffiliatedPaste(copiedElement, parentElement);
|
||||
}
|
||||
|
||||
@@ -74,9 +76,11 @@ namespace Ichni.Editor
|
||||
{
|
||||
gameElement.SaveBM();
|
||||
GameElement pastedElement = (gameElement.matchedBM as GameElement_BM).DuplicateBM(parent);
|
||||
pastedElementList.Add(pastedElement);
|
||||
|
||||
gameElement.submoduleList.ForEach(submodule =>
|
||||
{
|
||||
Debug.Log(submodule.GetType() + " is pasted.");
|
||||
submodule.SaveBM();
|
||||
(submodule.matchedBM as Submodule_BM).DuplicateBM(pastedElement);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user