Barotrauma Client Doc
Barotrauma.GUIMessage Class Reference

Public Member Functions

 GUIMessage (string text, Color color, float lifeTime, GUIFont font=null)
 
 GUIMessage (string text, Color color, Vector2 position, Vector2 velocity, float lifeTime, Alignment textAlignment=Alignment.Center, GUIFont font=null, Submarine sub=null)
 

Public Attributes

readonly bool WorldSpace
 
Vector2 Origin
 
float Timer
 

Properties

string Text [get]
 
Color Color [get]
 
Vector2 Pos [get, set]
 
Vector2 Velocity [get]
 
Vector2 Size [get]
 
float LifeTime [get]
 
GUIFont Font [get]
 
Submarine Submarine [get]
 
Vector2? DrawPos [get]
 

Detailed Description

Definition at line 5 of file GUIMessage.cs.

Constructor & Destructor Documentation

◆ GUIMessage() [1/2]

Barotrauma.GUIMessage.GUIMessage ( string  text,
Color  color,
float  lifeTime,
GUIFont  font = null 
)

Definition at line 72 of file GUIMessage.cs.

◆ GUIMessage() [2/2]

Barotrauma.GUIMessage.GUIMessage ( string  text,
Color  color,
Vector2  position,
Vector2  velocity,
float  lifeTime,
Alignment  textAlignment = Alignment.Center,
GUIFont  font = null,
Submarine  sub = null 
)

Definition at line 84 of file GUIMessage.cs.

Member Data Documentation

◆ Origin

Vector2 Barotrauma.GUIMessage.Origin

Definition at line 43 of file GUIMessage.cs.

◆ Timer

float Barotrauma.GUIMessage.Timer

Definition at line 45 of file GUIMessage.cs.

◆ WorldSpace

readonly bool Barotrauma.GUIMessage.WorldSpace

Definition at line 14 of file GUIMessage.cs.

Property Documentation

◆ Color

Color Barotrauma.GUIMessage.Color
get

Definition at line 21 of file GUIMessage.cs.

◆ DrawPos

Vector2? Barotrauma.GUIMessage.DrawPos
get

Definition at line 64 of file GUIMessage.cs.

◆ Font

GUIFont Barotrauma.GUIMessage.Font
get

Definition at line 52 of file GUIMessage.cs.

◆ LifeTime

float Barotrauma.GUIMessage.LifeTime
get

Definition at line 47 of file GUIMessage.cs.

◆ Pos

Vector2 Barotrauma.GUIMessage.Pos
getset

Definition at line 26 of file GUIMessage.cs.

◆ Size

Vector2 Barotrauma.GUIMessage.Size
get

Definition at line 38 of file GUIMessage.cs.

◆ Submarine

Submarine Barotrauma.GUIMessage.Submarine
get

Definition at line 58 of file GUIMessage.cs.

◆ Text

string Barotrauma.GUIMessage.Text
get

Definition at line 16 of file GUIMessage.cs.

◆ Velocity

Vector2 Barotrauma.GUIMessage.Velocity
get

Definition at line 32 of file GUIMessage.cs.