Barotrauma Server
Loading...
Searching...
No Matches
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
 

Properties

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

Constructor & Destructor Documentation

◆ BackgroundSection() [1/2]

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

◆ BackgroundSection() [2/2]

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

Member Function Documentation

◆ GetStrengthAdjustedColor()

Color Barotrauma.BackgroundSection.GetStrengthAdjustedColor ( )

◆ LerpColor()

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

◆ SetColor()

bool Barotrauma.BackgroundSection.SetColor ( Color color)

◆ SetColorStrength()

float Barotrauma.BackgroundSection.SetColorStrength ( float colorStrength)

Member Data Documentation

◆ DirtColor

readonly Color Barotrauma.BackgroundSection.DirtColor

◆ Index

ushort Barotrauma.BackgroundSection.Index

◆ Noise

readonly Vector2 Barotrauma.BackgroundSection.Noise

◆ Rect

Rectangle Barotrauma.BackgroundSection.Rect

◆ RowIndex

ushort Barotrauma.BackgroundSection.RowIndex

Property Documentation

◆ Color

Color Barotrauma.BackgroundSection.Color
getprotected set

◆ ColorStrength

float Barotrauma.BackgroundSection.ColorStrength
getprotected set

The documentation for this class was generated from the following file: