Barotrauma Client Doc
Barotrauma.MessageBoxAction Class Reference
Inheritance diagram for Barotrauma.MessageBoxAction:
Barotrauma.EventAction

Public Types

enum class  ActionType { Create , ConnectObjective , Close , Clear }
 

Public Member Functions

 MessageBoxAction (ScriptedEvent parentEvent, ContentXElement element)
 
override void Update (float deltaTime)
 
override bool IsFinished (ref string goToLabel)
 Has the action finished. More...
 
override void Reset ()
 
override string ToDebugString ()
 Rich test to display in debugdraw More...
 
- Public Member Functions inherited from Barotrauma.EventAction
 EventAction (ScriptedEvent parentEvent, ContentXElement element)
 
virtual bool SetGoToTarget (string goTo)
 
virtual bool CanBeFinished ()
 
virtual IEnumerable< EventActionGetSubActions ()
 

Properties

ActionType Type [get, set]
 
Identifier Identifier [get, set]
 
string Tag [get, set]
 
Identifier Header [get, set]
 
Identifier Text [get, set]
 
string IconStyle [get, set]
 
bool HideCloseButton [get, set]
 
Identifier TargetTag [get, set]
 
string CloseOnInput [get, set]
 
Identifier CloseOnSelectTag [get, set]
 
Identifier CloseOnPickUpTag [get, set]
 
Identifier CloseOnEquipTag [get, set]
 
Identifier CloseOnExitRoomName [get, set]
 
Identifier CloseOnInRoomName [get, set]
 
Identifier ObjectiveTag [get, set]
 
bool ObjectiveCanBeCompleted [get, set]
 
Identifier ParentObjectiveId [get, set]
 

Additional Inherited Members

- Static Public Member Functions inherited from Barotrauma.EventAction
static EventAction Instantiate (ScriptedEvent scriptedEvent, ContentXElement element)
 
- Public Attributes inherited from Barotrauma.EventAction
readonly ScriptedEvent ParentEvent
 
- Protected Member Functions inherited from Barotrauma.EventAction
void ApplyTagsToHulls (Entity entity, Identifier hullTag, Identifier linkedHullTag)
 

Detailed Description

Member Enumeration Documentation

◆ ActionType

Enumerator
Create 
ConnectObjective 
Close 
Clear 

Definition at line 5 of file BarotraumaShared/SharedSource/Events/EventActions/MessageBoxAction.cs.

Constructor & Destructor Documentation

◆ MessageBoxAction()

Barotrauma.MessageBoxAction.MessageBoxAction ( ScriptedEvent  parentEvent,
ContentXElement  element 
)

Member Function Documentation

◆ IsFinished()

override bool Barotrauma.MessageBoxAction.IsFinished ( ref string  goToLabel)
virtual

Has the action finished.

Parameters
goToLabelIf null or empty, the event moves to the next action. Otherwise it moves to the specified label.
Returns

Implements Barotrauma.EventAction.

◆ Reset()

override void Barotrauma.MessageBoxAction.Reset ( )
virtual

◆ ToDebugString()

override string Barotrauma.MessageBoxAction.ToDebugString ( )
virtual

Rich test to display in debugdraw

public override string ToDebugString()
{
return $"{ToolBox.GetDebugSymbol(isFinished)} SomeAction -> "(someInfo: {info.ColorizeObject()})";
}
override string ToDebugString()
Rich test to display in debugdraw
Returns

Reimplemented from Barotrauma.EventAction.

◆ Update()

override void Barotrauma.MessageBoxAction.Update ( float  deltaTime)
virtual

Property Documentation

◆ CloseOnEquipTag

Identifier Barotrauma.MessageBoxAction.CloseOnEquipTag
getset

◆ CloseOnExitRoomName

Identifier Barotrauma.MessageBoxAction.CloseOnExitRoomName
getset

◆ CloseOnInput

string Barotrauma.MessageBoxAction.CloseOnInput
getset

◆ CloseOnInRoomName

Identifier Barotrauma.MessageBoxAction.CloseOnInRoomName
getset

◆ CloseOnPickUpTag

Identifier Barotrauma.MessageBoxAction.CloseOnPickUpTag
getset

◆ CloseOnSelectTag

Identifier Barotrauma.MessageBoxAction.CloseOnSelectTag
getset

◆ Header

Identifier Barotrauma.MessageBoxAction.Header
getset

◆ HideCloseButton

bool Barotrauma.MessageBoxAction.HideCloseButton
getset

◆ IconStyle

string Barotrauma.MessageBoxAction.IconStyle
getset

◆ Identifier

Identifier Barotrauma.MessageBoxAction.Identifier
getset

◆ ObjectiveCanBeCompleted

bool Barotrauma.MessageBoxAction.ObjectiveCanBeCompleted
getset

◆ ObjectiveTag

Identifier Barotrauma.MessageBoxAction.ObjectiveTag
getset

◆ ParentObjectiveId

Identifier Barotrauma.MessageBoxAction.ParentObjectiveId
getset

◆ Tag

string Barotrauma.MessageBoxAction.Tag
getset

◆ TargetTag

Identifier Barotrauma.MessageBoxAction.TargetTag
getset

◆ Text

Identifier Barotrauma.MessageBoxAction.Text
getset

◆ Type

ActionType Barotrauma.MessageBoxAction.Type
getset