Arma Reforger Script API
|
Widget component which can tap to MenuRootBase events. More...
Public Member Functions | |
MenuRootBase | GetMenu () |
Get the menu instance. | |
Widget | GetWidget () |
Get widget to which the component belongs to. | |
void | AddComponent (MenuRootSubComponent component) |
Register subcomponent to this root component. | |
void | RemoveComponent (MenuRootSubComponent component) |
Unregister subcomponent from this root component. | |
MenuRootSubComponent | FindComponent (TypeName type, bool showError=false) |
Find first subcomponent of given type. | |
int | FindComponents (TypeName type, notnull out array< MenuRootSubComponent > outComponents) |
Find all subcomponents of given type. | |
void | Init (MenuRootBase menu) |
override void | HandlerAttached (Widget w) |
Static Public Member Functions | |
static MenuRootComponent | GetRootOf (Widget widget) |
Get the component. | |
static MenuRootComponent | GetRootOf (MenuBase menu) |
Get the component. | |
Protected Member Functions | |
void | InitNotRoot () |
void | ExecInit (Widget w) |
Protected Attributes | |
Widget | m_Widget |
MenuRootBase | m_Menu |
ref array< MenuRootSubComponent > | m_aComponents = {} |
Widget component which can tap to MenuRootBase events.
Doesn't need to be added manually, will be created the first time GetComponent() function is called. Subcomponents (MenuRootSubComponent) can access menu and its handlers through this root.
void MenuRootComponent.AddComponent | ( | MenuRootSubComponent | component | ) |
Register subcomponent to this root component.
component | Subcomponent |
|
protected |
MenuRootSubComponent MenuRootComponent.FindComponent | ( | TypeName | type, |
bool | showError = false ) |
Find first subcomponent of given type.
type | Subcomponent type |
int MenuRootComponent.FindComponents | ( | TypeName | type, |
notnull out array< MenuRootSubComponent > | outComponents ) |
Find all subcomponents of given type.
type | Subcomponent type | |
[out] | outCOmponents | Array to be filled with all compatible subcomponents |
MenuRootBase MenuRootComponent.GetMenu | ( | ) |
Get the menu instance.
|
static |
Get the component.
menu | Menu of which the root widget is used |
|
static |
Get the component.
widget | Widget of which the root widget is used |
Widget MenuRootComponent.GetWidget | ( | ) |
Get widget to which the component belongs to.
override void MenuRootComponent.HandlerAttached | ( | Widget | w | ) |
void MenuRootComponent.Init | ( | MenuRootBase | menu | ) |
|
protected |
void MenuRootComponent.RemoveComponent | ( | MenuRootSubComponent | component | ) |
Unregister subcomponent from this root component.
component | Subcomponent |
|
protected |
|
protected |
|
protected |