8 public enum ActionType { Create, ConnectObjective, Close, Clear }
13 [
Serialize(
"",
IsPropertySaveable.Yes, description:
"Optional identifier of the tutorial \"segment\" that can be referenced by other event actions.")]
16 [
Serialize(
"",
IsPropertySaveable.Yes, description:
"An arbitrary tag given to the message box. Only required if you're intending to close or clear the box with another MessageBoxAction later.")]
17 public string Tag {
get;
set; }
19 [
Serialize(
"",
IsPropertySaveable.Yes, description:
"Text displayed in the header of the message box. Can be either the text as-is, or a tag referring to a line in a text file.")]
22 [
Serialize(
"",
IsPropertySaveable.Yes, description:
"Text displayed in the body of the message box. Can be either the text as-is, or a tag referring to a line in a text file.")]
25 [
Serialize(
"",
IsPropertySaveable.Yes, description:
"Style of the icon displayed in the corner of the message box (optional). The style must be defined in a UIStyle file.")]
28 [
Serialize(
false,
IsPropertySaveable.Yes, description:
"Should the button that closes the box be hidden? If it is hidden, you must close the box manually using another MessageBoxAction.")]
34 [
Serialize(
"",
IsPropertySaveable.Yes, description:
"The message box is automatically closed on some input (e.g. Select, Use, CrewOrders).")]
37 [
Serialize(
"",
IsPropertySaveable.Yes, description:
"The message box is automatically closed when the user selects an item that has this tag.")]
40 [
Serialize(
"",
IsPropertySaveable.Yes, description:
"The message box is automatically closed when the user picks up an item that has this tag.")]
43 [
Serialize(
"",
IsPropertySaveable.Yes, description:
"The message box is automatically closed when the user equips an item that has this tag.")]
46 [
Serialize(
"",
IsPropertySaveable.Yes, description:
"The message box is automatically closed when the user exits a room with this name.")]
49 [
Serialize(
"",
IsPropertySaveable.Yes, description:
"The message box is automatically closed when the user is in a room with this name.")]
52 [
Serialize(
"",
IsPropertySaveable.Yes, description:
"Optional tag that will be used to get the text for the objective that is displayed on the screen.")]
61 private bool isFinished =
false;
71 public override void Update(
float deltaTime)
73 if (isFinished) {
return; }
78 partial
void UpdateProjSpecific();
80 public override bool IsFinished(ref
string goToLabel) => isFinished;
82 public override void Reset() => isFinished =
false;
84 public override string ToDebugString() => $
"{ToolBox.GetDebugSymbol(isFinished)} {nameof(MessageBoxAction)}";
Identifier GetAttributeIdentifier(string key, string def)
Displays a message box, or modifies an existing one.
Identifier CloseOnPickUpTag
Identifier CloseOnExitRoomName
MessageBoxAction(ScriptedEvent parentEvent, ContentXElement element)
override void Update(float deltaTime)
Identifier CloseOnInRoomName
bool ObjectiveCanBeCompleted
Identifier ParentObjectiveId
override string ToDebugString()
Rich test to display in debugdraw
override bool IsFinished(ref string goToLabel)
Has the action finished.
Identifier CloseOnEquipTag
Identifier CloseOnSelectTag
ActionType
ActionTypes define when a StatusEffect is executed.