Exemplo n.º 1
0
 private void OnEnable()
 {
     cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME);
     if (null == cfg)
     {
         cfg = new ConfigVO();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 加载配置
 /// </summary>
 public void LoadConfig()
 {
     _cfg = EditorConfigUtil.LoadConfig <HotResConfigVO>(CONFIG_NAME);
     if (null == _cfg)
     {
         _cfg = new HotResConfigVO();
     }
 }
 public IOSProjectInitConfig()
 {
     Cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME);
     if (null == Cfg)
     {
         Cfg = new ConfigVO();
         SaveCfg();
     }
 }
Exemplo n.º 4
0
 public IOSProjectInitModule(EditorWindow editorWin) : base(editorWin)
 {
     _cfg = EditorConfigUtil.LoadConfig <IOSProjectInitConfigVO>(CONFIG_NAME);
     frameworkToProjectList = _cfg.frameworkToProjectList;
     file2BuildList         = _cfg.file2BuildList;
     setBuildProperty       = _cfg.buildPropertyList;
     addPListInfo           = _cfg.pListDataList;
     urlSchemeList          = _cfg.urlSchemeList;
     appQueriesSchemeList   = _cfg.appQueriesSchemeList;
 }
Exemplo n.º 5
0
 override protected void OnEnable()
 {
     _cfg = EditorConfigUtil.LoadConfig <IOSProjectInitConfigVO>(IOSProjectInitConfigVO.CONFIG_NAME);
     frameworkToProjectList = _cfg.frameworkToProjectList;
     file2BuildList         = _cfg.file2BuildList;
     setBuildProperty       = _cfg.buildPropertyList;
     addPListInfo           = _cfg.pListDataList;
     urlSchemeList          = _cfg.urlSchemeList;
     appQueriesSchemeList   = _cfg.appQueriesSchemeList;
 }
Exemplo n.º 6
0
        Dictionary <string, AssetBundleItemVO> LoadConfig()
        {
            var tempList = EditorConfigUtil.LoadConfig <List <AssetBundleItemVO> >(CONFIG_NAME);
            //转成字典,方便查询
            Dictionary <string, AssetBundleItemVO> dic = new Dictionary <string, AssetBundleItemVO>();

            if (null != tempList)
            {
                foreach (var vo in tempList)
                {
                    dic.Add(vo.assetbundle, vo);
                }
            }
            return(dic);
        }
Exemplo n.º 7
0
        private void OnEnable()
        {
            cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME);

            if (cfg.data.startupResGroups == null)
            {
                cfg.data.startupResGroups = new string[0];
            }

            if (cfg.data.settingJump == null)
            {
                cfg.data.settingJump = new Dictionary <string, string>();
            }

            if (cfg.data.startupParams == null)
            {
                cfg.data.startupParams = new Dictionary <string, string>();
            }

            _startParamsDic.SetData(cfg.data.startupParams, "Key", "Value");
            _settingJumpDic.SetData(cfg.data.settingJump, "版本号", "跳转地址");
        }
Exemplo n.º 8
0
 public BuildSettingJsonModule(EditorWindow editorWin) : base(editorWin)
 {
     SetCfg(EditorConfigUtil.LoadConfig <SettingVO>(CONFIG_NAME));
 }
Exemplo n.º 9
0
        protected override void OnEnable()
        {
            base.OnEnable();

            SetCfg(EditorConfigUtil.LoadConfig <SettingVO>(CONFIG_NAME));
        }
Exemplo n.º 10
0
 override protected void OnEnable()
 {
     base.OnEnable();
     cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME);
 }