Client LuaCsForBarotrauma
ObjectiveManager.Segment Class Reference

Public Member Functions

readonly record struct Text (Identifier Tag, int Width=DefaultWidth, int Height=DefaultHeight, Anchor Anchor=Anchor.Center)
 
readonly record struct Video (string FullPath, Identifier TextTag, int Width=DefaultWidth, int Height=DefaultHeight)
 
void ConnectMessageBox (Segment messageBoxSegment)
 

Static Public Member Functions

static Segment CreateInfoBoxSegment (Identifier id, Identifier objectiveTextTag, AutoPlayVideo autoPlayVideo, Text textContent=default, Video videoContent=default)
 
static Segment CreateMessageBoxSegment (Identifier id, Identifier objectiveTextTag, Action onClickObjective)
 
static Segment CreateObjectiveSegment (Identifier id, Identifier objectiveTextTag)
 

Public Attributes

GUIImage ObjectiveStateIndicator
 
GUIButton ObjectiveButton
 
GUITextBlock LinkedTextBlock
 
LocalizedString ObjectiveText
 
readonly Identifier Id
 
readonly Text TextContent
 
readonly Video VideoContent
 
readonly AutoPlayVideo AutoPlayVideo
 
Action OnClickObjective
 

Properties

bool IsCompleted [get, set]
 
bool CanBeCompleted [get, set]
 
Identifier ParentId [get, set]
 
SegmentType SegmentType [get]
 

Detailed Description

Definition at line 13 of file ObjectiveManager.cs.

Member Function Documentation

◆ ConnectMessageBox()

void ObjectiveManager.Segment.ConnectMessageBox ( Segment  messageBoxSegment)

Definition at line 94 of file ObjectiveManager.cs.

◆ CreateInfoBoxSegment()

static Segment ObjectiveManager.Segment.CreateInfoBoxSegment ( Identifier  id,
Identifier  objectiveTextTag,
AutoPlayVideo  autoPlayVideo,
Text  textContent = default,
Video  videoContent = default 
)
static

Definition at line 54 of file ObjectiveManager.cs.

◆ CreateMessageBoxSegment()

static Segment ObjectiveManager.Segment.CreateMessageBoxSegment ( Identifier  id,
Identifier  objectiveTextTag,
Action  onClickObjective 
)
static

Definition at line 59 of file ObjectiveManager.cs.

◆ CreateObjectiveSegment()

static Segment ObjectiveManager.Segment.CreateObjectiveSegment ( Identifier  id,
Identifier  objectiveTextTag 
)
static

Definition at line 64 of file ObjectiveManager.cs.

◆ Text()

readonly record struct ObjectiveManager.Segment.Text ( Identifier  Tag,
int  Width = DefaultWidth,
int  Height = DefaultHeight,
Anchor  Anchor = Anchor.Center 
)

◆ Video()

readonly record struct ObjectiveManager.Segment.Video ( string  FullPath,
Identifier  TextTag,
int  Width = DefaultWidth,
int  Height = DefaultHeight 
)

Definition at line 21 of file ObjectiveManager.cs.

Member Data Documentation

◆ AutoPlayVideo

readonly AutoPlayVideo ObjectiveManager.Segment.AutoPlayVideo

Definition at line 42 of file ObjectiveManager.cs.

◆ Id

readonly Identifier ObjectiveManager.Segment.Id

Definition at line 39 of file ObjectiveManager.cs.

◆ LinkedTextBlock

GUITextBlock ObjectiveManager.Segment.LinkedTextBlock

Definition at line 36 of file ObjectiveManager.cs.

◆ ObjectiveButton

GUIButton ObjectiveManager.Segment.ObjectiveButton

Definition at line 35 of file ObjectiveManager.cs.

◆ ObjectiveStateIndicator

GUIImage ObjectiveManager.Segment.ObjectiveStateIndicator

Definition at line 34 of file ObjectiveManager.cs.

◆ ObjectiveText

LocalizedString ObjectiveManager.Segment.ObjectiveText

Definition at line 37 of file ObjectiveManager.cs.

◆ OnClickObjective

Action ObjectiveManager.Segment.OnClickObjective

Definition at line 44 of file ObjectiveManager.cs.

◆ TextContent

readonly Text ObjectiveManager.Segment.TextContent

Definition at line 40 of file ObjectiveManager.cs.

◆ VideoContent

readonly Video ObjectiveManager.Segment.VideoContent

Definition at line 41 of file ObjectiveManager.cs.

Property Documentation

◆ CanBeCompleted

bool ObjectiveManager.Segment.CanBeCompleted
getset

Definition at line 48 of file ObjectiveManager.cs.

◆ IsCompleted

bool ObjectiveManager.Segment.IsCompleted
getset

Definition at line 46 of file ObjectiveManager.cs.

◆ ParentId

Identifier ObjectiveManager.Segment.ParentId
getset

Definition at line 50 of file ObjectiveManager.cs.

◆ SegmentType

SegmentType ObjectiveManager.Segment.SegmentType
get

Definition at line 52 of file ObjectiveManager.cs.