private void WriteFullDescription() { this.QuestDescriptionScrollView.ResetUp(); if (this.questGuiElement == null) { this.QuestDescription.Text = this.Quest.QuestDefinition.Name; return; } if (this.QuestDescription.Text != this.questGuiElement.Description) { this.QuestDescription.AgeTransform.Height = 0f; this.QuestDescription.Text = QuestStepItem.ComputeLocalizedQuestText(this.questGuiElement.Description, this.Quest.LocalizationVariables); if (NotificationPanelBase.FirstOpening) { this.temp.Length = 0; AgeUtils.CleanLine(this.QuestDescription.Text, ref this.temp); AgeModifierTypewriter component = this.QuestDescription.GetComponent <AgeModifierTypewriter>(); component.Duration = 0.02f * (float)this.temp.Length; component.StartAnimation(); } else { AgeModifierTypewriter component2 = this.QuestDescription.GetComponent <AgeModifierTypewriter>(); component2.Reset(); this.QuestDescription.CurrentLine = -1; this.QuestDescription.CurrentCharInLine = -1; } } }
private void WriteSummaryDescription() { this.QuestDescriptionScrollView.ResetUp(); if (this.questGuiElement == null) { this.QuestDescription.Text = this.Quest.QuestDefinition.Name; return; } string text = QuestStepItem.ComputeLocalizedQuestText(this.questGuiElement.Objective, this.Quest.LocalizationVariables); if (this.QuestDescription.Text != text) { this.QuestDescription.AgeTransform.Height = 0f; this.QuestDescription.Text = text; } }