Barotrauma Client Doc
Barotrauma.BackgroundSection Class Reference

Public Member Functions

 BackgroundSection (Rectangle rect, ushort index, ushort rowIndex)
 
 BackgroundSection (Rectangle rect, ushort index, float colorStrength, Color color, ushort rowIndex)
 
bool SetColor (Color color)
 
float SetColorStrength (float colorStrength)
 
bool LerpColor (Color to, float amount)
 
Color GetStrengthAdjustedColor ()
 

Public Attributes

Rectangle Rect
 
ushort Index
 
ushort RowIndex
 
readonly Vector2 Noise
 
readonly Color DirtColor
 
Sprite GrimeSprite
 

Properties

float ColorStrength [get, protected set]
 
Color Color [get, protected set]
 

Detailed Description

Definition at line 16 of file BarotraumaShared/SharedSource/Map/Hull.cs.

Constructor & Destructor Documentation

◆ BackgroundSection() [1/2]

Barotrauma.BackgroundSection.BackgroundSection ( Rectangle  rect,
ushort  index,
ushort  rowIndex 
)

Definition at line 48 of file BarotraumaShared/SharedSource/Map/Hull.cs.

◆ BackgroundSection() [2/2]

Barotrauma.BackgroundSection.BackgroundSection ( Rectangle  rect,
ushort  index,
float  colorStrength,
Color  color,
ushort  rowIndex 
)

Definition at line 65 of file BarotraumaShared/SharedSource/Map/Hull.cs.

Member Function Documentation

◆ GetStrengthAdjustedColor()

Color Barotrauma.BackgroundSection.GetStrengthAdjustedColor ( )

Definition at line 108 of file BarotraumaShared/SharedSource/Map/Hull.cs.

◆ LerpColor()

bool Barotrauma.BackgroundSection.LerpColor ( Color  to,
float  amount 
)

Definition at line 100 of file BarotraumaShared/SharedSource/Map/Hull.cs.

◆ SetColor()

bool Barotrauma.BackgroundSection.SetColor ( Color  color)

Definition at line 85 of file BarotraumaShared/SharedSource/Map/Hull.cs.

◆ SetColorStrength()

float Barotrauma.BackgroundSection.SetColorStrength ( float  colorStrength)

Definition at line 92 of file BarotraumaShared/SharedSource/Map/Hull.cs.

Member Data Documentation

◆ DirtColor

readonly Color Barotrauma.BackgroundSection.DirtColor

Definition at line 26 of file BarotraumaShared/SharedSource/Map/Hull.cs.

◆ GrimeSprite

Sprite Barotrauma.BackgroundSection.GrimeSprite

Definition at line 29 of file BarotraumaShared/SharedSource/Map/Hull.cs.

◆ Index

ushort Barotrauma.BackgroundSection.Index

Definition at line 19 of file BarotraumaShared/SharedSource/Map/Hull.cs.

◆ Noise

readonly Vector2 Barotrauma.BackgroundSection.Noise

Definition at line 25 of file BarotraumaShared/SharedSource/Map/Hull.cs.

◆ Rect

Rectangle Barotrauma.BackgroundSection.Rect

Definition at line 18 of file BarotraumaShared/SharedSource/Map/Hull.cs.

◆ RowIndex

ushort Barotrauma.BackgroundSection.RowIndex

Definition at line 20 of file BarotraumaShared/SharedSource/Map/Hull.cs.

Property Documentation

◆ Color

Color Barotrauma.BackgroundSection.Color
getprotected set

Definition at line 38 of file BarotraumaShared/SharedSource/Map/Hull.cs.

◆ ColorStrength

float Barotrauma.BackgroundSection.ColorStrength
getprotected set

Definition at line 32 of file BarotraumaShared/SharedSource/Map/Hull.cs.