Пример #1
0
 public AdvBacklogDataInPage(AdvCommandText dataInPage, AdvCharacterInfo characterInfo)
 {
     LogText       = "";
     VoiceFileName = "";
     if (characterInfo != null)
     {
         CharacterLabel    = characterInfo.Label;
         CharacterNameText = characterInfo.LocalizeNameText;
     }
     else
     {
         CharacterLabel    = "";
         CharacterNameText = "";
     }
     LogText = TextData.MakeLogText(dataInPage.ParseCellLocalizedText());
     if (dataInPage.VoiceFile != null)
     {
         VoiceFileName = dataInPage.VoiceFile.FileName;
         LogText       = TextParser.AddTag(LogText, TextParser.TagSound, dataInPage.VoiceFile.FileName);
     }
     else
     {
         VoiceFileName = "";
     }
     if (dataInPage.IsNextBr)
     {
         LogText += "\n";
     }
 }
Пример #2
0
        /// <summary>
        /// ページ冒頭の初期化
        /// </summary>
        /// <param name="scenarioName">シナリオラベル</param>
        /// <param name="pageNo">ページ名</param>
        public void BeginPage(AdvScenarioPageData currentPageData)
        {
            this.LastInputSendMessage = false;
            this.CurrentData          = currentPageData;
            this.CurrentTextLength    = 0;
            this.CurrentTextLengthMax = 0;
            this.deltaTimeSendMessage = 0;
            this.Contoller.Clear();
            this.TextData = new TextData("");
            this.TextDataList.Clear();
            UpdateText();
            RemakeTextData();
            this.SaveDataTitle = CurrentData.ScenarioLabelData.SaveTitle;
            if (string.IsNullOrEmpty(this.SaveDataTitle))
            {
                switch (TitleType)
                {
                case SaveTitleType.Log:
                    this.SaveDataTitle = TextData.MakeLogText(TextData.OriginalText);
                    break;

                case SaveTitleType.LogNoneMeta:
                    this.SaveDataTitle = new TextData(TextData.MakeLogText(TextData.OriginalText)).NoneMetaString;
                    break;

                case SaveTitleType.Default:
                default:
                    this.SaveDataTitle = TextData.OriginalText;
                    break;
                }
            }

            this.OnBeginPage.Invoke(this);
            Engine.UiManager.OnBeginPage();
            if (!currentPageData.ExistsWindowInitCommand())
            {
                Engine.MessageWindowManager.ChangeCurrentWindow(currentPageData.MessageWindowName);
            }
            if (!currentPageData.IsEmptyText)
            {
                //バックログを追加
                Engine.BacklogManager.AddPage();
            }
        }