|
Arma Reforger Script API
|
Component for interacting with map tools. More...
Public Member Functions | |
| override void | OnMapOpen (MapConfiguration config) |
| SCR_MapEntity event. | |
| override void | OnMapClose (MapConfiguration config) |
| SCR_MapEntity event. | |
| override void | Update (float timeSlice) |
| Update method for frame operations. | |
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. | |
| bool | IsToolMenuFocused () |
| void | SCR_MapUIBaseComponent () |
Static Public Member Functions | |
| static ScriptInvoker | GetOnDragWidgetInvoker () |
| static ScriptInvokerBase< ScriptInvokerWidgetBool > | GetOnDragEndInvoker () |
| static ScriptInvoker | GetOnActivateToolInvoker () |
| static void | ActivateAction () |
| Tool action. | |
| static bool | StartDrag () |
| Begin drag. | |
| static bool | StartRotate () |
| Begin rotation. | |
| static bool | CanBeManipulated (array< Widget > tracedWidgets) |
| Check whether the tool isnt currently clicked from top of/under of a button. | |
| static void | EndDrag () |
| End drag. | |
| static void | EndRotate () |
| End rotation. | |
| static void | DragWidget (notnull Widget widget) |
| Drag widget. | |
| static void | RotateWidget (notnull Widget widget) |
| Rotate widget based on mouse movement. | |
Static Public Attributes | |
| static bool | s_bIsDragging = false |
| static bool | s_bIsRotating = false |
| static bool | s_bCanDragOffScreen = false |
| static float | s_fDragTime |
Static Protected Attributes | |
| const float | HOLD_DRAG_EVENT_TIME = 0.2 |
| const float | ROTATION_DEADZONE = 0.02 |
| static ref ScriptInvoker< Widget > | s_OnDragWidget = new ScriptInvoker() |
| static ref ScriptInvokerBase< ScriptInvokerWidgetBool > | s_OnDragEnd = new ScriptInvokerBase<ScriptInvokerWidgetBool>() |
| static ref ScriptInvoker< Widget > | s_OnActivateTool = new ScriptInvoker() |
| static Widget | s_DraggedWidget |
| static Widget | s_RotatedWidget |
| static SCR_MapCursorModule | s_CursorModule |
| static SCR_MapCursorInfo | s_CursorInfo |
Additional Inherited Members | |
Protected Attributes inherited from SCR_MapUIBaseComponent | |
| bool | m_bDisableComponent |
| bool | m_bIsExclusive |
| bool | m_bHookToRoot = false |
| Widget | m_RootWidget |
| SCR_MapEntity | m_MapEntity |
Component for interacting with map tools.
|
static |
Tool action.
|
static |
Check whether the tool isnt currently clicked from top of/under of a button.
| [in] | tracedWidgets |
|
static |
Drag widget.
| [in] | widget |
get widget size
get max screen size
|
static |
End drag.
|
static |
End rotation.
|
static |
|
static |
|
static |
| override void SCR_MapToolInteractionUI.OnMapClose | ( | MapConfiguration | config | ) |
| override void SCR_MapToolInteractionUI.OnMapOpen | ( | MapConfiguration | config | ) |
|
static |
Rotate widget based on mouse movement.
| [in] | widget |
get widget size
|
static |
Begin drag.
|
static |
Begin rotation.
| override void SCR_MapToolInteractionUI.Update | ( | float | timeSlice | ) |
Update method for frame operations.
Implements SCR_MapUIBaseComponent.
|
staticprotected |
|
staticprotected |
|
static |
|
static |
|
static |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
static |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |