Barotrauma Client Doc
Barotrauma.HUDProgressBar Class Reference

Public Member Functions

 HUDProgressBar (Vector2 worldPosition, string textTag, Submarine parentSubmarine=null)
 
 HUDProgressBar (Vector2 worldPosition, Submarine parentSubmarine, Color emptyColor, Color fullColor, string textTag)
 
void Update (float deltatime)
 
void Draw (SpriteBatch spriteBatch, Camera cam)
 

Public Attributes

float FadeTimer
 
Vector2 Size
 

Properties

float Progress [get, set]
 
Vector2 WorldPosition [get, set]
 
LocalizedString Text [get]
 
string? TextTag [get, set]
 

Detailed Description

Definition at line 7 of file HUDProgressBar.cs.

Constructor & Destructor Documentation

◆ HUDProgressBar() [1/2]

Barotrauma.HUDProgressBar.HUDProgressBar ( Vector2  worldPosition,
string  textTag,
Submarine  parentSubmarine = null 
)

Definition at line 60 of file HUDProgressBar.cs.

◆ HUDProgressBar() [2/2]

Barotrauma.HUDProgressBar.HUDProgressBar ( Vector2  worldPosition,
Submarine  parentSubmarine,
Color  emptyColor,
Color  fullColor,
string  textTag 
)

Definition at line 65 of file HUDProgressBar.cs.

Member Function Documentation

◆ Draw()

void Barotrauma.HUDProgressBar.Draw ( SpriteBatch  spriteBatch,
Camera  cam 
)

Definition at line 85 of file HUDProgressBar.cs.

◆ Update()

void Barotrauma.HUDProgressBar.Update ( float  deltatime)

Definition at line 80 of file HUDProgressBar.cs.

Member Data Documentation

◆ FadeTimer

float Barotrauma.HUDProgressBar.FadeTimer

Definition at line 17 of file HUDProgressBar.cs.

◆ Size

Vector2 Barotrauma.HUDProgressBar.Size

Definition at line 39 of file HUDProgressBar.cs.

Property Documentation

◆ Progress

float Barotrauma.HUDProgressBar.Progress
getset

Definition at line 11 of file HUDProgressBar.cs.

◆ Text

LocalizedString Barotrauma.HUDProgressBar.Text
get

Definition at line 42 of file HUDProgressBar.cs.

◆ TextTag

string? Barotrauma.HUDProgressBar.TextTag
getset

Definition at line 49 of file HUDProgressBar.cs.

◆ WorldPosition

Vector2 Barotrauma.HUDProgressBar.WorldPosition
getset

Definition at line 23 of file HUDProgressBar.cs.