◆ GetCursorPos() [1/2]
vector SCR_CursorEditorUIComponent.GetCursorPos |
( |
| ) |
|
Get cached cursor position in reference resolution.
- Returns
- Unscaled screen coordinates
◆ GetCursorPos() [2/2]
void SCR_CursorEditorUIComponent.GetCursorPos |
( |
out int |
posX, |
|
|
out int |
posY |
|
) |
| |
Get cached cursor position as integers in native (current) resolution.
- Parameters
-
◆ GetCursorRadius()
float SCR_CursorEditorUIComponent.GetCursorRadius |
( |
| ) |
|
◆ GetCursorRadiusSq()
float SCR_CursorEditorUIComponent.GetCursorRadiusSq |
( |
| ) |
|
◆ GetCursorWorldPos()
bool SCR_CursorEditorUIComponent.GetCursorWorldPos |
( |
out vector |
worldPos, |
|
|
bool |
isNormalized = false , |
|
|
TraceFlags |
flags = -1 |
|
) |
| |
Get world position below cursor.
- Parameters
-
[out] | worldPos | Vector to be filled with world position |
[in] | isNormalized | |
[in] | flags | Trace flags to be used (send -1 for default flags) |
- Returns
- True if the cursor is above world position (e.g., not pointing at sky)
◆ GetTraceEntity()
IEntity SCR_CursorEditorUIComponent.GetTraceEntity |
( |
| ) |
|
◆ HandlerAttachedScripted()
override void SCR_CursorEditorUIComponent.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.
- Parameters
-
Implements MenuRootSubComponent.
◆ HandlerDeattached()
override void SCR_CursorEditorUIComponent.HandlerDeattached |
( |
Widget |
w | ) |
|
◆ OnFilterChange()
- Parameters
-
[in] | state | |
[in] | entitiesInsert | |
[in] | entitiesRemove | |
◆ OnInputDeviceIsGamepad()
void SCR_CursorEditorUIComponent.OnInputDeviceIsGamepad |
( |
bool |
isGamepad | ) |
|
|
protected |
◆ OnMapToggled()
◆ OnMenuUpdate()
void SCR_CursorEditorUIComponent.OnMenuUpdate |
( |
float |
tDelta | ) |
|
|
protected |
◆ ResetCursor()
void SCR_CursorEditorUIComponent.ResetCursor |
( |
| ) |
|
|
protected |
◆ SetCursorAlpha()
void SCR_CursorEditorUIComponent.SetCursorAlpha |
( |
float |
alpha, |
|
|
float |
strength = 1 |
|
) |
| |
◆ SetCursorPos()
void SCR_CursorEditorUIComponent.SetCursorPos |
( |
vector |
pos, |
|
|
bool |
DPIScale = false |
|
) |
| |
Set cursor position.
- Parameters
-
[in] | pos | Cursor position |
[in] | DPIScale | True if the position is in reference resolution, false if in native (current) |
◆ SetCursorType()
void SCR_CursorEditorUIComponent.SetCursorType |
( |
EEditorCursor |
type | ) |
|
|
protected |
◆ TraceEntity()
◆ TraceFilter()
bool SCR_CursorEditorUIComponent.TraceFilter |
( |
Class |
target | ) |
|
|
protected |
◆ UpdateCursor()
void SCR_CursorEditorUIComponent.UpdateCursor |
( |
| ) |
|
|
protected |
◆ UpdateCursorDebug()
void SCR_CursorEditorUIComponent.UpdateCursorDebug |
( |
| ) |
|
|
protected |
◆ m_DefaultWorldTraceFlags
TraceFlags SCR_CursorEditorUIComponent.m_DefaultWorldTraceFlags = TraceFlags.WORLD | TraceFlags.OCEAN | TraceFlags.ENTS |
|
protected |
◆ TRACE_DIS_REPEATED
const float SCR_CursorEditorUIComponent.TRACE_DIS_REPEATED = 250 |
|
staticprotected |
◆ TRACE_DIS_SINGLE
const float SCR_CursorEditorUIComponent.TRACE_DIS_SINGLE = 10000 |
|
staticprotected |
The documentation for this interface was generated from the following file:
- Game/Editor/UI/Components/Common/SCR_CursorEditorUIComponent.c