GUI.Canvas

Barotrauma.GUICanvas

Functions

AddChildrenToGUIUpdateList(ignoreChildren, order)

AddChildrenToGUIUpdateList

Parameters

  • ignoreChildren bool

  • order number

ChangeScale(newScale)

ChangeScale

Parameters

  • newScale Microsoft.Xna.Framework.Vector2

ClearChildren()

ClearChildren

Equals(obj)

Equals

Parameters

  • obj Object

Returns

  • bool

GetAllChildren()

GetAllChildren

Returns

  • IEnumerable

GetChild(index)

GetChild

Parameters

  • index number

Returns

  • RectTransform

GetChildIndex(rectT)

GetChildIndex

Parameters

  • rectT RectTransform

Returns

  • number

GetHashCode()

GetHashCode

Returns

  • number

GetParents()

GetParents

Returns

  • IEnumerable

GetType()

GetType

Returns

  • Type

InheritTotalChildrenHeight()

InheritTotalChildrenHeight

InheritTotalChildrenMinHeight()

InheritTotalChildrenMinHeight

IsChildOf(rectT, recursive)

IsChildOf

Parameters

  • rectT RectTransform

  • recursive bool

Returns

  • bool

IsParentOf(rectT, recursive)

IsParentOf

Parameters

  • rectT RectTransform

  • recursive bool

Returns

  • bool

MatchPivotToAnchor()

MatchPivotToAnchor

MoveOverTime(targetPos, duration, onDoneMoving)

MoveOverTime

Parameters

  • targetPos Microsoft.Xna.Framework.Point

  • duration number

  • onDoneMoving Action

RecalculateChildren(resize, scale)

RecalculateChildren

Parameters

  • resize bool

  • scale bool

RecalculateScale(withChildren)

RecalculateScale

Parameters

  • withChildren bool

RepositionChildInHierarchy(index)

RepositionChildInHierarchy

Parameters

  • index number

Returns

  • bool

ResetScale()

ResetScale

ResetSizeChanged()

ResetSizeChanged

Resize(absoluteSize, resizeChildren)

Resize

Parameters

  • absoluteSize Microsoft.Xna.Framework.Point

  • resizeChildren bool

Resize(relativeSize, resizeChildren)

Resize

Parameters

  • relativeSize Microsoft.Xna.Framework.Vector2

  • resizeChildren bool

ReverseChildren()

ReverseChildren

ScaleOverTime(targetSize, duration)

ScaleOverTime

Parameters

  • targetSize Microsoft.Xna.Framework.Point

  • duration number

SetAsFirstChild()

SetAsFirstChild

SetAsLastChild()

SetAsLastChild

SetPosition(anchor, pivot)

SetPosition

Parameters

SortChildren(comparison)

SortChildren

Parameters

  • comparison Comparison

ToString()

ToString

Returns

Translate(translation)

Translate

Parameters

  • translation Microsoft.Xna.Framework.Point

Fields

AbsoluteOffset

AbsoluteOffset, field of type Microsoft.Xna.Framework.Point

  • AbsoluteOffset

Anchor

Anchor, field of type Anchor

  • Anchor

AnchorPoint

AnchorPoint, field of type Microsoft.Xna.Framework.Point

  • AnchorPoint

AnimTargetPos

AnimTargetPos, field of type Microsoft.Xna.Framework.Point

  • AnimTargetPos

Children

Children, field of type IEnumerable

  • Children

CountChildren

CountChildren, field of type number

  • CountChildren

GUICanvas.Instance

GUICanvas.Instance, field of type GUICanvas

GUIComponent

GUIComponent, field of type GUIComponent

  • GUIComponent

IsFirstChild

IsFirstChild, field of type bool

  • IsFirstChild

IsFixedSize

IsFixedSize, field of type bool

  • IsFixedSize

IsLastChild

IsLastChild, field of type bool

  • IsLastChild

LocalScale

LocalScale, field of type Microsoft.Xna.Framework.Vector2

  • LocalScale

MaxSize

MaxSize, field of type Microsoft.Xna.Framework.Point

  • MaxSize

MinSize

MinSize, field of type Microsoft.Xna.Framework.Point

  • MinSize

NonScaledSize

NonScaledSize, field of type Microsoft.Xna.Framework.Point

  • NonScaledSize

Parent

Parent, field of type RectTransform

  • Parent

ParentRect

ParentRect, field of type Microsoft.Xna.Framework.Rectangle

  • ParentRect

Pivot

Pivot, field of type Pivot

  • Pivot

PivotOffset

PivotOffset, field of type Microsoft.Xna.Framework.Point

  • PivotOffset

Rect

Rect, field of type Microsoft.Xna.Framework.Rectangle

  • Rect

RelativeOffset

RelativeOffset, field of type Microsoft.Xna.Framework.Vector2

  • RelativeOffset

RelativeSize

RelativeSize, field of type Microsoft.Xna.Framework.Vector2

  • RelativeSize

Scale

Scale, field of type Microsoft.Xna.Framework.Vector2

  • Scale

ScaleBasis

ScaleBasis, field of type ScaleBasis

  • ScaleBasis

ScaledSize

ScaledSize, field of type Microsoft.Xna.Framework.Point

  • ScaledSize

ScreenSpaceOffset

ScreenSpaceOffset, field of type Microsoft.Xna.Framework.Point

  • ScreenSpaceOffset

TopLeft

TopLeft, field of type Microsoft.Xna.Framework.Point

  • TopLeft