|
Arma Reforger Script API
|
Base map UI component for map tools which are using RenderTargetWidget to display. More...
Public Member Functions | |
| IEntity | FindRelatedGadget () |
| Find related gadget in inventory. | |
| void | SetFrameVisible () |
| TODO Frame is now set through script here instead of directly in callqueue to avoid leak. | |
| override void | OnMapOpen (MapConfiguration config) |
| SCR_MapEntity event. | |
| override void | OnMapClose (MapConfiguration config) |
| SCR_MapEntity event. | |
| void | SCR_MapRTWBaseUI () |
Public Member Functions inherited from SCR_MapUIBaseComponent | |
| bool | IsConfigDisabled () |
| bool | IsExclusive () |
| void | SetActive (bool active, bool isCleanup=false) |
| Enable open/close events, called every time component is activated, usually on map open. | |
| void | Init () |
| Init method for cases where all modules and components should be loaded already so constructor cannot be used, called once after creation. | |
| void | Update (float timeSlice) |
| Update method for frame operations. | |
| bool | IsToolMenuFocused () |
| void | SCR_MapUIBaseComponent () |
Protected Member Functions | |
| void | SetWidgetNames () |
| Set widget names. | |
| void | InitPositionVectors () |
| Initialise RT camera and prefab positon. | |
| string | GetPrefabResource () |
| Get prefab resource for display. | |
| void | ToggleVisible () |
| Visibility toggle. | |
| void | SetVisible (bool visible) |
| Set visibility. | |
| bool | SetupRTWorld () |
| Setup preview world. | |
| bool | SpawnPrefab () |
| Spawn prefab in the preview world. | |
| void | SetSize (bool nextSize=false) |
| Set size of RTW widget, cyclying through an array of prepared sizes. | |
| void | OnDragWidget (Widget widget) |
| Drag event. | |
| void | OnActivateTool (Widget widget) |
| SCR_MapToolInteractionUI event. | |
Protected Attributes | |
| ref array< ref ToolSize > | m_aSizesArray |
| string | WIDGET_NAME |
| string | RT_WIDGET_NAME |
| string | WORLD_RESOURCE = "{88ABCDC0EEC969DF}Prefabs/World/PreviewWorld/MapCompassWorld.et" |
| string | WORLD_NAME |
| vector | m_vPrefabPos |
| vector | m_vCameraPos |
| vector | m_vCameraAngle |
| bool | m_bIsVisible |
| bool | m_bWantedVisible |
| bool | m_bIsDragged = false |
| int | m_iCurrentSizeIndex |
| int | m_iSizesCount |
| float | m_fPosX |
| float | m_fPosY |
| EGadgetType | m_eGadgetType |
| GenericEntity | m_RTEntity |
| ref SharedItemRef | m_RTWorld |
| SCR_MapToolEntry | m_ToolMenuEntry |
| Widget | m_wFrame |
| RenderTargetWidget | m_wRenderTarget |
Protected Attributes inherited from SCR_MapUIBaseComponent | |
| bool | m_bDisableComponent |
| bool | m_bIsExclusive |
| bool | m_bHookToRoot = false |
| Widget | m_RootWidget |
| SCR_MapEntity | m_MapEntity |
Static Protected Attributes | |
| static const string | BASE_WORLD_TYPE = "ChimeraWorld" |
| static const float | CAMERA_VERTICAL_FOV = 43 |
Base map UI component for map tools which are using RenderTargetWidget to display.
| void SCR_MapRTWBaseUI.SCR_MapRTWBaseUI | ( | ) |
| IEntity SCR_MapRTWBaseUI.FindRelatedGadget | ( | ) |
Find related gadget in inventory.
Implemented in SCR_MapCompassUIDeploy, and SCR_MapWatchUIDeploy.
|
protected |
Get prefab resource for display.
Implemented in SCR_MapCompassUI, SCR_MapCompassUIDeploy, SCR_MapWatchUI, and SCR_MapWatchUIDeploy.
|
protected |
Initialise RT camera and prefab positon.
Implemented in SCR_MapCompassUI, and SCR_MapWatchUI.
|
protected |
SCR_MapToolInteractionUI event.
|
protected |
Drag event.
| [in] | widget |
| override void SCR_MapRTWBaseUI.OnMapClose | ( | MapConfiguration | config | ) |
| override void SCR_MapRTWBaseUI.OnMapOpen | ( | MapConfiguration | config | ) |
| void SCR_MapRTWBaseUI.SetFrameVisible | ( | ) |
TODO Frame is now set through script here instead of directly in callqueue to avoid leak.
|
protected |
Set size of RTW widget, cyclying through an array of prepared sizes.
| [in] | nextSize | determines whether current size is kept or swapped to the next one in size array |
|
protected |
Setup preview world.
|
protected |
Set visibility.
| [in] | visible | is true/false switch |
Implemented in SCR_MapCompassUI, and SCR_MapWatchUI.
|
protected |
Set widget names.
Implemented in SCR_MapCompassUI, and SCR_MapWatchUI.
|
protected |
Spawn prefab in the preview world.
|
protected |
Visibility toggle.
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |