|
Arma Reforger Script API
|
Static Public Member Functions | |
| static Widget | FindWidgetInChildren (Widget w, WidgetType type) |
| Search for widget of specific type in itslef and all its children, recursively. | |
| static Widget | FindWidgetInChildren (Widget w, TypeName type) |
| Search for widget with UI component in widget and all its children, recursively. | |
| static Widget | FindWidgetInParents (Widget w, WidgetType type) |
| Search for widget of specific type in itself and all its parents. | |
| static ScriptedWidgetEventHandler | FindHandlerInChildren (Widget w, TypeName type) |
| Search for UI component in widget and all its children, recursively. | |
| static ScriptedWidgetEventHandler | FindHandlerInParents (Widget w, TypeName type) |
| Search for UI component in widget and all its parents. | |
| static bool | InHierarchy (Widget w, Widget parent) |
| Check if a widget is in another widget's hierarchy. | |
| static bool | IsChildOf (Widget w, notnull Widget parent, out int depth=0) |
| Check if a widget is in another widget's hierarchy. | |
| static void | RemoveChildrenFromHierarchy (Widget w) |
| Remove all child widgets from hierarchy. | |
| static MenuBase | FindMenu (Widget w) |
| Find menu to which the widget belongs to. | |
| static string | GetHierarchyLog (Widget w, string delimiter=" / ") |
| Get full hierarchy path towards a widget. | |
| static ScriptedWidgetEventHandler | FindHandlerOnWidget (Widget root, string widgetName, TypeName type) |
| Find widget handler in widget by name inside given widget. | |
|
static |
Search for UI component in widget and all its children, recursively.
| w | Queried widget |
| type | Type of desired UI component |
|
static |
Search for UI component in widget and all its parents.
| w | Queried widget |
| type | Type of desired UI component |
|
static |
Find widget handler in widget by name inside given widget.
| root | Widget |
| widgetName | string |
| type | typename |
|
static |
Find menu to which the widget belongs to.
Must not be called for ScriptedWidgetComponent.HandlerAttached(), it's too early.
| w | Queried widget |
|
static |
Search for widget with UI component in widget and all its children, recursively.
| w | Queried widget |
| type | Type of desired UI component |
|
static |
Search for widget of specific type in itslef and all its children, recursively.
| w | Queried widget |
| type | Type of desired widget |
|
static |
Search for widget of specific type in itself and all its parents.
| w | Queried widget |
| type | Type of desired widget |
|
static |
Get full hierarchy path towards a widget.
| w | Widget |
| delimeter | String added between widget names |
|
static |
Check if a widget is in another widget's hierarchy.
| w | Queried widget |
| parent | Queried parent |
|
static |
Check if a widget is in another widget's hierarchy.
If we reach the parent after performing more than 0 steps then the Widget is a child
| w | Queried widget |
| parent | Queried parent |
|
static |
Remove all child widgets from hierarchy.
| w | Parent widget |