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

Go to the source code of this file.

Data Structures

class  SCR_CursorEditorUIComponent
 

Functions

void SetCursorPos (vector pos, bool DPIScale=false)
 
vector GetCursorPos ()
 
void GetCursorPos (out int posX, out int posY)
 
bool GetCursorWorldPos (out vector worldPos, bool isNormalized=false, TraceFlags flags=-1)
 
IEntity GetTraceEntity ()
 
protected void SetCursorType (EEditorCursor type)
 
protected void ResetCursor ()
 
float GetCursorRadius ()
 
float GetCursorRadiusSq ()
 
void SetCursorAlpha (float alpha, float strength=1)
 
protected void UpdateCursorDebug ()
 
protected void UpdateCursor ()
 
void OnFilterChange (EEditableEntityState state, set< SCR_EditableEntityComponent > entitiesInsert, set< SCR_EditableEntityComponent > entitiesRemove)
 
protected bool TraceFilter (Class target)
 
protected SCR_EditableEntityComponent TraceEntity (vector cursorPos)
 
protected void OnInputDeviceIsGamepad (bool isGamepad)
 
protected void OnMenuUpdate (float tDelta)
 
void OnMapToggled (MapConfiguration config)
 
override void HandlerAttachedScripted (Widget w)
 
override void HandlerDeattached (Widget w)
 
SCR_CursorEditorUIComponent SCR_BaseEditorUIComponent SCR_BaseContainerCustomTitleEnum (EEditorCursor, "m_Type")
 

Variables

const protected float TRACE_DIS_SINGLE = 10000
 
const protected float TRACE_DIS_REPEATED = 250
 
private ref array< ref SCR_CursorEditor > m_Cursors
 
private ref map< EEditorCursor, ref SCR_CursorEditor > m_CursorsMap = new map<EEditorCursor, ref SCR_CursorEditor>()
 
private SCR_CursorEditor m_CurrentCursor
 
private vector m_vGamepadCursorSize
 
private float m_fGamepadCursorRadius
 
private float m_fGamepadCursorRadiusSq
 
private InputManager m_InputManager
 
private WorkspaceWidget m_wWorkspace
 
private SCR_EditorManagerEntity m_EditorManager
 
private SCR_StatesEditorComponent m_StatesManager
 
private SCR_EditableEntityComponent m_EntityUnderCursor
 
private SCR_HoverEditableEntityFilter m_HoverManager
 
private SCR_PreviewEntityEditorComponent m_PreviewManager
 
private SCR_CommandActionsEditorUIComponent m_CommandManager
 
private SCR_MapEntity m_MapEntity
 
private IEntity m_TraceEntity
 
private vector m_vCursorPos
 
private vector m_vCursorPosWorld
 
private vector m_vCursorPosWorldNormalized
 
private int m_iCursorPosX
 
private int m_iCursorPosY
 
private bool m_bCanFocus = true
 
private int m_iFrameIndex
 
private int m_iFrameUpdate
 
private int m_iFrameUpdateWorld
 
private float m_fTargetAlpha = 1
 
private float m_fTargetAlphaStrength
 
private SCR_MouseAreaEditorUIComponent m_MouseArea
 
protected TraceFlags m_DefaultWorldTraceFlags = TraceFlags.WORLD | TraceFlags.OCEAN | TraceFlags.ENTS
 
SCR_EditorPingInfoDisplay BaseContainerProps ()
 Class that saves the color data for specific ENotificationColor enums for the notification system. More...
 

Function Documentation

◆ GetCursorPos() [1/2]

vector BaseContainerProps::GetCursorPos ( )

Get cached cursor position in reference resolution.

Returns
Unscaled screen coordinates

Definition at line 77 of file SCR_CursorEditorUIComponent.c.

◆ GetCursorPos() [2/2]

void BaseContainerProps::GetCursorPos ( out int  posX,
out int  posY 
)

Get cached cursor position as integers in native (current) resolution.

Parameters
[out]posX
[out]posY

Definition at line 110 of file SCR_CursorEditorUIComponent.c.

◆ GetCursorRadius()

float BaseContainerProps::GetCursorRadius ( )
Returns

Definition at line 245 of file SCR_CursorEditorUIComponent.c.

◆ GetCursorRadiusSq()

float BaseContainerProps::GetCursorRadiusSq ( )
Returns

Definition at line 252 of file SCR_CursorEditorUIComponent.c.

◆ GetCursorWorldPos()

bool BaseContainerProps::GetCursorWorldPos ( out vector  worldPos,
bool  isNormalized = false,
TraceFlags  flags = -1 
)

Get world position below cursor.

Parameters
[out]worldPosVector to be filled with world position
[in]isNormalized
[in]flagsTrace flags to be used (send -1 for default flags)
Returns
True if the cursor is above world position (e.g., not pointing at sky)

Definition at line 122 of file SCR_CursorEditorUIComponent.c.

◆ GetTraceEntity()

IEntity BaseContainerProps::GetTraceEntity ( )
Returns

Definition at line 205 of file SCR_CursorEditorUIComponent.c.

◆ HandlerAttachedScripted()

override void BaseContainerProps::HandlerAttachedScripted ( Widget  w)

Definition at line 459 of file SCR_CursorEditorUIComponent.c.

◆ HandlerDeattached()

override void BaseContainerProps::HandlerDeattached ( Widget  w)

Definition at line 555 of file SCR_CursorEditorUIComponent.c.

◆ OnFilterChange()

void BaseContainerProps::OnFilterChange ( EEditableEntityState  state,
set< SCR_EditableEntityComponent entitiesInsert,
set< SCR_EditableEntityComponent entitiesRemove 
)
Parameters
[in]state
[in]entitiesInsert
[in]entitiesRemove

Definition at line 372 of file SCR_CursorEditorUIComponent.c.

◆ OnInputDeviceIsGamepad()

protected void BaseContainerProps::OnInputDeviceIsGamepad ( bool  isGamepad)

Definition at line 418 of file SCR_CursorEditorUIComponent.c.

◆ OnMapToggled()

void BaseContainerProps::OnMapToggled ( MapConfiguration  config)
Parameters
[in]config

Definition at line 453 of file SCR_CursorEditorUIComponent.c.

◆ OnMenuUpdate()

protected void BaseContainerProps::OnMenuUpdate ( float  tDelta)

Definition at line 425 of file SCR_CursorEditorUIComponent.c.

◆ ResetCursor()

protected void BaseContainerProps::ResetCursor ( )

Definition at line 238 of file SCR_CursorEditorUIComponent.c.

◆ SCR_BaseContainerCustomTitleEnum()

◆ SetCursorAlpha()

void BaseContainerProps::SetCursorAlpha ( float  alpha,
float  strength = 1 
)
Parameters
[in]alpha
[in]strength

Definition at line 260 of file SCR_CursorEditorUIComponent.c.

◆ SetCursorPos()

void BaseContainerProps::SetCursorPos ( vector  pos,
bool  DPIScale = false 
)

Set cursor position.

Parameters
[in]posCursor position
[in]DPIScaleTrue if the position is in reference resolution, false if in native (current)

Definition at line 45 of file SCR_CursorEditorUIComponent.c.

◆ SetCursorType()

protected void BaseContainerProps::SetCursorType ( EEditorCursor  type)

Definition at line 211 of file SCR_CursorEditorUIComponent.c.

◆ TraceEntity()

protected SCR_EditableEntityComponent BaseContainerProps::TraceEntity ( vector  cursorPos)

Definition at line 385 of file SCR_CursorEditorUIComponent.c.

◆ TraceFilter()

protected bool BaseContainerProps::TraceFilter ( Class  target)

Definition at line 378 of file SCR_CursorEditorUIComponent.c.

◆ UpdateCursor()

protected void BaseContainerProps::UpdateCursor ( )

Definition at line 274 of file SCR_CursorEditorUIComponent.c.

◆ UpdateCursorDebug()

protected void BaseContainerProps::UpdateCursorDebug ( )

Definition at line 267 of file SCR_CursorEditorUIComponent.c.

Variable Documentation

◆ m_bCanFocus

private bool m_bCanFocus = true

Definition at line 32 of file SCR_CursorEditorUIComponent.c.

◆ m_CommandManager

private SCR_CommandActionsEditorUIComponent m_CommandManager

Definition at line 23 of file SCR_CursorEditorUIComponent.c.

◆ m_CurrentCursor

private SCR_CursorEditor m_CurrentCursor

Definition at line 12 of file SCR_CursorEditorUIComponent.c.

◆ m_Cursors

private ref array<ref SCR_CursorEditor> m_Cursors

Definition at line 9 of file SCR_CursorEditorUIComponent.c.

◆ m_CursorsMap

private ref map<EEditorCursor, ref SCR_CursorEditor> m_CursorsMap = new map<EEditorCursor, ref SCR_CursorEditor>()

Definition at line 11 of file SCR_CursorEditorUIComponent.c.

◆ m_DefaultWorldTraceFlags

protected TraceFlags m_DefaultWorldTraceFlags = TraceFlags.WORLD | TraceFlags.OCEAN | TraceFlags.ENTS

Definition at line 39 of file SCR_CursorEditorUIComponent.c.

◆ m_EditorManager

private SCR_EditorManagerEntity m_EditorManager

Definition at line 18 of file SCR_CursorEditorUIComponent.c.

◆ m_EntityUnderCursor

private SCR_EditableEntityComponent m_EntityUnderCursor

Definition at line 20 of file SCR_CursorEditorUIComponent.c.

◆ m_fGamepadCursorRadius

private float m_fGamepadCursorRadius

Definition at line 14 of file SCR_CursorEditorUIComponent.c.

◆ m_fGamepadCursorRadiusSq

private float m_fGamepadCursorRadiusSq

Definition at line 15 of file SCR_CursorEditorUIComponent.c.

◆ m_fTargetAlpha

private float m_fTargetAlpha = 1

Definition at line 36 of file SCR_CursorEditorUIComponent.c.

◆ m_fTargetAlphaStrength

private float m_fTargetAlphaStrength

Definition at line 37 of file SCR_CursorEditorUIComponent.c.

◆ m_HoverManager

private SCR_HoverEditableEntityFilter m_HoverManager

Definition at line 21 of file SCR_CursorEditorUIComponent.c.

◆ m_iCursorPosX

private int m_iCursorPosX

Definition at line 30 of file SCR_CursorEditorUIComponent.c.

◆ m_iCursorPosY

private int m_iCursorPosY

Definition at line 31 of file SCR_CursorEditorUIComponent.c.

◆ m_iFrameIndex

private int m_iFrameIndex

Definition at line 33 of file SCR_CursorEditorUIComponent.c.

◆ m_iFrameUpdate

private int m_iFrameUpdate

Definition at line 34 of file SCR_CursorEditorUIComponent.c.

◆ m_iFrameUpdateWorld

private int m_iFrameUpdateWorld

Definition at line 35 of file SCR_CursorEditorUIComponent.c.

◆ m_InputManager

private InputManager m_InputManager

Definition at line 16 of file SCR_CursorEditorUIComponent.c.

◆ m_MapEntity

private SCR_MapEntity m_MapEntity

Definition at line 24 of file SCR_CursorEditorUIComponent.c.

◆ m_MouseArea

private SCR_MouseAreaEditorUIComponent m_MouseArea

Definition at line 38 of file SCR_CursorEditorUIComponent.c.

◆ m_PreviewManager

private SCR_PreviewEntityEditorComponent m_PreviewManager

Definition at line 22 of file SCR_CursorEditorUIComponent.c.

◆ m_StatesManager

private SCR_StatesEditorComponent m_StatesManager

Definition at line 19 of file SCR_CursorEditorUIComponent.c.

◆ m_TraceEntity

private IEntity m_TraceEntity

Definition at line 25 of file SCR_CursorEditorUIComponent.c.

◆ m_vCursorPos

private vector m_vCursorPos

Definition at line 27 of file SCR_CursorEditorUIComponent.c.

◆ m_vCursorPosWorld

private vector m_vCursorPosWorld

Definition at line 28 of file SCR_CursorEditorUIComponent.c.

◆ m_vCursorPosWorldNormalized

private vector m_vCursorPosWorldNormalized

Definition at line 29 of file SCR_CursorEditorUIComponent.c.

◆ m_vGamepadCursorSize

private vector m_vGamepadCursorSize

Definition at line 13 of file SCR_CursorEditorUIComponent.c.

◆ m_wWorkspace

private WorkspaceWidget m_wWorkspace

Definition at line 17 of file SCR_CursorEditorUIComponent.c.

◆ TRACE_DIS_REPEATED

const protected float TRACE_DIS_REPEATED = 250

Definition at line 3 of file SCR_CursorEditorUIComponent.c.

◆ TRACE_DIS_SINGLE

const protected float TRACE_DIS_SINGLE = 10000

Definition at line 2 of file SCR_CursorEditorUIComponent.c.