Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Game.VitalStatsWidget
类 Game.VitalStatsWidget 继承关系图:
Game.VitalStatsWidget 的协作图:

Public 成员函数

 VitalStatsWidget (ComponentPlayer componentPlayer)
override void Update ()
Public 成员函数 继承自 Game.CanvasWidget
Vector2GetWidgetPosition (Widget widget)
void SetWidgetPosition (Widget widget, Vector2? position)
override void WidgetRemoved (Widget widget)
override void MeasureOverride (Vector2 parentAvailableSize)
override void ArrangeOverride ()
Public 成员函数 继承自 Game.ContainerWidget
 ContainerWidget ()
override void UpdateCeases ()
void AddChildren (Widget widget)
void RemoveChildren (Widget widget)
void ClearChildren ()
virtual void WidgetAdded (Widget widget)
override void MeasureOverride (Vector2 parentAvailableSize)
override void ArrangeOverride ()
override void Dispose ()
Public 成员函数 继承自 Game.Widget
 Widget ()
virtual void LoadContents (object eventsTarget, XElement node)
virtual void LoadProperties (object eventsTarget, XElement node)
virtual void LoadChildren (object eventsTarget, XElement node)
virtual bool IsChildWidgetOf (ContainerWidget containerWidget)
virtual void ChangeParent (ContainerWidget parentWidget)
virtual void Measure (Vector2 parentAvailableSize)
virtual void Arrange (Vector2 position, Vector2 parentActualSize)
virtual void Draw (DrawContext dc)
virtual void Overdraw (DrawContext dc)
virtual bool HitTest (Vector2 point)
virtual Widget HitTestGlobal (Vector2 point, Func< Widget, bool > predicate=null)
virtual Vector2 ScreenToWidget (Vector2 p)
virtual Vector2 WidgetToScreen (Vector2 p)
virtual BoundingRectangle TransformBoundsToParent (Vector2 size)
virtual BoundingRectangle TransformBoundsToGlobal (Vector2 size)

Public 属性

ButtonWidget m_chokeButton
LabelWidget m_titleLabel
LinkWidget m_healthLink
ValueBarWidget m_healthValueBar
LinkWidget m_staminaLink
ValueBarWidget m_staminaValueBar
LinkWidget m_foodLink
ValueBarWidget m_foodValueBar
LinkWidget m_sleepLink
ValueBarWidget m_sleepValueBar
LinkWidget m_temperatureLink
ValueBarWidget m_temperatureValueBar
LinkWidget m_wetnessLink
ValueBarWidget m_wetnessValueBar
LinkWidget m_strengthLink
LabelWidget m_strengthLabel
LinkWidget m_resilienceLink
LabelWidget m_resilienceLabel
LinkWidget m_speedLink
LabelWidget m_speedLabel
LinkWidget m_hungerLink
LabelWidget m_hungerLabel
LinkWidget m_experienceLink
ValueBarWidget m_experienceValueBar
LinkWidget m_insulationLink
LabelWidget m_insulationLabel
ComponentPlayer m_componentPlayer
Public 属性 继承自 Game.CanvasWidget
Dictionary< Widget, Vector2m_positions = []
Public 属性 继承自 Game.ContainerWidget
readonly WidgetsList Children
Public 属性 继承自 Game.Widget
Action< Vector2MeasureOverride1
Action Update1
bool m_isVisible
bool m_isEnabled
Vector2 m_actualSize
Vector2 m_desiredSize
Vector2 m_parentDesiredSize
BoundingRectangle m_globalBounds
Vector2 m_parentOffset
bool m_isLayoutTransformIdentity = true
bool m_isRenderTransformIdentity = true
Matrix m_layoutTransform = Matrix.Identity
Matrix m_renderTransform = Matrix.Identity
Matrix m_globalTransform = Matrix.Identity
Matrixm_invertedGlobalTransform
float? m_globalScale
Color m_colorTransform = Color.White
Color m_globalColorTransform
WidgetInput m_widgetsHierarchyInput

静态 Public 属性

const string fName = "VitalStatsWidget"
静态 Public 属性 继承自 Game.Widget
static Queue< DrawContextm_drawContextsCache = new()
static int LayersLimit = -1
static bool DrawWidgetBounds = false

额外继承的成员函数

静态 Public 成员函数 继承自 Game.CanvasWidget
static void SetPosition (Widget widget, Vector2 position)
静态 Public 成员函数 继承自 Game.ContainerWidget
static void ArrangeChildWidgetInCell (Vector2 c1, Vector2 c2, Widget widget)
静态 Public 成员函数 继承自 Game.Widget
static Widget LoadWidget (object eventsTarget, XElement node, ContainerWidget parentWidget)
static bool TestOverlap (Widget w1, Widget w2)
static bool IsNodeIncludedOnCurrentPlatform (XElement node)
static void UpdateWidgetsHierarchy (Widget rootWidget)
static void LayoutWidgetsHierarchy (Widget rootWidget, Vector2 availableSize)
static void DrawWidgetsHierarchy (Widget rootWidget)
static Type FindTypeFromXmlName (string name, string namespaceName)
static Widget HitTestGlobal (Widget widget, Vector2 point, Func< Widget, bool > predicate)
static void UpdateWidgetsHierarchy (Widget widget, ref bool isMouseCursorVisible)
属性 继承自 Game.CanvasWidget
Vector2 Size = new(-1f) [get, set]
属性 继承自 Game.ContainerWidget
IEnumerable< WidgetAllChildren [get]
属性 继承自 Game.Widget
WidgetInput WidgetsHierarchyInput [get, set]
WidgetInput Input [get]
Matrix LayoutTransform [get, set]
Matrix RenderTransform [get, set]
Matrix GlobalTransform [get]
float GlobalScale [get]
Matrix InvertedGlobalTransform [get]
BoundingRectangle GlobalBounds [get]
Color ColorTransform [get, set]
Color GlobalColorTransform [get]
virtual string Name [get, set]
object Tag [get, set]
object ExtraData [get, set]
virtual bool IsVisible [get, set]
virtual bool IsEnabled [get, set]
virtual bool IsHitTestVisible [get, set]
bool IsVisibleGlobal [get]
bool IsEnabledGlobal [get]
bool ClampToBounds [get, set]
virtual Vector2 Margin [get, set]
virtual float MarginLeft [get, set]
virtual float MarginRight [get, set]
virtual float MarginTop [get, set]
virtual float MarginBottom [get, set]
virtual Vector4 Margin4 [get, set]
virtual float MarginHorizontalSum [get]
virtual float MarginVerticalSum [get]
virtual Vector2 MarginHorizontalSumAndVerticalSum [get]
virtual WidgetAlignment HorizontalAlignment [get, set]
virtual WidgetAlignment VerticalAlignment [get, set]
Vector2 ActualSize [get]
Vector2 DesiredSize [get, set]
Vector2 ParentDesiredSize [get]
bool IsUpdateEnabled = true [get, set]
bool IsDrawEnabled = true [get, set]
bool IsDrawRequired [get, set]
bool IsOverdrawRequired [get, set]
XElement Style [set]
ContainerWidget ParentWidget [get, set]
Widget RootWidget [get]

详细描述

在文件 VitalStatsWidget.cs6 行定义.

构造及析构函数说明

◆ VitalStatsWidget()

Game.VitalStatsWidget.VitalStatsWidget ( ComponentPlayer componentPlayer)

在文件 VitalStatsWidget.cs37 行定义.

函数调用图:

成员函数说明

◆ Update()

override void Game.VitalStatsWidget.Update ( )
virtual

重载 Game.Widget .

在文件 VitalStatsWidget.cs69 行定义.

函数调用图:

类成员变量说明

◆ fName

const string Game.VitalStatsWidget.fName = "VitalStatsWidget"
static

在文件 VitalStatsWidget.cs35 行定义.

◆ m_chokeButton

ButtonWidget Game.VitalStatsWidget.m_chokeButton

在文件 VitalStatsWidget.cs7 行定义.

◆ m_componentPlayer

ComponentPlayer Game.VitalStatsWidget.m_componentPlayer

在文件 VitalStatsWidget.cs34 行定义.

◆ m_experienceLink

LinkWidget Game.VitalStatsWidget.m_experienceLink

在文件 VitalStatsWidget.cs29 行定义.

◆ m_experienceValueBar

ValueBarWidget Game.VitalStatsWidget.m_experienceValueBar

在文件 VitalStatsWidget.cs30 行定义.

◆ m_foodLink

LinkWidget Game.VitalStatsWidget.m_foodLink

在文件 VitalStatsWidget.cs13 行定义.

◆ m_foodValueBar

ValueBarWidget Game.VitalStatsWidget.m_foodValueBar

在文件 VitalStatsWidget.cs14 行定义.

◆ m_healthLink

LinkWidget Game.VitalStatsWidget.m_healthLink

在文件 VitalStatsWidget.cs9 行定义.

◆ m_healthValueBar

ValueBarWidget Game.VitalStatsWidget.m_healthValueBar

在文件 VitalStatsWidget.cs10 行定义.

◆ m_hungerLabel

LabelWidget Game.VitalStatsWidget.m_hungerLabel

在文件 VitalStatsWidget.cs28 行定义.

◆ m_hungerLink

LinkWidget Game.VitalStatsWidget.m_hungerLink

在文件 VitalStatsWidget.cs27 行定义.

◆ m_insulationLabel

LabelWidget Game.VitalStatsWidget.m_insulationLabel

在文件 VitalStatsWidget.cs32 行定义.

◆ m_insulationLink

LinkWidget Game.VitalStatsWidget.m_insulationLink

在文件 VitalStatsWidget.cs31 行定义.

◆ m_resilienceLabel

LabelWidget Game.VitalStatsWidget.m_resilienceLabel

在文件 VitalStatsWidget.cs24 行定义.

◆ m_resilienceLink

LinkWidget Game.VitalStatsWidget.m_resilienceLink

在文件 VitalStatsWidget.cs23 行定义.

◆ m_sleepLink

LinkWidget Game.VitalStatsWidget.m_sleepLink

在文件 VitalStatsWidget.cs15 行定义.

◆ m_sleepValueBar

ValueBarWidget Game.VitalStatsWidget.m_sleepValueBar

在文件 VitalStatsWidget.cs16 行定义.

◆ m_speedLabel

LabelWidget Game.VitalStatsWidget.m_speedLabel

在文件 VitalStatsWidget.cs26 行定义.

◆ m_speedLink

LinkWidget Game.VitalStatsWidget.m_speedLink

在文件 VitalStatsWidget.cs25 行定义.

◆ m_staminaLink

LinkWidget Game.VitalStatsWidget.m_staminaLink

在文件 VitalStatsWidget.cs11 行定义.

◆ m_staminaValueBar

ValueBarWidget Game.VitalStatsWidget.m_staminaValueBar

在文件 VitalStatsWidget.cs12 行定义.

◆ m_strengthLabel

LabelWidget Game.VitalStatsWidget.m_strengthLabel

在文件 VitalStatsWidget.cs22 行定义.

◆ m_strengthLink

LinkWidget Game.VitalStatsWidget.m_strengthLink

在文件 VitalStatsWidget.cs21 行定义.

◆ m_temperatureLink

LinkWidget Game.VitalStatsWidget.m_temperatureLink

在文件 VitalStatsWidget.cs17 行定义.

◆ m_temperatureValueBar

ValueBarWidget Game.VitalStatsWidget.m_temperatureValueBar

在文件 VitalStatsWidget.cs18 行定义.

◆ m_titleLabel

LabelWidget Game.VitalStatsWidget.m_titleLabel

在文件 VitalStatsWidget.cs8 行定义.

◆ m_wetnessLink

LinkWidget Game.VitalStatsWidget.m_wetnessLink

在文件 VitalStatsWidget.cs19 行定义.

◆ m_wetnessValueBar

ValueBarWidget Game.VitalStatsWidget.m_wetnessValueBar

在文件 VitalStatsWidget.cs20 行定义.


该类的文档由以下文件生成: