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

Public 成员函数

 ValueBarWidget ()
void Flash (int count)
override void Draw (DrawContext dc)
override void MeasureOverride (Vector2 parentAvailableSize)
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 ArrangeOverride ()
virtual void UpdateCeases ()
virtual void Update ()
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 void Dispose ()
virtual BoundingRectangle TransformBoundsToParent (Vector2 size)
virtual BoundingRectangle TransformBoundsToGlobal (Vector2 size)

Public 属性

float m_value
int m_barsCount = 8
Color m_litBarColor = new(16, 140, 0)
Color m_litBarColor2 = Color.Transparent
Color m_unlitBarColor = new(48, 48, 48)
Subtexture m_barSubtexture
LayoutDirection m_layoutDirection
float m_flashCount
bool m_textureLinearFilter
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

属性

float Value [get, set]
int BarsCount [get, set]
bool FlipDirection [get, set]
Vector2 BarSize [get, set]
float Spacing [get, set]
Color LitBarColor [get, set]
Color LitBarColor2 [get, set]
Color UnlitBarColor [get, set]
bool BarBlending [get, set]
bool HalfBars [get, set]
Subtexture BarSubtexture [get, set]
bool TextureLinearFilter [get, set]
LayoutDirection LayoutDirection [get, set]
属性 继承自 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]

额外继承的成员函数

静态 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)
静态 Public 属性 继承自 Game.Widget
static Queue< DrawContextm_drawContextsCache = new()
static int LayersLimit = -1
static bool DrawWidgetBounds = false

详细描述

在文件 ValueBarWidget.cs5 行定义.

构造及析构函数说明

◆ ValueBarWidget()

Game.ValueBarWidget.ValueBarWidget ( )

在文件 ValueBarWidget.cs74 行定义.

成员函数说明

◆ Draw()

override void Game.ValueBarWidget.Draw ( DrawContext dc)
virtual

重载 Game.Widget .

在文件 ValueBarWidget.cs85 行定义.

函数调用图:

◆ Flash()

void Game.ValueBarWidget.Flash ( int count)

在文件 ValueBarWidget.cs81 行定义.

函数调用图:

◆ MeasureOverride()

override void Game.ValueBarWidget.MeasureOverride ( Vector2 parentAvailableSize)
virtual

重载 Game.Widget .

在文件 ValueBarWidget.cs206 行定义.

类成员变量说明

◆ m_barsCount

int Game.ValueBarWidget.m_barsCount = 8

在文件 ValueBarWidget.cs8 行定义.

◆ m_barSubtexture

Subtexture Game.ValueBarWidget.m_barSubtexture

在文件 ValueBarWidget.cs16 行定义.

◆ m_flashCount

float Game.ValueBarWidget.m_flashCount

在文件 ValueBarWidget.cs20 行定义.

◆ m_layoutDirection

LayoutDirection Game.ValueBarWidget.m_layoutDirection

在文件 ValueBarWidget.cs18 行定义.

◆ m_litBarColor

Color Game.ValueBarWidget.m_litBarColor = new(16, 140, 0)

在文件 ValueBarWidget.cs10 行定义.

◆ m_litBarColor2

Color Game.ValueBarWidget.m_litBarColor2 = Color.Transparent

在文件 ValueBarWidget.cs12 行定义.

◆ m_textureLinearFilter

bool Game.ValueBarWidget.m_textureLinearFilter

在文件 ValueBarWidget.cs22 行定义.

◆ m_unlitBarColor

Color Game.ValueBarWidget.m_unlitBarColor = new(48, 48, 48)

在文件 ValueBarWidget.cs14 行定义.

◆ m_value

float Game.ValueBarWidget.m_value

在文件 ValueBarWidget.cs6 行定义.

属性说明

◆ BarBlending

bool Game.ValueBarWidget.BarBlending
getset

在文件 ValueBarWidget.cs55 行定义.

◆ BarsCount

int Game.ValueBarWidget.BarsCount
getset

在文件 ValueBarWidget.cs29 行定义.

◆ BarSize

Vector2 Game.ValueBarWidget.BarSize
getset

在文件 ValueBarWidget.cs36 行定义.

◆ BarSubtexture

Subtexture Game.ValueBarWidget.BarSubtexture
getset

在文件 ValueBarWidget.cs59 行定义.

◆ FlipDirection

bool Game.ValueBarWidget.FlipDirection
getset

在文件 ValueBarWidget.cs34 行定义.

◆ HalfBars

bool Game.ValueBarWidget.HalfBars
getset

在文件 ValueBarWidget.cs57 行定义.

◆ LayoutDirection

LayoutDirection Game.ValueBarWidget.LayoutDirection
getset

在文件 ValueBarWidget.cs69 行定义.

◆ LitBarColor

Color Game.ValueBarWidget.LitBarColor
getset

在文件 ValueBarWidget.cs40 行定义.

◆ LitBarColor2

Color Game.ValueBarWidget.LitBarColor2
getset

在文件 ValueBarWidget.cs45 行定义.

◆ Spacing

float Game.ValueBarWidget.Spacing
getset

在文件 ValueBarWidget.cs38 行定义.

◆ TextureLinearFilter

bool Game.ValueBarWidget.TextureLinearFilter
getset

在文件 ValueBarWidget.cs64 行定义.

◆ UnlitBarColor

Color Game.ValueBarWidget.UnlitBarColor
getset

在文件 ValueBarWidget.cs50 行定义.

◆ Value

float Game.ValueBarWidget.Value
getset

在文件 ValueBarWidget.cs24 行定义.


该类的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Survivalcraft.Windows/Widget/ValueBarWidget.cs