Esempio n. 1
0
        private void OnClickOpenBuff()
        {
            Bullet_HitAddBulletNode node  = Model as Bullet_HitAddBulletNode;
            GraphGroupPath          path  = GraphSetting.Setting.GetSearchPath <BulletGraphGroupAsset>();
            BulletGraphAsset        asset = GraphSetting.Setting.GetAsset <BulletGraphAsset>(path.searchPath, "bullet_" + node.addBullet.id);

            if (asset != null)
            {
                BaseGraphWindow.JumpTo(asset);
            }
        }
        private void OnClickOpenBuff()
        {
            Skill_LearnBuffNode node  = Model as Skill_LearnBuffNode;
            GraphGroupPath      path  = GraphSetting.Setting.GetSearchPath <BuffGraphGroupAsset>();
            BuffGraphAsset      asset = GraphSetting.Setting.GetAsset <BuffGraphAsset>(path.searchPath, "buff_" + node.id);

            if (asset != null)
            {
                BaseGraphWindow.JumpTo(asset);
            }
        }
Esempio n. 3
0
        private void OnClickOpenBuff()
        {
            Aoe_ActorLeaveAddAoeNode node  = Model as Aoe_ActorLeaveAddAoeNode;
            GraphGroupPath           path  = GraphSetting.Setting.GetSearchPath <AoeGraphGroupAsset>();
            AoeGraphAsset            asset = GraphSetting.Setting.GetAsset <AoeGraphAsset>(path.searchPath, "aoe_" + node.addAoe.id);

            if (asset != null)
            {
                BaseGraphWindow.JumpTo(asset);
            }
        }
Esempio n. 4
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            Skill_Tl_CreateBulletClip clip = Target as Skill_Tl_CreateBulletClip;

            if (GUILayout.Button("Open", GUILayout.Height(30)))
            {
                GraphGroupPath   path  = GraphSetting.Setting.GetSearchPath <BulletGraphGroupAsset>();
                BulletGraphAsset asset = GraphSetting.Setting.GetAsset <BulletGraphAsset>(path.searchPath, "bullet_" + clip.addBullet.id);
                BaseGraphWindow.JumpTo(asset);
            }
        }
 private void DrawGraphPath(GraphGroupPath path)
 {
     GUILayoutExtension.VerticalGroup(() =>
     {
         GUILayout.Label($"{path.typeName}", BigLabel.value);
         string newPath = MiscHelper.FolderPath("分组目录:", path.searchPath);
         if (newPath != path.searchPath)
         {
             path.searchPath = newPath;
             EditorUtility.SetDirty(settingAsset);
         }
     });
 }
        /// <summary>
        /// 导出
        /// </summary>
        public virtual void OnClickExport()
        {
            GraphGroupPath path = GraphSetting.Setting.GetSearchPath(this.GetType().FullName);
            List <InternalGraphGroupAsset> groups = GraphSetting.Setting.GetGroups(path.searchPath);
            List <InternalBaseGraphAsset>  assets = new List <InternalBaseGraphAsset>();

            foreach (InternalGraphGroupAsset group in groups)
            {
                if (group.GetType() == GetType())
                {
                    assets.AddRange(group.GetAllGraph());
                }
            }

            this.ExportGraph(assets);
        }