Files
beyond/Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Subasset/Quest Content/BodyTextQuestContent.cs
2024-11-20 15:21:28 +01:00

42 lines
933 B
C#

// Copyright (c) Pixel Crushers. All rights reserved.
using UnityEngine;
namespace PixelCrushers.QuestMachine
{
/// <summary>
/// Body text UI content.
/// </summary>
public class BodyTextQuestContent : QuestContent
{
[Tooltip("Text to show in regular body text style.")]
[StringFieldTextArea]
[SerializeField]
private StringField m_bodyText;
/// <summary>
/// Text to show in regular body text style.
/// </summary>
public StringField bodyText
{
get { return m_bodyText; }
set { m_bodyText = value; }
}
public override StringField originalText
{
get { return bodyText; }
set { bodyText = value; }
}
public override string GetEditorName()
{
return (bodyText == null) ? "Body Text" : "Text: " + bodyText;
}
}
}