Arma Reforger Script API
|
Public Member Functions | |
override void | OnHoverChange (EEditableEntityState state, set< SCR_EditableEntityComponent > entitiesInsert, set< SCR_EditableEntityComponent > entitiesRemove) |
override void | OnEditorTransformRotationModifierUp (float value, EActionTrigger reason) |
override void | HandlerAttachedScripted (Widget w) |
Event called when subcomponent is initialized. | |
override void | HandlerDeattached (Widget w) |
override void | HandlerAttachedScripted (Widget w) |
Event called when subcomponent is initialized. | |
override void | HandlerDeattached (Widget w) |
Public Member Functions inherited from MenuRootSubComponent | |
Widget | GetWidget () |
Get widget to which the component belongs to. | |
MenuRootBase | GetMenu () |
Get menu of which the widget is part of. | |
MenuRootComponent | GetRootComponent () |
Get root component of this subcomponent,. | |
void | HandlerAttachedScripted (Widget w) |
Event called when subcomponent is initialized. | |
override void | HandlerAttached (Widget w) |
override void | HandlerDeattached (Widget w) |
Protected Member Functions | |
void | OnEditorPlace (float value, EActionTrigger reason) |
void | OnEditorPlaceAndCancel (float value, EActionTrigger reason) |
void | OnEditorPlacePlayer (float value, EActionTrigger reason) |
void | OnEditorPlacePlayerAndCancel (float value, EActionTrigger reason) |
void | Place (bool cancelAfterwards, bool canBePlayer=false) |
void | OnEditorCancelPlacingUp (float value, EActionTrigger reason) |
void | CancelPlacing () |
void | EnablePlacing () |
bool | CanClick () |
bool | IsChildOf (Widget widget, Widget parent) |
void | OnSelectedPrefabChange (ResourceName prefab, ResourceName prefabPrev) |
void | OnMenuUpdate (float tDelta) |
void | OnMenuFocusGained () |
void | OnMenuFocusLost () |
override SCR_EPreviewState | GetPreviewStateToShow () |
Protected Member Functions inherited from SCR_PreviewEntityEditorUIComponent | |
void | OnHoverChange (EEditableEntityState state, set< SCR_EditableEntityComponent > entitiesInsert, set< SCR_EditableEntityComponent > entitiesRemove) |
void | OnPreviewCreate () |
void | OnPreviewDelete () |
void | OnEditorTransformSnapToSurface () |
void | OnEditorTransformRotationModifierDown (float value, EActionTrigger reason) |
void | OnEditorTransformRotationModifierUp (float value, EActionTrigger reason) |
void | OnEditorTransformMoveVerticalModifierDown (float value, EActionTrigger reason) |
void | OnEditorTransformMoveVerticalModifierUp (float value, EActionTrigger reason) |
void | SetRotationPivot () |
void | SetClickPos (vector clickPos) |
bool | HasMouseMoved () |
void | GetCursorPos (out vector cameraPos, out vector cursorDir) |
float | GetTraceDis (vector pos, vector dir, float cameraHeight) |
void | UpdateDirIndicator (vector previewTransform[4]) |
SCR_EPreviewState | GetPreviewStateToShow () |
void | MoveHorizontalTowardsCursor (float tDelta, out vector transform[4], out bool canTransform, out EEditorTransformVertical verticalMode) |
bool | MoveVertical (float tDelta, out vector transform[4], float moveVertical, EEditorTransformVertical verticalMode) |
void | MoveVerticalTowardsCursor (float tDelta, out vector transform[4]) |
void | Rotate (float tDelta, out vector transform[4], float rotationValue) |
bool | RotateInSlot (SCR_EditableEntityComponent slot, float rotationValue, out vector angles, out bool freeRotation) |
void | RotateTowardsCursor (float tDelta, out vector transform[4]) |
bool | GetPreviewPosAboveGeometry (vector cameraPos, vector cursorDir, out vector worldPos, out EEditorTransformVertical verticalMode) |
bool | GetPreviewPosAboveTerrain (vector cameraPos, vector cursorDir, out vector worldPos, out EEditorTransformVertical verticalMode) |
bool | GetPreviewPosAboveSea (vector cameraPos, vector cursorDir, out vector worldPos, out EEditorTransformVertical verticalMode) |
void | ProcessInput (float tDelta) |
void | ActivatePreviewContext () |
Protected Member Functions inherited from SCR_BaseEditorUIComponent | |
vector | OnCancelDown () |
bool | OnCancelUp () |
void | OnCancelExpired () |
Protected Member Functions inherited from MenuRootSubComponent | |
bool | IsUnique () |
Is the component to exist only in one instance? If so, it will be registered in the list of components and can be searched for. | |
Static Protected Attributes | |
static const float | MAX_PREVIEW_DIS = 50 |
Static Protected Attributes inherited from SCR_PreviewEntityEditorUIComponent | |
static const int | MIN_CURSOR_DIS_TO_TRANSFORM = 10 |
static const float | TRACE_DIS = 2000 |
|
protected |
|
protected |
|
protected |
|
protected |
Implements SCR_PreviewEntityEditorUIComponent.
override void SCR_PlacingEditorUIComponent.HandlerAttachedScripted | ( | Widget | w | ) |
Event called when subcomponent is initialized.
Called only after all other subcomponents were registered as well and can be searched for. To be overwritten by inherited classes.
Widget |
Implements SCR_PreviewEntityEditorUIComponent.
override void SCR_PlacingEditorUIComponent.HandlerDeattached | ( | Widget | w | ) |
Implements SCR_PreviewEntityEditorUIComponent.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
override void SCR_PlacingEditorUIComponent.OnEditorTransformRotationModifierUp | ( | float | value, |
EActionTrigger | reason | ||
) |
Implements SCR_PreviewEntityEditorUIComponent.
override void SCR_PlacingEditorUIComponent.OnHoverChange | ( | EEditableEntityState | state, |
set< SCR_EditableEntityComponent > | entitiesInsert, | ||
set< SCR_EditableEntityComponent > | entitiesRemove | ||
) |
Implements SCR_PreviewEntityEditorUIComponent.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |