改了什么呢,我不知道啊
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Ichni.Editor
|
||||
public List<GameElement> currentSelectedElements { get; private set; }
|
||||
|
||||
public CopyPasteDeleteModule CopyPasteDeleteModule;
|
||||
|
||||
|
||||
public FindingModule FindingModule;
|
||||
|
||||
public OperationManager()
|
||||
@@ -24,25 +24,25 @@ namespace Ichni.Editor
|
||||
public void AddSelectElement(GameElement gameElement)
|
||||
{
|
||||
currentSelectedElements.Add(gameElement);
|
||||
|
||||
|
||||
gameElement.connectedTab.isSelected = true;
|
||||
if (gameElement.connectedTab.BgImage != null)
|
||||
{
|
||||
gameElement.connectedTab.BgImage.color = new Color(0.5f, 0.5f, 0.5f, 0.2f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void RemoveSelectElement(GameElement gameElement)
|
||||
{
|
||||
currentSelectedElements.Remove(gameElement);
|
||||
|
||||
|
||||
gameElement.connectedTab.isSelected = false;
|
||||
if (gameElement.connectedTab.BgImage != null)
|
||||
{
|
||||
gameElement.connectedTab.BgImage.color = new Color(0.5f, 0.5f, 0.5f, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void ClearSelectedElements()
|
||||
{
|
||||
currentSelectedElements.ForEach(gameElement =>
|
||||
@@ -53,7 +53,7 @@ namespace Ichni.Editor
|
||||
gameElement.connectedTab.BgImage.color = new Color(0.5f, 0.5f, 0.5f, 0);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
currentSelectedElements.Clear();
|
||||
}
|
||||
}
|
||||
@@ -69,7 +69,7 @@ namespace Ichni.Editor
|
||||
return element;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
LogWindow.Log("Element not found: " + elementName, Color.red);
|
||||
return null;
|
||||
}
|
||||
@@ -107,6 +107,7 @@ namespace Ichni.Editor
|
||||
{
|
||||
gameElement.parentElement.childElementList.Remove(gameElement); //从父物体的子物体列表中移除,避免报null
|
||||
gameElement.parentElement.connectedTab.childTabList.Remove(gameElement.connectedTab);
|
||||
gameElement.parentElement.connectedTab.SetStatus();
|
||||
}
|
||||
|
||||
gameElement.Delete();
|
||||
|
||||
Reference in New Issue
Block a user