예제 #1
0
        /// <summary>
        /// 新規作成
        /// </summary>
        public static void New()
        {
            if (OnBeforeNew != null)
            {
                OnBeforeNew(null, null);
            }

            StartFrame = 0;
            EndFrame   = 120;
            IsLoop     = true;

            SelectedNode = null;
            Command.CommandManager.Clear();
            Root = new Data.NodeRoot();

            // 初期ノードの追加
            Root.AddChild();
            Command.CommandManager.Clear();
            FullPath  = string.Empty;
            IsChanged = false;

            if (OnAfterNew != null)
            {
                OnAfterNew(null, null);
            }
        }
예제 #2
0
파일: Core.cs 프로젝트: ooame0825/Effekseer
        /// <summary>
        /// New
        /// </summary>
        public static void New()
        {
            if (OnBeforeNew != null)
            {
                OnBeforeNew(null, null);
            }

            StartFrame = 0;
            EndFrame   = 120;
            IsLoop     = true;

            SelectedNode = null;
            Command.CommandManager.Clear();
            Root           = new Data.NodeRoot();
            effectBehavior = new Data.EffectBehaviorValues();
            culling        = new Data.EffectCullingValues();
            globalValues   = new Data.GlobalValues();

            // Add a root node
            Root.AddChild();
            Command.CommandManager.Clear();
            FullPath  = string.Empty;
            IsChanged = false;

            if (OnAfterNew != null)
            {
                OnAfterNew(null, null);
            }
        }
예제 #3
0
파일: Core.cs 프로젝트: yczxf/Effekseer
        /// <summary>
        /// New
        /// </summary>
        public static void New()
        {
            if (OnBeforeNew != null)
            {
                OnBeforeNew(null, null);
            }

            StartFrame = 0;
            EndFrame   = 120;
            IsLoop     = true;

            SelectedNode = null;
            Command.CommandManager.Clear();
            Root = new Data.NodeRoot();

            // Adhoc code
            effectBehavior.Reset();
            culling      = new Data.EffectCullingValues();
            globalValues = new Data.GlobalValues();

            if (recording.RecordingStorageTarget.Value == Data.RecordingStorageTargetTyoe.Local)
            {
                recording = new Data.RecordingValues();
            }

            dynamic_ = new Data.DynamicValues();

            // Add a root node
            Root.AddChild();
            Command.CommandManager.Clear();
            FullPath  = string.Empty;
            IsChanged = false;

            // Select child
            //SelectedNode = Root.Children[0];

            if (OnAfterNew != null)
            {
                OnAfterNew(null, null);
            }
        }
예제 #4
0
파일: Core.cs 프로젝트: kou-yeung/Effekseer
        /// <summary>
        /// 新規作成
        /// </summary>
        public static void New()
        {
            if (OnBeforeNew != null)
            {
                OnBeforeNew(null, null);
            }

            StartFrame = 0;
            EndFrame = 120;
            IsLoop = true;

            SelectedNode = null;
            Command.CommandManager.Clear();
            Root = new Data.NodeRoot();

            // 初期ノードの追加
            Root.AddChild();
            Command.CommandManager.Clear();
            FullPath = string.Empty;
            IsChanged = false;

            if (OnAfterNew != null)
            {
                OnAfterNew(null, null);
            }
        }