My Project v1
Project
载入中...
搜索中...
未找到
Game.LoadingScreen
类 Game.LoadingScreen 继承关系图:
Game.LoadingScreen 的协作图:

Public 类型

enum  LogType { Info , Warning , Error , Advice }
 

Public 成员函数

 LoadingScreen ()
 
void ContentLoaded ()
 
void AddScreen (string name, Screen screen)
 
override void Leave ()
 
override void Enter (object[] parameters)
 
override void Update ()
 
void ConfirmQuit ()
 
- Public 成员函数 继承自 Game.Screen
 Screen ()
 
- Public 成员函数 继承自 Game.CanvasWidget
Vector2? GetWidgetPosition (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 ()
 
void LoadContents (object eventsTarget, XElement node)
 
void LoadProperties (object eventsTarget, XElement node)
 
void LoadChildren (object eventsTarget, XElement node)
 
bool IsChildWidgetOf (ContainerWidget containerWidget)
 
virtual void ChangeParent (ContainerWidget parentWidget)
 
void Measure (Vector2 parentAvailableSize)
 
void Arrange (Vector2 position, Vector2 parentActualSize)
 
virtual void Draw (DrawContext dc)
 
virtual void Overdraw (DrawContext dc)
 
virtual bool HitTest (Vector2 point)
 
Widget HitTestGlobal (Vector2 point, Func< Widget, bool > predicate=null)
 
Vector2 ScreenToWidget (Vector2 p)
 
Vector2 WidgetToScreen (Vector2 p)
 
BoundingRectangle TransformBoundsToParent (Vector2 size)
 
BoundingRectangle TransformBoundsToGlobal (Vector2 size)
 

静态 Public 成员函数

static Color GetColor (LogType type)
 
static void Error (string mesg)
 
static void Info (string mesg)
 
static void Warning (string mesg)
 
static void Advice (string mesg)
 
static void Add (LogType type, string mesg)
 
- 静态 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)
 

静态 Public 属性

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

Private 成员函数

class LogItem (LoadingScreen.LogType type, string log)
 
void InitActions ()
 
void InitScreens ()
 
void AddLoadAction (Action action)
 

静态 Private 成员函数

static LoadingScreen ()
 

Private 属性

List< Action > LoadingActoins = []
 
List< Action > ModLoadingActoins = []
 
CanvasWidget Canvas = new()
 
RectangleWidget Background = new() { FillColor = SettingsManager.DisplayLog ? Color.Black : Color.White, OutlineThickness = 0f, DepthWriteEnabled = true }
 

静态 Private 属性

static ListPanelWidget LogList = new() { Direction = LayoutDirection.Vertical, PlayClickSound = false }
 

额外继承的成员函数

- Public 属性 继承自 Game.CanvasWidget
Dictionary< Widget, Vector2 > m_positions = []
 
- Public 属性 继承自 Game.ContainerWidget
readonly WidgetsList Children
 
- Public 属性 继承自 Game.Widget
Action< Vector2 > MeasureOverride1
 
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
 
Matrix? m_invertedGlobalTransform
 
float? m_globalScale
 
Color m_colorTransform = Color.White
 
Color m_globalColorTransform
 
WidgetInput m_widgetsHierarchyInput
 
- 属性 继承自 Game.CanvasWidget
Vector2 Size = new Vector2(-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]
 
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 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]
 

成员枚举类型说明

◆ LogType

枚举值
Info 
Warning 
Error 
Advice 

构造及析构函数说明

◆ LoadingScreen() [1/2]

static Game.LoadingScreen.LoadingScreen ( )
staticprivate
函数调用图:

◆ LoadingScreen() [2/2]

Game.LoadingScreen.LoadingScreen ( )
函数调用图:

成员函数说明

◆ Add()

static void Game.LoadingScreen.Add ( LogType type,
string mesg )
static
函数调用图:

◆ AddLoadAction()

void Game.LoadingScreen.AddLoadAction ( Action action)
private
这是这个函数的调用关系图:

◆ AddScreen()

void Game.LoadingScreen.AddScreen ( string name,
Screen screen )
函数调用图:
这是这个函数的调用关系图:

◆ Advice()

static void Game.LoadingScreen.Advice ( string mesg)
static

◆ ConfirmQuit()

void Game.LoadingScreen.ConfirmQuit ( )
这是这个函数的调用关系图:

◆ ContentLoaded()

void Game.LoadingScreen.ContentLoaded ( )
函数调用图:
这是这个函数的调用关系图:

◆ Enter()

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

重载 Game.Screen .

函数调用图:

◆ Error()

static void Game.LoadingScreen.Error ( string mesg)
static
这是这个函数的调用关系图:

◆ GetColor()

static Color Game.LoadingScreen.GetColor ( LogType type)
static
这是这个函数的调用关系图:

◆ Info()

static void Game.LoadingScreen.Info ( string mesg)
static
这是这个函数的调用关系图:

◆ InitActions()

void Game.LoadingScreen.InitActions ( )
private
函数调用图:
这是这个函数的调用关系图:

◆ InitScreens()

void Game.LoadingScreen.InitScreens ( )
private
函数调用图:
这是这个函数的调用关系图:

◆ Leave()

override void Game.LoadingScreen.Leave ( )
virtual

重载 Game.Screen .

函数调用图:

◆ LogItem()

class Game.LoadingScreen.LogItem ( LoadingScreen.LogType type,
string log )
private
这是这个函数的调用关系图:

◆ Update()

override void Game.LoadingScreen.Update ( )
virtual

重载 Game.Widget .

函数调用图:

◆ Warning()

static void Game.LoadingScreen.Warning ( string mesg)
static
这是这个函数的调用关系图:

类成员变量说明

◆ Background

RectangleWidget Game.LoadingScreen.Background = new() { FillColor = SettingsManager.DisplayLog ? Color.Black : Color.White, OutlineThickness = 0f, DepthWriteEnabled = true }
private

◆ Canvas

CanvasWidget Game.LoadingScreen.Canvas = new()
private

◆ fName

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

◆ LoadingActoins

List<Action> Game.LoadingScreen.LoadingActoins = []
private

◆ LogList

ListPanelWidget Game.LoadingScreen.LogList = new() { Direction = LayoutDirection.Vertical, PlayClickSound = false }
staticprivate

◆ m_isContentLoaded

bool Game.LoadingScreen.m_isContentLoaded = false
static

◆ ModLoadingActoins

List<Action> Game.LoadingScreen.ModLoadingActoins = []
private

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