Exemplo n.º 1
0
 void OnWizardCreate()
 {
     if (layoutname == "Default")
     {
         if (!EditorUtility.DisplayDialog("警告", "确定覆盖默认布局?", "是", "否"))
         {
             return;
         }
     }
     if (m_Layout != null)
     {
         m_Layout.SaveLayout(layoutname, m_TreeId, m_RootNode);
     }
     m_Layout   = null;
     m_RootNode = null;
     m_TreeId   = null;
 }
Exemplo n.º 2
0
 void OnWizardCreate()
 {
     if (layoutname == "Default")
     {
         if (!EditorUtility.DisplayDialog("Warning", "Are you sure to override the default layout?", "Yes", "No"))
         {
             return;
         }
     }
     if (m_Layout != null)
     {
         m_Layout.SaveLayout(layoutname, m_TreeId, m_RootNode);
     }
     m_Layout   = null;
     m_RootNode = null;
     m_TreeId   = null;
 }
Exemplo n.º 3
0
        private void SaveLayoutCfgs(string layoutName)
        {
            if (string.IsNullOrEmpty(layoutName))
            {
                return;
            }
            string treeId = GetTreeIndentifier();

            if (string.IsNullOrEmpty(treeId))
            {
                return;
            }
            if (m_Layout == null)
            {
                return;
            }
            m_Layout.SaveLayout(layoutName, treeId, m_Root);
        }