GUI.RectTransform
Barotrauma.RectTransform
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
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
RectTransform(relativeSize, parent, anchor, pivot, minSize, maxSize, scaleBasis)
RectTransform
Parameters
-
relativeSize
Microsoft.Xna.Framework.Vector2
-
parent
RectTransform
-
anchor
Anchor
-
pivot
optional Pivot
-
minSize
optional Microsoft.Xna.Framework.Point
-
maxSize
optional Microsoft.Xna.Framework.Point
-
scaleBasis
ScaleBasis
RectTransform(absoluteSize, parent, anchor, pivot, scaleBasis, isFixedSize)
RectTransform
Parameters
-
absoluteSize
Microsoft.Xna.Framework.Point
-
parent
RectTransform
-
anchor
Anchor
-
pivot
optional Pivot
-
scaleBasis
ScaleBasis
-
isFixedSize
bool
RectTransform.CalculateAnchorPoint(anchor, parent)
CalculateAnchorPoint
Parameters
-
anchor
Anchor
-
parent
Microsoft.Xna.Framework.Rectangle
Returns
-
Microsoft.Xna.Framework.Point
RectTransform.CalculatePivotOffset(anchor, size)
CalculatePivotOffset
Parameters
-
anchor
Pivot
-
size
Microsoft.Xna.Framework.Point
Returns
-
Microsoft.Xna.Framework.Point
RectTransform.ConvertOffsetRelativeToAnchor(offset, anchor)
ConvertOffsetRelativeToAnchor
Parameters
-
offset
Microsoft.Xna.Framework.Point
-
anchor
Anchor
Returns
-
Microsoft.Xna.Framework.Point
RectTransform.Load(element, parent, defaultAnchor)
Load
Parameters
-
element
Xml.Linq.XElement
-
parent
RectTransform
-
defaultAnchor
Anchor
Returns
RectTransform.MatchAnchorToPivot(pivot)
MatchAnchorToPivot
Parameters
-
pivot
Pivot
Returns
RectTransform.MatchPivotToAnchor(anchor)
MatchPivotToAnchor
Parameters
-
anchor
Anchor
Returns
RectTransform.MoveAnchorBottom(anchor)
MoveAnchorBottom
Parameters
-
anchor
Anchor
Returns
RectTransform.MoveAnchorLeft(anchor)
MoveAnchorLeft
Parameters
-
anchor
Anchor
Returns
RectTransform.MoveAnchorRight(anchor)
MoveAnchorRight
Parameters
-
anchor
Anchor
Returns
RectTransform.MoveAnchorTop(anchor)
MoveAnchorTop
Parameters
-
anchor
Anchor
Returns
RectTransform.ResetGlobalScale()
ResetGlobalScale
RepositionChildInHierarchy(index)
RepositionChildInHierarchy
Parameters
-
index
number
Returns
-
bool
ResetScale()
ResetScale
ResetSizeChanged()
ResetSizeChanged
Resize(relativeSize, resizeChildren)
Resize
Parameters
-
relativeSize
Microsoft.Xna.Framework.Vector2
-
resizeChildren
bool
Resize(absoluteSize, resizeChildren)
Resize
Parameters
-
absoluteSize
Microsoft.Xna.Framework.Point
-
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
-
anchor
Anchor
-
pivot
optional Pivot
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
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
RectTransform.MaxPoint
RectTransform.MaxPoint, field of type Microsoft.Xna.Framework.Point
RectTransform.globalScale
RectTransform.globalScale, field of type Microsoft.Xna.Framework.Vector2
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