Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CursorEditorUIComponent Class Reference
Inheritance diagram for SCR_CursorEditorUIComponent:
SCR_BaseEditorUIComponent

Protected Member 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 ()
void SetCursorType (EEditorCursor type)
void ResetCursor ()
float GetCursorRadius ()
float GetCursorRadiusSq ()
void SetCursorAlpha (float alpha, float strength=1)
void UpdateCursorDebug ()
void UpdateCursor ()
void OnFilterChange (EEditableEntityState state, set< SCR_EditableEntityComponent > entitiesInsert, set< SCR_EditableEntityComponent > entitiesRemove)
bool TraceFilter (Class target)
SCR_EditableEntityComponent TraceEntity (vector cursorPos)
void OnInputDeviceIsGamepad (bool isGamepad)
void OnMenuUpdate (float tDelta)
void OnMapToggled (MapConfiguration config)
override void HandlerAttachedScripted (Widget w)
override void HandlerDeattached (Widget w)

Protected Attributes

const float TRACE_DIS_SINGLE = 10000
const float TRACE_DIS_REPEATED = 250
TraceFlags m_DefaultWorldTraceFlags = TraceFlags.WORLD | TraceFlags.OCEAN | TraceFlags.ENTS

Detailed Description

Definition at line 3 of file SCR_CursorEditorUIComponent.c.

Member Function Documentation

◆ GetCursorPos() [1/2]

vector SCR_CursorEditorUIComponent::GetCursorPos ( )
inlineprotected

Get cached cursor position in reference resolution.

Returns
Unscaled screen coordinates

Definition at line 80 of file SCR_CursorEditorUIComponent.c.

◆ GetCursorPos() [2/2]

void SCR_CursorEditorUIComponent::GetCursorPos ( out int posX,
out int posY )
inlineprotected

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

Parameters
[out]posX
[out]posY

Definition at line 113 of file SCR_CursorEditorUIComponent.c.

◆ GetCursorRadius()

float SCR_CursorEditorUIComponent::GetCursorRadius ( )
inlineprotected
Returns

Definition at line 248 of file SCR_CursorEditorUIComponent.c.

◆ GetCursorRadiusSq()

float SCR_CursorEditorUIComponent::GetCursorRadiusSq ( )
inlineprotected
Returns

Definition at line 255 of file SCR_CursorEditorUIComponent.c.

◆ GetCursorWorldPos()

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

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 125 of file SCR_CursorEditorUIComponent.c.

◆ GetTraceEntity()

IEntity SCR_CursorEditorUIComponent::GetTraceEntity ( )
inlineprotected
Returns

Definition at line 208 of file SCR_CursorEditorUIComponent.c.

◆ HandlerAttachedScripted()

override void SCR_CursorEditorUIComponent::HandlerAttachedScripted ( Widget w)
inlineprotected

Definition at line 462 of file SCR_CursorEditorUIComponent.c.

◆ HandlerDeattached()

override void SCR_CursorEditorUIComponent::HandlerDeattached ( Widget w)
inlineprotected

Definition at line 558 of file SCR_CursorEditorUIComponent.c.

◆ OnFilterChange()

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

Definition at line 375 of file SCR_CursorEditorUIComponent.c.

◆ OnInputDeviceIsGamepad()

void SCR_CursorEditorUIComponent::OnInputDeviceIsGamepad ( bool isGamepad)
inlineprotected

Definition at line 421 of file SCR_CursorEditorUIComponent.c.

◆ OnMapToggled()

void SCR_CursorEditorUIComponent::OnMapToggled ( MapConfiguration config)
inlineprotected
Parameters
[in]config

Definition at line 456 of file SCR_CursorEditorUIComponent.c.

◆ OnMenuUpdate()

void SCR_CursorEditorUIComponent::OnMenuUpdate ( float tDelta)
inlineprotected

Definition at line 428 of file SCR_CursorEditorUIComponent.c.

◆ ResetCursor()

void SCR_CursorEditorUIComponent::ResetCursor ( )
inlineprotected

Definition at line 241 of file SCR_CursorEditorUIComponent.c.

◆ SetCursorAlpha()

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

Definition at line 263 of file SCR_CursorEditorUIComponent.c.

◆ SetCursorPos()

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

Set cursor position.

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

Definition at line 48 of file SCR_CursorEditorUIComponent.c.

◆ SetCursorType()

void SCR_CursorEditorUIComponent::SetCursorType ( EEditorCursor type)
inlineprotected

Definition at line 214 of file SCR_CursorEditorUIComponent.c.

◆ TraceEntity()

SCR_EditableEntityComponent SCR_CursorEditorUIComponent::TraceEntity ( vector cursorPos)
inlineprotected

Definition at line 388 of file SCR_CursorEditorUIComponent.c.

◆ TraceFilter()

bool SCR_CursorEditorUIComponent::TraceFilter ( Class target)
inlineprotected

Definition at line 381 of file SCR_CursorEditorUIComponent.c.

◆ UpdateCursor()

void SCR_CursorEditorUIComponent::UpdateCursor ( )
inlineprotected

Definition at line 277 of file SCR_CursorEditorUIComponent.c.

◆ UpdateCursorDebug()

void SCR_CursorEditorUIComponent::UpdateCursorDebug ( )
inlineprotected

Definition at line 270 of file SCR_CursorEditorUIComponent.c.

Member Data Documentation

◆ m_DefaultWorldTraceFlags

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

Definition at line 42 of file SCR_CursorEditorUIComponent.c.

◆ TRACE_DIS_REPEATED

const float SCR_CursorEditorUIComponent::TRACE_DIS_REPEATED = 250
protected

Definition at line 6 of file SCR_CursorEditorUIComponent.c.

◆ TRACE_DIS_SINGLE

const float SCR_CursorEditorUIComponent::TRACE_DIS_SINGLE = 10000
protected

Definition at line 5 of file SCR_CursorEditorUIComponent.c.


The documentation for this class was generated from the following file: