public BuildTab GetBuildTabFor(BuildInfo buildInfo) { foreach (var buildTab in new Array <BuildTab>(buildTabs.GetChildren())) { if (buildTab.BuildInfo.Equals(buildInfo)) { return(buildTab); } } var newBuildTab = new BuildTab(buildInfo); AddBuildTab(newBuildTab); return(newBuildTab); }
private bool IsEditedScene() { TabContainer tab = this.GetParentOfType <TabContainer>(); if (tab != null) { foreach (Node child in tab.GetChildren()) { if (child.Name == "Scene") { return(true); } } } return(false); }