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

Public 成员函数

 NewWorldScreen ()
override void Enter (object[] parameters)
override void Update ()
Public 成员函数 继承自 Game.Screen
virtual void Leave ()
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 属性

TextBoxWidget m_nameTextBox
TextBoxWidget m_seedTextBox
ButtonWidget m_gameModeButton
ButtonWidget m_startingPositionButton
ButtonWidget m_worldOptionsButton
LabelWidget m_blankSeedLabel
ButtonWidget m_seedButton
LabelWidget m_descriptionLabel
LabelWidget m_errorLabel
ButtonWidget m_playButton
Random m_random = new()
WorldSettings m_worldSettings
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 = "NewWorldScreen"
静态 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]

详细描述

在文件 NewWorldScreen.cs4 行定义.

构造及析构函数说明

◆ NewWorldScreen()

Game.NewWorldScreen.NewWorldScreen ( )

在文件 NewWorldScreen.cs31 行定义.

函数调用图:

成员函数说明

◆ Enter()

override void Game.NewWorldScreen.Enter ( object[] parameters)
virtual

重载 Game.Screen .

在文件 NewWorldScreen.cs49 行定义.

◆ Update()

override void Game.NewWorldScreen.Update ( )
virtual

重载 Game.Widget .

在文件 NewWorldScreen.cs58 行定义.

函数调用图:

类成员变量说明

◆ fName

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

在文件 NewWorldScreen.cs29 行定义.

◆ m_blankSeedLabel

LabelWidget Game.NewWorldScreen.m_blankSeedLabel

在文件 NewWorldScreen.cs15 行定义.

◆ m_descriptionLabel

LabelWidget Game.NewWorldScreen.m_descriptionLabel

在文件 NewWorldScreen.cs19 行定义.

◆ m_errorLabel

LabelWidget Game.NewWorldScreen.m_errorLabel

在文件 NewWorldScreen.cs21 行定义.

◆ m_gameModeButton

ButtonWidget Game.NewWorldScreen.m_gameModeButton

在文件 NewWorldScreen.cs9 行定义.

◆ m_nameTextBox

TextBoxWidget Game.NewWorldScreen.m_nameTextBox

在文件 NewWorldScreen.cs5 行定义.

◆ m_playButton

ButtonWidget Game.NewWorldScreen.m_playButton

在文件 NewWorldScreen.cs23 行定义.

◆ m_random

Random Game.NewWorldScreen.m_random = new()

在文件 NewWorldScreen.cs25 行定义.

◆ m_seedButton

ButtonWidget Game.NewWorldScreen.m_seedButton

在文件 NewWorldScreen.cs17 行定义.

◆ m_seedTextBox

TextBoxWidget Game.NewWorldScreen.m_seedTextBox

在文件 NewWorldScreen.cs7 行定义.

◆ m_startingPositionButton

ButtonWidget Game.NewWorldScreen.m_startingPositionButton

在文件 NewWorldScreen.cs11 行定义.

◆ m_worldOptionsButton

ButtonWidget Game.NewWorldScreen.m_worldOptionsButton

在文件 NewWorldScreen.cs13 行定义.

◆ m_worldSettings

WorldSettings Game.NewWorldScreen.m_worldSettings

在文件 NewWorldScreen.cs27 行定义.


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