Barotrauma Client Doc
Barotrauma.VisualSlot Class Reference

Public Member Functions

 VisualSlot (Rectangle rect)
 
bool MouseOn ()
 
void ShowBorderHighlight (Color color, float fadeInDuration, float fadeOutDuration, float scaleUpAmount=0.5f)
 
void MoveBorderHighlight (VisualSlot newSlot)
 Moves the current border highlight animation (if one is running) to the new slot More...
 

Public Attributes

Rectangle Rect
 
Rectangle InteractRect
 
bool Disabled
 
GUIComponent.ComponentState State
 
Vector2 DrawOffset
 
Color Color
 
Color HighlightColor
 
float HighlightScaleUpAmount
 
float HighlightTimer
 
Sprite SlotSprite
 
int InventoryKeyIndex = -1
 
int SubInventoryDir = -1
 
float QuickUseTimer
 
LocalizedString QuickUseButtonToolTip
 
bool IsMoving = false
 
GUIComponent.ComponentState EquipButtonState
 

Properties

bool IsHighlighted [get]
 
Rectangle EquipButtonRect [get]
 

Detailed Description

Constructor & Destructor Documentation

◆ VisualSlot()

Barotrauma.VisualSlot.VisualSlot ( Rectangle  rect)

Member Function Documentation

◆ MouseOn()

bool Barotrauma.VisualSlot.MouseOn ( )

◆ MoveBorderHighlight()

void Barotrauma.VisualSlot.MoveBorderHighlight ( VisualSlot  newSlot)

Moves the current border highlight animation (if one is running) to the new slot

Definition at line 128 of file BarotraumaClient/ClientSource/Items/Inventory.cs.

◆ ShowBorderHighlight()

void Barotrauma.VisualSlot.ShowBorderHighlight ( Color  color,
float  fadeInDuration,
float  fadeOutDuration,
float  scaleUpAmount = 0.5f 
)

Member Data Documentation

◆ Color

Color Barotrauma.VisualSlot.Color

◆ Disabled

bool Barotrauma.VisualSlot.Disabled

◆ DrawOffset

Vector2 Barotrauma.VisualSlot.DrawOffset

◆ EquipButtonState

GUIComponent.ComponentState Barotrauma.VisualSlot.EquipButtonState

◆ HighlightColor

Color Barotrauma.VisualSlot.HighlightColor

◆ HighlightScaleUpAmount

float Barotrauma.VisualSlot.HighlightScaleUpAmount

◆ HighlightTimer

float Barotrauma.VisualSlot.HighlightTimer

◆ InteractRect

Rectangle Barotrauma.VisualSlot.InteractRect

◆ InventoryKeyIndex

int Barotrauma.VisualSlot.InventoryKeyIndex = -1

◆ IsMoving

bool Barotrauma.VisualSlot.IsMoving = false

◆ QuickUseButtonToolTip

LocalizedString Barotrauma.VisualSlot.QuickUseButtonToolTip

◆ QuickUseTimer

float Barotrauma.VisualSlot.QuickUseTimer

◆ Rect

Rectangle Barotrauma.VisualSlot.Rect

◆ SlotSprite

Sprite Barotrauma.VisualSlot.SlotSprite

◆ State

GUIComponent.ComponentState Barotrauma.VisualSlot.State

◆ SubInventoryDir

int Barotrauma.VisualSlot.SubInventoryDir = -1

Property Documentation

◆ EquipButtonRect

Rectangle Barotrauma.VisualSlot.EquipButtonRect
get

◆ IsHighlighted

bool Barotrauma.VisualSlot.IsHighlighted
get