Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_PreviewEntityEditorUIComponent.c File Reference

Go to the source code of this file.

Enumerations

enum  EPreviewEntityEditorOperation { MOVE_HORIZONTAL, MOVE_VERTICAL, ROTATE }
 

Functions

protected void OnHoverChange (EEditableEntityState state, set< SCR_EditableEntityComponent > entitiesInsert, set< SCR_EditableEntityComponent > entitiesRemove)
 
protected void OnPreviewCreate ()
 
protected void OnPreviewDelete ()
 
protected void OnEditorTransformSnapToSurface ()
 
protected void OnEditorTransformRotationModifierDown (float value, EActionTrigger reason)
 
protected void OnEditorTransformRotationModifierUp (float value, EActionTrigger reason)
 
protected void OnEditorTransformMoveVerticalModifierDown (float value, EActionTrigger reason)
 
protected void OnEditorTransformMoveVerticalModifierUp (float value, EActionTrigger reason)
 
protected void SetRotationPivot ()
 
protected void SetClickPos (vector clickPos)
 
protected bool HasMouseMoved ()
 
protected void GetCursorPos (out vector cameraPos, out vector cursorDir)
 
protected float GetTraceDis (vector pos, vector dir, float cameraHeight)
 
protected void UpdateDirIndicator (vector previewTransform[4])
 
protected SCR_EPreviewState GetPreviewStateToShow ()
 
protected void MoveHorizontalTowardsCursor (float tDelta, out vector transform[4], out bool canTransform, out EEditorTransformVertical verticalMode)
 
protected bool MoveVertical (float tDelta, out vector transform[4], float moveVertical, EEditorTransformVertical verticalMode)
 
protected void MoveVerticalTowardsCursor (float tDelta, out vector transform[4])
 
protected void Rotate (float tDelta, out vector transform[4], float rotationValue)
 
protected bool RotateInSlot (SCR_EditableEntityComponent slot, float rotationValue, out vector angles, out bool freeRotation)
 
protected void RotateTowardsCursor (float tDelta, out vector transform[4])
 
protected bool GetPreviewPosAboveGeometry (vector cameraPos, vector cursorDir, out vector worldPos, out EEditorTransformVertical verticalMode)
 
protected bool GetPreviewPosAboveTerrain (vector cameraPos, vector cursorDir, out vector worldPos, out EEditorTransformVertical verticalMode)
 
protected bool GetPreviewPosAboveSea (vector cameraPos, vector cursorDir, out vector worldPos, out EEditorTransformVertical verticalMode)
 
protected void ProcessInput (float tDelta)
 
protected void ActivatePreviewContext ()
 
override void HandlerAttachedScripted (Widget w)
 
override void HandlerDeattached (Widget w)
 

Variables

enum EPreviewEntityEditorOperation MIN_CURSOR_DIS_TO_TRANSFORM = 10
 
protected float m_fMoveVerticalCoef
 
protected float m_fRotationCoef
 
protected float m_fRotationInertia
 
protected float m_fUnsnapDuration
 
protected float m_fMinAngleWall
 
protected float m_fMinAngleCeiling
 
protected float m_fMinCameraVerticalOffset
 
protected ResourceName m_DirIndicatorPrefab
 
protected InputManager m_InputManagerBase
 
protected SCR_PreviewEntityEditorComponent m_PreviewEntityManager
 
protected SCR_CameraEditorComponent m_CameraManagerBase
 
protected SCR_PlacingEditorComponent m_PlacingManager
 
protected SCR_CursorEditorUIComponent m_CursorComponentBase
 
protected SCR_HoverEditableEntityFilter m_HoverFilter
 
protected BaseWorld m_World
 
protected vector m_vClickTransformBase [4]
 
protected vector m_vClickPosBase
 
protected vector m_vClickPosWorldBase
 
protected bool m_bMouseMoved
 
protected bool m_bIsRotatingTowardsCursor
 
protected SCR_EditableEntityComponent m_Target
 
protected float m_fTargetYaw
 
protected float m_fUnsnapProgress
 
protected vector m_vTransformOrigin [4]
 
protected vector m_vAnglesOrigin
 
protected vector m_vAnimatedTransform [4]
 
protected vector m_vRotationPivot
 
protected bool m_bIsAnimated
 
protected vector m_vTerrainNormal
 
protected EPreviewEntityEditorOperation m_Operation
 
protected IEntity m_DirIndicator
 
protected float m_fDirIndicatorScale
 
protected ref TraceParam m_RotationTrace
 

Enumeration Type Documentation

◆ EPreviewEntityEditorOperation

Enumerator
MOVE_HORIZONTAL 
MOVE_VERTICAL 
ROTATE 

Definition at line 2 of file SCR_PreviewEntityEditorUIComponent.c.

Function Documentation

◆ ActivatePreviewContext()

protected void ActivatePreviewContext ( )

Definition at line 756 of file SCR_PreviewEntityEditorUIComponent.c.

◆ GetCursorPos()

protected void GetCursorPos ( out vector  cameraPos,
out vector  cursorDir 
)

Definition at line 246 of file SCR_PreviewEntityEditorUIComponent.c.

◆ GetPreviewPosAboveGeometry()

protected bool GetPreviewPosAboveGeometry ( vector  cameraPos,
vector  cursorDir,
out vector  worldPos,
out EEditorTransformVertical  verticalMode 
)

Definition at line 536 of file SCR_PreviewEntityEditorUIComponent.c.

◆ GetPreviewPosAboveSea()

protected bool GetPreviewPosAboveSea ( vector  cameraPos,
vector  cursorDir,
out vector  worldPos,
out EEditorTransformVertical  verticalMode 
)

Definition at line 642 of file SCR_PreviewEntityEditorUIComponent.c.

◆ GetPreviewPosAboveTerrain()

protected bool GetPreviewPosAboveTerrain ( vector  cameraPos,
vector  cursorDir,
out vector  worldPos,
out EEditorTransformVertical  verticalMode 
)

Definition at line 611 of file SCR_PreviewEntityEditorUIComponent.c.

◆ GetPreviewStateToShow()

protected SCR_EPreviewState GetPreviewStateToShow ( )
Returns
SCR_EPreviewState of the preview according to which the preview color is set. To be overridden by inherited classes.

◆ GetTraceDis()

protected float GetTraceDis ( vector  pos,
vector  dir,
float  cameraHeight 
)

Definition at line 261 of file SCR_PreviewEntityEditorUIComponent.c.

◆ HandlerAttachedScripted()

override void HandlerAttachedScripted ( Widget  w)

Definition at line 766 of file SCR_PreviewEntityEditorUIComponent.c.

◆ HandlerDeattached()

override void HandlerDeattached ( Widget  w)

Definition at line 816 of file SCR_PreviewEntityEditorUIComponent.c.

◆ HasMouseMoved()

protected bool HasMouseMoved ( )

Definition at line 226 of file SCR_PreviewEntityEditorUIComponent.c.

◆ MoveHorizontalTowardsCursor()

protected void MoveHorizontalTowardsCursor ( float  tDelta,
out vector  transform[4],
out bool  canTransform,
out EEditorTransformVertical  verticalMode 
)

Definition at line 331 of file SCR_PreviewEntityEditorUIComponent.c.

◆ MoveVertical()

protected bool MoveVertical ( float  tDelta,
out vector  transform[4],
float  moveVertical,
EEditorTransformVertical  verticalMode 
)

Definition at line 363 of file SCR_PreviewEntityEditorUIComponent.c.

◆ MoveVerticalTowardsCursor()

protected void MoveVerticalTowardsCursor ( float  tDelta,
out vector  transform[4] 
)

Definition at line 416 of file SCR_PreviewEntityEditorUIComponent.c.

◆ OnEditorTransformMoveVerticalModifierDown()

protected void OnEditorTransformMoveVerticalModifierDown ( float  value,
EActionTrigger  reason 
)

Definition at line 158 of file SCR_PreviewEntityEditorUIComponent.c.

◆ OnEditorTransformMoveVerticalModifierUp()

protected void OnEditorTransformMoveVerticalModifierUp ( float  value,
EActionTrigger  reason 
)

Definition at line 165 of file SCR_PreviewEntityEditorUIComponent.c.

◆ OnEditorTransformRotationModifierDown()

protected void OnEditorTransformRotationModifierDown ( float  value,
EActionTrigger  reason 
)

Definition at line 129 of file SCR_PreviewEntityEditorUIComponent.c.

◆ OnEditorTransformRotationModifierUp()

protected void OnEditorTransformRotationModifierUp ( float  value,
EActionTrigger  reason 
)

Definition at line 140 of file SCR_PreviewEntityEditorUIComponent.c.

◆ OnEditorTransformSnapToSurface()

protected void OnEditorTransformSnapToSurface ( )

Definition at line 123 of file SCR_PreviewEntityEditorUIComponent.c.

◆ OnHoverChange()

protected void OnHoverChange ( EEditableEntityState  state,
set< SCR_EditableEntityComponent entitiesInsert,
set< SCR_EditableEntityComponent entitiesRemove 
)

Definition at line 67 of file SCR_PreviewEntityEditorUIComponent.c.

◆ OnPreviewCreate()

protected void OnPreviewCreate ( )

Definition at line 97 of file SCR_PreviewEntityEditorUIComponent.c.

◆ OnPreviewDelete()

protected void OnPreviewDelete ( )

Definition at line 116 of file SCR_PreviewEntityEditorUIComponent.c.

◆ ProcessInput()

protected void ProcessInput ( float  tDelta)

Definition at line 677 of file SCR_PreviewEntityEditorUIComponent.c.

◆ Rotate()

protected void Rotate ( float  tDelta,
out vector  transform[4],
float  rotationValue 
)

Definition at line 439 of file SCR_PreviewEntityEditorUIComponent.c.

◆ RotateInSlot()

protected bool RotateInSlot ( SCR_EditableEntityComponent  slot,
float  rotationValue,
out vector  angles,
out bool  freeRotation 
)

Definition at line 463 of file SCR_PreviewEntityEditorUIComponent.c.

◆ RotateTowardsCursor()

protected void RotateTowardsCursor ( float  tDelta,
out vector  transform[4] 
)

Definition at line 488 of file SCR_PreviewEntityEditorUIComponent.c.

◆ SetClickPos()

protected void SetClickPos ( vector  clickPos)

Definition at line 207 of file SCR_PreviewEntityEditorUIComponent.c.

◆ SetRotationPivot()

protected void SetRotationPivot ( )

Definition at line 179 of file SCR_PreviewEntityEditorUIComponent.c.

◆ UpdateDirIndicator()

protected void UpdateDirIndicator ( vector  previewTransform[4])

Definition at line 277 of file SCR_PreviewEntityEditorUIComponent.c.

Variable Documentation

◆ m_bIsAnimated

protected bool m_bIsAnimated

Definition at line 59 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_bIsRotatingTowardsCursor

protected bool m_bIsRotatingTowardsCursor

Definition at line 51 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_bMouseMoved

protected bool m_bMouseMoved

Definition at line 50 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_CameraManagerBase

protected SCR_CameraEditorComponent m_CameraManagerBase

Definition at line 42 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_CursorComponentBase

protected SCR_CursorEditorUIComponent m_CursorComponentBase

Definition at line 44 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_DirIndicator

protected IEntity m_DirIndicator

Definition at line 62 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_DirIndicatorPrefab

protected ResourceName m_DirIndicatorPrefab

Definition at line 38 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_fDirIndicatorScale

protected float m_fDirIndicatorScale

Definition at line 63 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_fMinAngleCeiling

protected float m_fMinAngleCeiling

Definition at line 32 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_fMinAngleWall

protected float m_fMinAngleWall

Definition at line 29 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_fMinCameraVerticalOffset

protected float m_fMinCameraVerticalOffset

Definition at line 35 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_fMoveVerticalCoef

protected float m_fMoveVerticalCoef

Definition at line 17 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_fRotationCoef

protected float m_fRotationCoef

Definition at line 20 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_fRotationInertia

protected float m_fRotationInertia

Definition at line 23 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_fTargetYaw

protected float m_fTargetYaw

Definition at line 53 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_fUnsnapDuration

protected float m_fUnsnapDuration

Definition at line 26 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_fUnsnapProgress

protected float m_fUnsnapProgress

Definition at line 54 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_HoverFilter

protected SCR_HoverEditableEntityFilter m_HoverFilter

Definition at line 45 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_InputManagerBase

protected InputManager m_InputManagerBase

Definition at line 40 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_Operation

protected EPreviewEntityEditorOperation m_Operation

Definition at line 61 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_PlacingManager

protected SCR_PlacingEditorComponent m_PlacingManager

Definition at line 43 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_PreviewEntityManager

protected SCR_PreviewEntityEditorComponent m_PreviewEntityManager

Definition at line 41 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_RotationTrace

protected ref TraceParam m_RotationTrace

Definition at line 64 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_Target

protected SCR_EditableEntityComponent m_Target

Definition at line 52 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_vAnglesOrigin

protected vector m_vAnglesOrigin

Definition at line 56 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_vAnimatedTransform

protected vector m_vAnimatedTransform[4]

Definition at line 57 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_vClickPosBase

protected vector m_vClickPosBase

Definition at line 48 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_vClickPosWorldBase

protected vector m_vClickPosWorldBase

Definition at line 49 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_vClickTransformBase

protected vector m_vClickTransformBase[4]

Definition at line 47 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_vRotationPivot

protected vector m_vRotationPivot

Definition at line 58 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_vTerrainNormal

protected vector m_vTerrainNormal

Definition at line 60 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_vTransformOrigin

protected vector m_vTransformOrigin[4]

Definition at line 55 of file SCR_PreviewEntityEditorUIComponent.c.

◆ m_World

protected BaseWorld m_World

Definition at line 46 of file SCR_PreviewEntityEditorUIComponent.c.