예제 #1
0
        private void SavePathToLocation()
        {
            ScriptsPathData data = new ScriptsPathData();

            data.ViewPath     = m_ViewPath;
            data.MediatorPath = m_MediatorPath;
            ToolCacheManager.SaveCacheObject(PathManager.StrangeIOCDataPath, data);
        }
예제 #2
0
        private void SavePathToLocation()
        {
            Directory.CreateDirectory(PathManager.FrameScriptDataPath);
            ScriptsPathData data = new ScriptsPathData();

            data.ViewPath     = m_ViewPath;
            data.MediatorPath = m_MediatorPath;
            ToolCacheManager.SaveCacheObject(PathManager.FrameScriptDataPath + m_DataName, data);
        }
예제 #3
0
        //保存数据到本地
        public static void SaveDataToLocal()
        {
            EntitasData data = new EntitasData();

            data.ViewPath           = ViewPath;
            data.ServicePath        = ServicePath;
            data.SystemPath         = SystemPath;
            data.ServiceManagerPath = ServiceManagerPath;
            data.GameFeaturePath    = GameFeaturePath;
            data.InputFeaturePath   = InputFeaturePath;
            data.ViewFeaturePath    = ViewFeaturePath;
            ToolCacheManager.SaveCacheObject(PathManager.EntitasDataPath, data);
        }
예제 #4
0
 private void OnGUI()
 {
     EditorGUILayout.Space();
     EditorGUILayout.LabelField("选择默认字体");
     EditorGUILayout.Space();
     m_font = (Font)EditorGUILayout.ObjectField(m_font, typeof(Font), true);
     EditorGUILayout.Space();
     if (GUILayout.Button("确定"))
     {
         FontData data = new FontData();
         data.defaultFont = m_font;
         ToolCacheManager.SaveCacheObject(PathManager.FontDataPath, data);
         window.Close();
     }
 }
예제 #5
0
        private void OnGUI()
        {
            GUILayout.Label("命名空间名称");
            Rect rect = EditorGUILayout.GetControlRect(GUILayout.Width(200));

            _name = EditorGUI.TextField(rect, _name);

            if (GUILayout.Button("完成", GUILayout.MaxWidth(100)))
            {
                NameSpaceData data = new NameSpaceData();
                data.NameSpaceName = _name;
                ToolCacheManager.SaveCacheObject(PathManager.NameSpaceDataPath, data);
                _window.Close();
            }
        }
        private void OnGUI()
        {
            GUILayout.Label("命名空间名称");
            Rect rect = EditorGUILayout.GetControlRect(GUILayout.Width(200));

            _isOn = GUILayout.Toggle(_isOn, "是否开启插件");

            if (GUILayout.Button("完成", GUILayout.MaxWidth(100)))
            {
                NamespaceData data = new NamespaceData();
                data.IsOn = _isOn;

                ToolCacheManager.SaveCacheObject(PathManager.NameSpaceDataPath, data);
            }
        }