///-------------------------------------------------------------------------
        /// <summary>シーン変更</summary>
        ///-------------------------------------------------------------------------
        public void OnLevelWasLoaded(int level)
        {
            ConstantValues.Scene sceneLevel = (ConstantValues.Scene)level;

            // メイドエディット画面でない、かつ夜伽画面でない場合に、メイドエディット画面または夜伽画面に遷移した場合
            // if( ( this.sceneNo != ConstantValues.Scene.SceneEdit && this.sceneNo != ConstantValues.Scene.SceneYotogi && this.sceneNo != ConstantValues.Scene.ScenePhoto ) &&
            //  ( sceneLevel == ConstantValues.Scene.SceneEdit || sceneLevel == ConstantValues.Scene.SceneYotogi || sceneLevel == ConstantValues.Scene.ScenePhoto ) )
            // {
            // 初期化
            // モーション情報初期化

            if (this.envView != null)
            {
                // // メイドエディット画面または夜伽画面から、メイドエディット画面、夜伽画面以外に遷移した場合
                if ((this.sceneNo == ConstantValues.Scene.SceneEdit || this.sceneNo == ConstantValues.Scene.SceneYotogi || this.sceneNo == ConstantValues.Scene.ScenePhoto) &&
                    (sceneLevel != ConstantValues.Scene.SceneEdit && sceneLevel != ConstantValues.Scene.SceneYotogi && sceneLevel != ConstantValues.Scene.ScenePhoto))
                {
                    // 追加した光源を削除
                    this.envView.ClearLights(false);
                    this.envView.ClearModels();
                    initialized = false;
                    Translation.CurrentTranslation = configLanguage;
                }
                else if ((this.sceneNo != ConstantValues.Scene.SceneEdit && this.sceneNo != ConstantValues.Scene.SceneYotogi && this.sceneNo != ConstantValues.Scene.ScenePhoto) &&
                         (sceneLevel == ConstantValues.Scene.SceneEdit || sceneLevel == ConstantValues.Scene.SceneYotogi || sceneLevel == ConstantValues.Scene.ScenePhoto))
                {
                    this.envView.ClearLights(false);
                    this.envView.ClearModels();
                    initialized = false;
                    Translation.CurrentTranslation = configLanguage;
                }
            }

            this.sceneNo = sceneLevel;
        }
Example #2
0
        ///-------------------------------------------------------------------------
        /// <summary>シーン変更</summary>
        ///-------------------------------------------------------------------------
        public void OnLevelWasLoaded(int level)
        {
            ConstantValues.Scene sceneLevel = (ConstantValues.Scene)level;

            if (this.timelineWindow != null)
            {
                // // メイドエディット画面または夜伽画面から、メイドエディット画面、夜伽画面以外に遷移した場合
                if ((this.sceneNo == ConstantValues.Scene.ScenePhoto) &&
                    (sceneLevel != ConstantValues.Scene.ScenePhoto))
                {
                    initialized = false;
                    Translation.CurrentTranslation = configLanguage;
                }
                else if ((this.sceneNo != ConstantValues.Scene.ScenePhoto) &&
                         (sceneLevel == ConstantValues.Scene.ScenePhoto))
                {
                    initialized = false;
                    Translation.CurrentTranslation = configLanguage;
                }
            }

            this.sceneNo = sceneLevel;
        }