Barotrauma Client Doc
Barotrauma.GUIComponentStyle Class Reference
Inheritance diagram for Barotrauma.GUIComponentStyle:
Barotrauma.GUIPrefab Barotrauma.Prefab

Public Member Functions

 GUIComponentStyle (ContentXElement element, UIStyleFile file, GUIComponentStyle parent=null)
 
Sprite GetDefaultSprite ()
 
Sprite GetSprite (GUIComponent.ComponentState state)
 
void RefreshSize ()
 
override void Dispose ()
 
- Public Member Functions inherited from Barotrauma.GUIPrefab
 GUIPrefab (ContentXElement element, UIStyleFile file)
 
- Public Member Functions inherited from Barotrauma.Prefab
 Prefab (ContentFile file, Identifier identifier)
 
 Prefab (ContentFile file, ContentXElement element)
 

Static Public Member Functions

static GUIComponentStyle FromHierarchy (IReadOnlyList< Identifier > hierarchy)
 
static Identifier[] ToHierarchy (GUIComponentStyle style)
 
- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 

Public Attributes

readonly Vector4 Padding
 
readonly Color Color
 
readonly Color HoverColor
 
readonly Color SelectedColor
 
readonly Color PressedColor
 
readonly Color DisabledColor
 
readonly Color TextColor
 
readonly Color HoverTextColor
 
readonly Color SelectedTextColor
 
readonly Color DisabledTextColor
 
readonly float SpriteCrossFadeTime
 
readonly float ColorCrossFadeTime
 
readonly TransitionMode TransitionMode
 
readonly Identifier Font
 
readonly bool ForceUpperCase
 
readonly Color OutlineColor
 
readonly ContentXElement Element
 
readonly Dictionary< GUIComponent.ComponentState, List< UISprite > > Sprites
 
SpriteFallBackState FallBackState
 
readonly GUIComponentStyle ParentStyle
 
readonly Dictionary< Identifier, GUIComponentStyleChildStyles
 
readonly string Name
 
- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 

Properties

int? Width [get]
 
int? Height [get]
 
- Properties inherited from Barotrauma.Prefab
ContentPackageContentPackage [get]
 
ContentPath FilePath [get]
 

Additional Inherited Members

- Static Public Attributes inherited from Barotrauma.Prefab
static readonly ImmutableHashSet< Type > Types
 
- Protected Member Functions inherited from Barotrauma.GUIPrefab
override Identifier DetermineIdentifier (XElement element)
 
int ParseSize (XElement element, string attributeName)
 

Detailed Description

Definition at line 20 of file ComponentStyle.cs.

Constructor & Destructor Documentation

◆ GUIComponentStyle()

Barotrauma.GUIComponentStyle.GUIComponentStyle ( ContentXElement  element,
UIStyleFile  file,
GUIComponentStyle  parent = null 
)

Definition at line 82 of file ComponentStyle.cs.

Member Function Documentation

◆ Dispose()

override void Barotrauma.GUIComponentStyle.Dispose ( )
virtual

Implements Barotrauma.Prefab.

Definition at line 211 of file ComponentStyle.cs.

◆ FromHierarchy()

static GUIComponentStyle Barotrauma.GUIComponentStyle.FromHierarchy ( IReadOnlyList< Identifier hierarchy)
static

Definition at line 53 of file ComponentStyle.cs.

◆ GetDefaultSprite()

Sprite Barotrauma.GUIComponentStyle.GetDefaultSprite ( )

Definition at line 172 of file ComponentStyle.cs.

◆ GetSprite()

Sprite Barotrauma.GUIComponentStyle.GetSprite ( GUIComponent.ComponentState  state)

Definition at line 176 of file ComponentStyle.cs.

◆ RefreshSize()

void Barotrauma.GUIComponentStyle.RefreshSize ( )

Definition at line 181 of file ComponentStyle.cs.

◆ ToHierarchy()

static Identifier [] Barotrauma.GUIComponentStyle.ToHierarchy ( GUIComponentStyle  style)
static

Definition at line 65 of file ComponentStyle.cs.

Member Data Documentation

◆ ChildStyles

readonly Dictionary<Identifier, GUIComponentStyle> Barotrauma.GUIComponentStyle.ChildStyles

Definition at line 51 of file ComponentStyle.cs.

◆ Color

readonly Color Barotrauma.GUIComponentStyle.Color

Definition at line 24 of file ComponentStyle.cs.

◆ ColorCrossFadeTime

readonly float Barotrauma.GUIComponentStyle.ColorCrossFadeTime

Definition at line 36 of file ComponentStyle.cs.

◆ DisabledColor

readonly Color Barotrauma.GUIComponentStyle.DisabledColor

Definition at line 28 of file ComponentStyle.cs.

◆ DisabledTextColor

readonly Color Barotrauma.GUIComponentStyle.DisabledTextColor

Definition at line 33 of file ComponentStyle.cs.

◆ Element

readonly ContentXElement Barotrauma.GUIComponentStyle.Element

Definition at line 44 of file ComponentStyle.cs.

◆ FallBackState

SpriteFallBackState Barotrauma.GUIComponentStyle.FallBackState

Definition at line 48 of file ComponentStyle.cs.

◆ Font

readonly Identifier Barotrauma.GUIComponentStyle.Font

Definition at line 39 of file ComponentStyle.cs.

◆ ForceUpperCase

readonly bool Barotrauma.GUIComponentStyle.ForceUpperCase

Definition at line 40 of file ComponentStyle.cs.

◆ HoverColor

readonly Color Barotrauma.GUIComponentStyle.HoverColor

Definition at line 25 of file ComponentStyle.cs.

◆ HoverTextColor

readonly Color Barotrauma.GUIComponentStyle.HoverTextColor

Definition at line 31 of file ComponentStyle.cs.

◆ Name

readonly string Barotrauma.GUIComponentStyle.Name

Definition at line 77 of file ComponentStyle.cs.

◆ OutlineColor

readonly Color Barotrauma.GUIComponentStyle.OutlineColor

Definition at line 42 of file ComponentStyle.cs.

◆ Padding

readonly Vector4 Barotrauma.GUIComponentStyle.Padding

Definition at line 22 of file ComponentStyle.cs.

◆ ParentStyle

readonly GUIComponentStyle Barotrauma.GUIComponentStyle.ParentStyle

Definition at line 50 of file ComponentStyle.cs.

◆ PressedColor

readonly Color Barotrauma.GUIComponentStyle.PressedColor

Definition at line 27 of file ComponentStyle.cs.

◆ SelectedColor

readonly Color Barotrauma.GUIComponentStyle.SelectedColor

Definition at line 26 of file ComponentStyle.cs.

◆ SelectedTextColor

readonly Color Barotrauma.GUIComponentStyle.SelectedTextColor

Definition at line 32 of file ComponentStyle.cs.

◆ SpriteCrossFadeTime

readonly float Barotrauma.GUIComponentStyle.SpriteCrossFadeTime

Definition at line 35 of file ComponentStyle.cs.

◆ Sprites

readonly Dictionary<GUIComponent.ComponentState, List<UISprite> > Barotrauma.GUIComponentStyle.Sprites

Definition at line 46 of file ComponentStyle.cs.

◆ TextColor

readonly Color Barotrauma.GUIComponentStyle.TextColor

Definition at line 30 of file ComponentStyle.cs.

◆ TransitionMode

readonly TransitionMode Barotrauma.GUIComponentStyle.TransitionMode

Definition at line 37 of file ComponentStyle.cs.

Property Documentation

◆ Height

int? Barotrauma.GUIComponentStyle.Height
get

Definition at line 80 of file ComponentStyle.cs.

◆ Width

int? Barotrauma.GUIComponentStyle.Width
get

Definition at line 79 of file ComponentStyle.cs.