private void OnGUI_ServerProtoXML_C()
    {
        GUILayout.BeginHorizontal();
        {
            GUILayout.Label("搜索:", GUILayout.Width(40));
            SerachTxt = EditorGUILayout.TextField(SerachTxt, GUILayout.Width(300));

            if (GUILayout.Button("刷新", GUILayout.Width(80)))
            {
                ProtobufXMLParseFolder.RefushFolder();
            }

            GUILayout.Space(10);

            if (GUILayout.Button("生成", GUILayout.Width(80)))
            {
            }

            GUILayout.Space(10);

            if (GUILayout.Button("打开", GUILayout.Width(80)))
            {
                FileUtilityEditor.Open(ProtobufXMLParseFolder.OrigionFolder);
            }
        }
        GUILayout.EndHorizontal();

        ProtobufXMLParseFolder.ShowFolderFileList(SerachTxt);
    }
Ejemplo n.º 2
0
 public void OnGUI()
 {
     if (GUILayout.Button("打开工程"))
     {
         FileUtilityEditor.Open(URL.LocalProjectPath);
     }
     if (GUILayout.Button("打开工程缓存配置文件夹"))
     {
         FileUtilityEditor.Open(URL.LocalProjectPath + "/ProjectCaches");
     }
 }
Ejemplo n.º 3
0
    private void OnGUICommon()
    {
        #region 路径显示
        EditorGUILayout.BeginHorizontal();
        EditorGUILayout.LabelField(string.Format("服务器XML文件夹路径"), GUILayout.Width(200));
        if (GUILayout.Button("打开文件夹", GUILayout.Width(100)))
        {
            FileUtilityEditor.Open(RealServerProtoXMLPath);
        }
        EditorGUILayout.LabelField(RealServerProtoXMLPath);
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.BeginHorizontal();
        EditorGUILayout.LabelField(string.Format("服务器proto文件夹路径"), GUILayout.Width(200));
        if (GUILayout.Button("打开文件夹", GUILayout.Width(100)))
        {
            FileUtilityEditor.Open(RealServerProtoPath);
        }
        EditorGUILayout.LabelField(RealServerProtoPath);
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.BeginHorizontal();
        EditorGUILayout.LabelField(string.Format("本地proto文件夹路径"), GUILayout.Width(200));
        if (GUILayout.Button("打开文件夹", GUILayout.Width(100)))
        {
            FileUtilityEditor.Open(LocalServerProtoPath);
        }
        EditorGUILayout.LabelField(LocalServerProtoPath);
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.BeginHorizontal();
        EditorGUILayout.LabelField(string.Format("本地xml文件夹路径"), GUILayout.Width(200));
        if (GUILayout.Button("打开文件夹", GUILayout.Width(100)))
        {
            FileUtilityEditor.Open(LocalServerProtoXMLPath);
        }
        EditorGUILayout.LabelField(LocalServerProtoXMLPath);
        EditorGUILayout.EndHorizontal();
        #endregion

        #region  钮
        EditorGUILayout.BeginHorizontal();
        EditorGUILayout.LabelField("数据操作:", GUILayout.Width(60));
        if (GUILayout.Button("保存数据", GUILayout.Width(100)))
        {
            Save();
        }
        if (GUILayout.Button("一键提交", GUILayout.Width(100)))
        {
        }
        EditorGUILayout.EndHorizontal();
        #endregion
    }