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

Public 成员函数

 InventorySlotWidget ()
 
virtual void AssignInventorySlot (IInventory inventory, int slotIndex)
 
override void Update ()
 
override void MeasureOverride (Vector2 parentAvailableSize)
 
override void Draw (DrawContext dc)
 
void DragOver (Widget dragWidget, object data)
 
virtual void DragDrop (Widget dragWidget, object data)
 
virtual ComponentPlayer GetViewPlayer ()
 
virtual bool IsSplitMode ()
 
virtual bool HandleMoveItem (IInventory sourceInventory, int sourceSlotIndex, IInventory targetInventory, int targetSlotIndex, int count)
 
virtual bool HandleDragDrop (IInventory sourceInventory, int sourceSlotIndex, DragMode dragMode, IInventory targetInventory, int targetSlotIndex)
 
- Public 成员函数 继承自 Game.CanvasWidget
Vector2? GetWidgetPosition (Widget widget)
 
void SetWidgetPosition (Widget widget, Vector2? position)
 
override void WidgetRemoved (Widget widget)
 
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 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 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 成员函数 继承自 Game.IDragTargetWidget

Public 属性

BevelledRectangleWidget m_rectangleWidget
 
RectangleWidget m_highlightWidget
 
BlockIconWidget m_blockIconWidget
 
LabelWidget m_countWidget
 
ValueBarWidget m_healthBarWidget
 
RectangleWidget m_editOverlayWidget
 
RectangleWidget m_interactiveOverlayWidget
 
RectangleWidget m_foodOverlayWidget
 
LabelWidget m_splitLabelWidget
 
GameWidget m_gameWidget
 
DragHostWidget m_dragHostWidget
 
IInventory m_inventory
 
int m_slotIndex
 
DragModem_dragMode
 
bool m_focus
 
int m_lastCount = -1
 
InventoryDragData m_inventoryDragData
 
SubsystemTerrain m_subsystemTerrain
 
ComponentPlayer m_componentPlayer
 
Entity m_entity
 
- 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
 

属性

virtual bool HideBlockIcon [get, set]
 
virtual bool HideEditOverlay [get, set]
 
virtual bool HideInteractiveOverlay [get, set]
 
virtual bool HideFoodOverlay [get, set]
 
virtual bool HideHighlightRectangle [get, set]
 
virtual bool HideHealthBar [get, set]
 
virtual bool ProcessingOnly [get, set]
 
virtual Color CenterColor [get, set]
 
virtual Color BevelColor [get, set]
 
virtual ? Matrix CustomViewMatrix [get, set]
 
virtual GameWidget GameWidget [get]
 
virtual DragHostWidget DragHostWidget [get]
 
- 属性 继承自 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]
 

Private 成员函数

void UpdateEnvironmentData (DrawBlockEnvironmentData environmentData)
 

额外继承的成员函数

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

构造及析构函数说明

◆ InventorySlotWidget()

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

成员函数说明

◆ AssignInventorySlot()

virtual void Game.InventorySlotWidget.AssignInventorySlot ( IInventory inventory,
int slotIndex )
virtual
函数调用图:
这是这个函数的调用关系图:

◆ DragDrop()

virtual void Game.InventorySlotWidget.DragDrop ( Widget dragWidget,
object data )
virtual

实现了 Game.IDragTargetWidget.

函数调用图:

◆ DragOver()

void Game.InventorySlotWidget.DragOver ( Widget dragWidget,
object data )

◆ Draw()

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

重载 Game.Widget .

函数调用图:

◆ GetViewPlayer()

virtual ComponentPlayer Game.InventorySlotWidget.GetViewPlayer ( )
virtual
这是这个函数的调用关系图:

◆ HandleDragDrop()

virtual bool Game.InventorySlotWidget.HandleDragDrop ( IInventory sourceInventory,
int sourceSlotIndex,
DragMode dragMode,
IInventory targetInventory,
int targetSlotIndex )
virtual
函数调用图:
这是这个函数的调用关系图:

◆ HandleMoveItem()

virtual bool Game.InventorySlotWidget.HandleMoveItem ( IInventory sourceInventory,
int sourceSlotIndex,
IInventory targetInventory,
int targetSlotIndex,
int count )
virtual
函数调用图:
这是这个函数的调用关系图:

◆ IsSplitMode()

virtual bool Game.InventorySlotWidget.IsSplitMode ( )
virtual
函数调用图:
这是这个函数的调用关系图:

◆ MeasureOverride()

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

重载 Game.CanvasWidget .

函数调用图:

◆ Update()

override void Game.InventorySlotWidget.Update ( )
virtual

重载 Game.Widget .

函数调用图:

◆ UpdateEnvironmentData()

void Game.InventorySlotWidget.UpdateEnvironmentData ( DrawBlockEnvironmentData environmentData)
private
函数调用图:
这是这个函数的调用关系图:

类成员变量说明

◆ m_blockIconWidget

BlockIconWidget Game.InventorySlotWidget.m_blockIconWidget

◆ m_componentPlayer

ComponentPlayer Game.InventorySlotWidget.m_componentPlayer

◆ m_countWidget

LabelWidget Game.InventorySlotWidget.m_countWidget

◆ m_dragHostWidget

DragHostWidget Game.InventorySlotWidget.m_dragHostWidget

◆ m_dragMode

DragMode? Game.InventorySlotWidget.m_dragMode

◆ m_editOverlayWidget

RectangleWidget Game.InventorySlotWidget.m_editOverlayWidget

◆ m_entity

Entity Game.InventorySlotWidget.m_entity

◆ m_focus

bool Game.InventorySlotWidget.m_focus

◆ m_foodOverlayWidget

RectangleWidget Game.InventorySlotWidget.m_foodOverlayWidget

◆ m_gameWidget

GameWidget Game.InventorySlotWidget.m_gameWidget

◆ m_healthBarWidget

ValueBarWidget Game.InventorySlotWidget.m_healthBarWidget

◆ m_highlightWidget

RectangleWidget Game.InventorySlotWidget.m_highlightWidget

◆ m_interactiveOverlayWidget

RectangleWidget Game.InventorySlotWidget.m_interactiveOverlayWidget

◆ m_inventory

IInventory Game.InventorySlotWidget.m_inventory

◆ m_inventoryDragData

InventoryDragData Game.InventorySlotWidget.m_inventoryDragData

◆ m_lastCount

int Game.InventorySlotWidget.m_lastCount = -1

◆ m_rectangleWidget

BevelledRectangleWidget Game.InventorySlotWidget.m_rectangleWidget

◆ m_slotIndex

int Game.InventorySlotWidget.m_slotIndex

◆ m_splitLabelWidget

LabelWidget Game.InventorySlotWidget.m_splitLabelWidget

◆ m_subsystemTerrain

SubsystemTerrain Game.InventorySlotWidget.m_subsystemTerrain

属性说明

◆ BevelColor

virtual Color Game.InventorySlotWidget.BevelColor
getset

◆ CenterColor

virtual Color Game.InventorySlotWidget.CenterColor
getset

◆ CustomViewMatrix

virtual ? Matrix Game.InventorySlotWidget.CustomViewMatrix
getset

◆ DragHostWidget

virtual DragHostWidget Game.InventorySlotWidget.DragHostWidget
get

◆ GameWidget

virtual GameWidget Game.InventorySlotWidget.GameWidget
get

◆ HideBlockIcon

virtual bool Game.InventorySlotWidget.HideBlockIcon
getset

◆ HideEditOverlay

virtual bool Game.InventorySlotWidget.HideEditOverlay
getset

◆ HideFoodOverlay

virtual bool Game.InventorySlotWidget.HideFoodOverlay
getset

◆ HideHealthBar

virtual bool Game.InventorySlotWidget.HideHealthBar
getset

◆ HideHighlightRectangle

virtual bool Game.InventorySlotWidget.HideHighlightRectangle
getset

◆ HideInteractiveOverlay

virtual bool Game.InventorySlotWidget.HideInteractiveOverlay
getset

◆ ProcessingOnly

virtual bool Game.InventorySlotWidget.ProcessingOnly
getset

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