///////////////////////////////////////// public void RegisterFiles(P.Platform platform, TreeView_BuildPropertyR treeView_BuildPropertyR) { m_platform = platform; m_TreeView_BuildPropertyR = treeView_BuildPropertyR; var lst = new List <Item>(); InitID(); int index = 0; lst.Add(new Item { id = GetID(), displayName = S._Configuration, icon = EditorIcon.icons_processed_sceneset_icon_asset, }); foreach (var p in m_platform.parameters) { lst.Add(new Item { id = GetID(), displayName = p.name, index = index++, }); } m_registerItems = lst; ReloadAndSorting(); }
///////////////////////////////////////// public static void SelectItemUpdate() { if (s_currentPlatform != null && s_currentPlatform.buildTargetGroup != P.i.selectBuildTargetGroup) { s_currentPlatform = null; } if (s_currentPlatform == null) { s_currentPlatform = P.GetSelectPlatform(); //BMS.i.platformList.Add( m_currentPlatform ); } if (s_currentPlatform.parameters.Count == 0) { if (s_currentPlatform.buildTargetGroup != BuildTargetGroup.Unknown) { s_currentPlatform.AddParams("Debug"); s_currentPlatform.AddParams("Release"); s_currentPlatform.AddParams("Master"); s_changed = true; } } if (P.i.selectParamsIndex < 0) { P.i.selectParamsIndex = 0; } else if (s_currentPlatform.parameters.Count <= P.i.selectParamsIndex) { P.i.selectParamsIndex = s_currentPlatform.parameters.Count - 1; } }
///////////////////////////////////////// public void SelectPlatform(P.Platform platform, BuildPropertyBase drawer) { m_platform = platform; m_buildPlatformDrawer = drawer; m_treeViewL.RegisterFiles(m_platform, m_treeViewR); m_treeViewR.RegisterFiles(m_platform, m_buildPlatformDrawer); drawer.CheckError(); }
///////////////////////////////////////// public void RegisterFiles(P.Platform platform, BuildPropertyBase drawer) { var lst = new List <Item>(); InitID(); m_platform = platform; m_buildPlatformDrawer = drawer; m_registerItems = m_buildPlatformDrawer.CreateItemList(); ReloadAndSorting(); ExpandAll(); }