|
Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
|


Public 成员函数 | |
| ListPanelWidget () | |
| void | AddItem (object item) |
| void | AddItems (IEnumerable< object > items) |
| void | RemoveItem (object item) |
| void | RemoveItemAt (int index) |
| void | ClearItems () |
| override float | CalculateScrollAreaLength () |
| void | ScrollToItem (object item) |
| override void | MeasureOverride (Vector2 parentAvailableSize) |
| override void | ArrangeOverride () |
| override void | Update () |
| override void | Draw (DrawContext dc) |
| int | PositionToItemIndex (Vector2 position) |
| void | CreateListWidgets (float size) |
| Public 成员函数 继承自 Game.ScrollPanelWidget | |
| ScrollPanelWidget () | |
| void | StartInitialScroll () |
| override void | MeasureOverride (Vector2 parentAvailableSize) |
| override void | ArrangeOverride () |
| override void | Update () |
| override void | Draw (DrawContext dc) |
| bool | HitTestPanel (Vector2 position) |
| Public 成员函数 继承自 Game.ContainerWidget | |
| ContainerWidget () | |
| override void | UpdateCeases () |
| void | AddChildren (Widget widget) |
| void | RemoveChildren (Widget widget) |
| void | ClearChildren () |
| virtual void | WidgetAdded (Widget widget) |
| virtual void | WidgetRemoved (Widget widget) |
| 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 | 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) |
属性 | |
| Func< object, Widget > | ItemWidgetFactory [get, set] |
| override LayoutDirection | Direction [get, set] |
| override float | ScrollPosition [get, set] |
| float | ItemSize [get, set] |
| int? | SelectedIndex [get, set] |
| object | SelectedItem [get, set] |
| ReadOnlyList< object > | Items [get] |
| Color | SelectionColor [get, set] |
| virtual Action< object > | ItemClicked [get, set] |
| virtual Action | SelectionChanged [get, set] |
| 属性 继承自 Game.ScrollPanelWidget | |
| virtual LayoutDirection | Direction [get, set] |
| virtual float | ScrollPosition [get, set] |
| virtual float | ScrollSpeed [get, set] |
| 属性 继承自 Game.ContainerWidget | |
| IEnumerable< Widget > | AllChildren [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] |
额外继承的成员函数 | |
| 静态 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< DrawContext > | m_drawContextsCache = new() |
| static int | LayersLimit = -1 |
| static bool | DrawWidgetBounds = false |
在文件 ListPanelWidget.cs 第 5 行定义.
| Game.ListPanelWidget.ListPanelWidget | ( | ) |
在文件 ListPanelWidget.cs 第 93 行定义.
| void Game.ListPanelWidget.AddItem | ( | object | item | ) |
在文件 ListPanelWidget.cs 第 103 行定义.
| void Game.ListPanelWidget.AddItems | ( | IEnumerable< object > | items | ) |
在文件 ListPanelWidget.cs 第 108 行定义.
|
virtual |
|
virtual |
在文件 ListPanelWidget.cs 第 137 行定义.
| void Game.ListPanelWidget.ClearItems | ( | ) |
| void Game.ListPanelWidget.CreateListWidgets | ( | float | size | ) |
|
virtual |
|
virtual |
| int Game.ListPanelWidget.PositionToItemIndex | ( | Vector2 | position | ) |
| void Game.ListPanelWidget.RemoveItem | ( | object | item | ) |
| void Game.ListPanelWidget.RemoveItemAt | ( | int | index | ) |
| void Game.ListPanelWidget.ScrollToItem | ( | object | item | ) |
在文件 ListPanelWidget.cs 第 139 行定义.
|
virtual |
| Vector2 Game.ListPanelWidget.lastActualSize = new(-1f) |
在文件 ListPanelWidget.cs 第 24 行定义.
| bool Game.ListPanelWidget.m_clickAllowed |
在文件 ListPanelWidget.cs 第 22 行定义.
| int Game.ListPanelWidget.m_firstVisibleIndex |
在文件 ListPanelWidget.cs 第 12 行定义.
| List<object> Game.ListPanelWidget.m_items = [] |
在文件 ListPanelWidget.cs 第 6 行定义.
| float Game.ListPanelWidget.m_itemSize |
在文件 ListPanelWidget.cs 第 18 行定义.
| int Game.ListPanelWidget.m_lastVisibleIndex |
在文件 ListPanelWidget.cs 第 14 行定义.
| int? Game.ListPanelWidget.m_selectedItemIndex |
在文件 ListPanelWidget.cs 第 8 行定义.
| Dictionary<int, Widget> Game.ListPanelWidget.m_widgetsByIndex = [] |
在文件 ListPanelWidget.cs 第 10 行定义.
| bool Game.ListPanelWidget.m_widgetsDirty |
在文件 ListPanelWidget.cs 第 20 行定义.
| bool Game.ListPanelWidget.PlayClickSound = true |
在文件 ListPanelWidget.cs 第 16 行定义.
|
getset |
在文件 ListPanelWidget.cs 第 28 行定义.
|
getset |
在文件 ListPanelWidget.cs 第 89 行定义.
|
get |
在文件 ListPanelWidget.cs 第 85 行定义.
|
getset |
在文件 ListPanelWidget.cs 第 48 行定义.
|
getset |
在文件 ListPanelWidget.cs 第 26 行定义.
|
getset |
在文件 ListPanelWidget.cs 第 38 行定义.
|
getset |
在文件 ListPanelWidget.cs 第 58 行定义.
|
getset |
在文件 ListPanelWidget.cs 第 72 行定义.
|
getset |
在文件 ListPanelWidget.cs 第 91 行定义.
|
getset |
在文件 ListPanelWidget.cs 第 87 行定义.