Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CursorEditorUIComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_CursorEditorUIComponent

Functions

SCR_CursorEditorUIComponent SCR_BaseEditorUIComponent BaseContainerProps ()
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)
SCR_CursorEditorUIComponent SCR_BaseEditorUIComponent SCR_BaseContainerCustomTitleEnum (EEditorCursor, "m_Type")

Variables

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

Function Documentation

◆ GetCursorPos() [1/2]

vector BaseContainerProps::GetCursorPos ( )
protected

Get cached cursor position in reference resolution.

Returns
Unscaled screen coordinates

Definition at line 75 of file SCR_CursorEditorUIComponent.c.

◆ GetCursorPos() [2/2]

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

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

Parameters
[out]posX
[out]posY

Definition at line 108 of file SCR_CursorEditorUIComponent.c.

◆ GetCursorRadius()

float BaseContainerProps::GetCursorRadius ( )
protected
Returns

Definition at line 243 of file SCR_CursorEditorUIComponent.c.

◆ GetCursorRadiusSq()

float BaseContainerProps::GetCursorRadiusSq ( )
protected
Returns

Definition at line 250 of file SCR_CursorEditorUIComponent.c.

◆ GetCursorWorldPos()

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

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

◆ GetTraceEntity()

IEntity BaseContainerProps::GetTraceEntity ( )
protected
Returns

Definition at line 203 of file SCR_CursorEditorUIComponent.c.

◆ HandlerAttachedScripted()

override void BaseContainerProps::HandlerAttachedScripted ( Widget w)
protected

Definition at line 457 of file SCR_CursorEditorUIComponent.c.

◆ HandlerDeattached()

override void BaseContainerProps::HandlerDeattached ( Widget w)
protected

Definition at line 553 of file SCR_CursorEditorUIComponent.c.

◆ OnFilterChange()

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

Definition at line 370 of file SCR_CursorEditorUIComponent.c.

◆ OnInputDeviceIsGamepad()

void BaseContainerProps::OnInputDeviceIsGamepad ( bool isGamepad)
protected

Definition at line 416 of file SCR_CursorEditorUIComponent.c.

◆ OnMapToggled()

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

Definition at line 451 of file SCR_CursorEditorUIComponent.c.

◆ OnMenuUpdate()

void BaseContainerProps::OnMenuUpdate ( float tDelta)
protected

Definition at line 423 of file SCR_CursorEditorUIComponent.c.

◆ ResetCursor()

void BaseContainerProps::ResetCursor ( )
protected

Definition at line 236 of file SCR_CursorEditorUIComponent.c.

◆ SCR_BaseContainerCustomTitleEnum()

SCR_CursorEditorUIComponent SCR_BaseEditorUIComponent SCR_BaseContainerCustomTitleEnum ( EEditorCursor ,
"m_Type"  )
Returns
Parameters
[in]root

Definition at line 615 of file SCR_CursorEditorUIComponent.c.

◆ SetCursorAlpha()

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

Definition at line 258 of file SCR_CursorEditorUIComponent.c.

◆ SetCursorPos()

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

Set cursor position.

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

Definition at line 43 of file SCR_CursorEditorUIComponent.c.

◆ SetCursorType()

void BaseContainerProps::SetCursorType ( EEditorCursor type)
protected

Definition at line 209 of file SCR_CursorEditorUIComponent.c.

◆ TraceEntity()

SCR_EditableEntityComponent BaseContainerProps::TraceEntity ( vector cursorPos)
protected

Definition at line 383 of file SCR_CursorEditorUIComponent.c.

◆ TraceFilter()

bool BaseContainerProps::TraceFilter ( Class target)
protected

Definition at line 376 of file SCR_CursorEditorUIComponent.c.

◆ UpdateCursor()

void BaseContainerProps::UpdateCursor ( )
protected

Definition at line 272 of file SCR_CursorEditorUIComponent.c.

◆ UpdateCursorDebug()

void BaseContainerProps::UpdateCursorDebug ( )
protected

Definition at line 265 of file SCR_CursorEditorUIComponent.c.

Variable Documentation

◆ m_DefaultWorldTraceFlags

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

Definition at line 37 of file SCR_CursorEditorUIComponent.c.

◆ TRACE_DIS_REPEATED

const float TRACE_DIS_REPEATED = 250
protected

Definition at line 1 of file SCR_CursorEditorUIComponent.c.

◆ TRACE_DIS_SINGLE

const float TRACE_DIS_SINGLE = 10000
protected

Definition at line 0 of file SCR_CursorEditorUIComponent.c.