Definition at line 10 of file Widget.cs.
◆ Shape
| Enumerator |
|---|
| Rectangle | |
| Circle | |
| Cross | |
Definition at line 12 of file Widget.cs.
◆ Widget()
| Barotrauma.Widget.Widget |
( |
string |
id, |
|
|
int |
size, |
|
|
Shape |
shape |
|
) |
| |
◆ Draw()
| virtual void Barotrauma.Widget.Draw |
( |
SpriteBatch |
spriteBatch, |
|
|
float |
deltaTime |
|
) |
| |
|
virtual |
◆ Update()
| virtual void Barotrauma.Widget.Update |
( |
float |
deltaTime | ) |
|
|
virtual |
◆ color
| Color Barotrauma.Widget.color = GUIStyle.Red |
◆ data
| object Barotrauma.Widget.data |
◆ id
| readonly string Barotrauma.Widget.id |
◆ inputAreaMargin
| int Barotrauma.Widget.inputAreaMargin |
◆ isFilled
| bool Barotrauma.Widget.isFilled |
Currently used only for rectangles.
Definition at line 43 of file Widget.cs.
◆ linkedWidget
| Widget Barotrauma.Widget.linkedWidget |
◆ refresh
| Action Barotrauma.Widget.refresh |
◆ RequireMouseOn
| bool Barotrauma.Widget.RequireMouseOn = true |
◆ secondaryColor
| Color? Barotrauma.Widget.secondaryColor |
◆ selectedWidgets
| List<Widget> Barotrauma.Widget.selectedWidgets = new List<Widget>() |
|
static |
◆ shape
| Shape Barotrauma.Widget.shape |
◆ showTooltip
| bool Barotrauma.Widget.showTooltip = true |
◆ sides
| int Barotrauma.Widget.sides = 40 |
Used only for circles.
Definition at line 39 of file Widget.cs.
◆ size
| int Barotrauma.Widget.size = 10 |
◆ textBackgroundColor
| Color Barotrauma.Widget.textBackgroundColor = Color.Black * 0.5f |
◆ textColor
| Color Barotrauma.Widget.textColor = Color.White |
◆ thickness
| float Barotrauma.Widget.thickness = 1f |
◆ tooltip
◆ tooltipOffset
| Vector2? Barotrauma.Widget.tooltipOffset |
◆ DrawPos
| Vector2 Barotrauma.Widget.DrawPos |
|
getset |
◆ DrawRect
| Rectangle Barotrauma.Widget.DrawRect |
|
get |
◆ Enabled
| bool Barotrauma.Widget.Enabled |
|
getset |
◆ EnableMultiSelect
| bool Barotrauma.Widget.EnableMultiSelect |
|
staticgetset |
◆ InputRect
| Rectangle Barotrauma.Widget.InputRect |
|
get |
◆ IsControlled
| bool Barotrauma.Widget.IsControlled |
|
get |
◆ IsMouseOver
| bool Barotrauma.Widget.IsMouseOver |
|
get |
◆ IsSelected
| bool Barotrauma.Widget.IsSelected |
|
get |
◆ Deselected
| Action Barotrauma.Widget.Deselected |
◆ Hovered
| Action Barotrauma.Widget.Hovered |
◆ MouseDown
| Action Barotrauma.Widget.MouseDown |
◆ MouseHeld
| Action<float> Barotrauma.Widget.MouseHeld |
◆ MouseUp
| Action Barotrauma.Widget.MouseUp |
◆ PostDraw
| Action<SpriteBatch, float> Barotrauma.Widget.PostDraw |
◆ PostUpdate
| Action<float> Barotrauma.Widget.PostUpdate |
◆ PreDraw
| Action<SpriteBatch, float> Barotrauma.Widget.PreDraw |
◆ PreUpdate
| Action<float> Barotrauma.Widget.PreUpdate |
◆ Selected
| Action Barotrauma.Widget.Selected |