示例#1
0
        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);
        }
示例#2
0
        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);
        }