public void RemakeText() { if (CurrentData == null) { return; } if (CurrentTextDataInPage.CharacterInfo == null) { this.CharacterLabel = ""; this.NameText = ""; } else { this.CharacterLabel = CurrentTextDataInPage.CharacterInfo.Label; this.NameText = LanguageManager.Instance.LocalizeText(TextParser.MakeLogText(CurrentTextDataInPage.CharacterInfo.NameText)); } //エンティティ処理の場合は内容が変わっている可能性があるので再作成が必要 this.TextData = new TextData(CurrentData.MakeText()); string currentText = CurrentData.MakeText(CurrentTextDataInPage); CurrentTextLengthMax = new TextData(currentText).Length; this.Status = PageStatus.SendChar; if (CurrentTextLength == 0) { this.OnBeginText.Invoke(this); } if (IsNoWaitAllText || CheckSkip()) { EndSendChar(); } this.OnChangeText.Invoke(this); Engine.MessageWindowManager.OnPageTextChange(this); Engine.OnPageTextChange.Invoke(Engine); }
/// <summary> /// コンストラクタ /// </summary> /// <param name="text">メタデータを含むテキスト</param> public TextData(string text) { parsedText = new TextParser(text); }
/// <summary> /// コンストラクタ /// </summary> /// <param name="text">メタデータを含むテキスト</param> public TextData(string text) { parsedText = new TextParser(text); }