Arma Reforger Script API
|
Public Attributes | |
SCR_ESelectionBrushToolLayer | m_eLayerSelection |
Protected Member Functions | |
override void | OnMousePressEvent (float x, float y, WETMouseButtonFlag buttons) |
Event triggering on Mouse click - see WorldEditorTool.OnMousePressEvent() Filtered to work only for left-click here Creates/Refreshes the Obstacles Detector and deals with Click / Alt+Click. | |
override void | OnMouseMoveEvent (float x, float y) |
Event triggering on Mouse movement - see WorldEditorTool.OnMouseMoveEvent() Create/Delete entities and draw Alt+Click additional shapes. | |
override void | OnWheelEvent (int delta) |
Event triggering on Mouse scroll wheel - see WorldEditorTool.OnWheelEvent() Used to set Brush's radius (Ctrl) | |
override void | OnMouseReleaseEvent (float x, float y, WETMouseButtonFlag buttons) |
Event triggering on Mouse click release - see WorldEditorTool.OnMouseReleaseEvent() Filtered to work only for left-click here Clears "held mouse click" flag. | |
override void | OnKeyPressEvent (KeyCode key, bool isAutoRepeat) |
Event triggering on keyboard (normal) key press - see WorldEditorTool.OnKeyPressEvent() Used to switch to Delete mode (Space) or cancel Alt+Click (Esc) | |
override void | OnKeyReleaseEvent (KeyCode key, bool isAutoRepeat) |
Event triggering on keyboard (normal) key release - see WorldEditorTool.OnKeyReleaseEvent() Used to switch from Deselect mode (Space) | |
override void | OnActivate () |
override void | OnDeActivate () |
override void | OnAfterLoadWorld () |
void | SelectAroundCursor (vector cursorWorldPos) |
bool | CanSelectEntityFromItsLayer (int currentLayerId, notnull IEntitySource entitySource) |
bool | HasMeshObject (notnull IEntitySource entitySource) |
IEntitySource | GetTopMostParentWithMeshObject (notnull IEntitySource entitySource) |
return provided entitySource if no parent, whether or not it has a MeshObject component or not | |
void | DeselectAroundCursor (vector cursorWorldPos) |
array< IEntity > | GetAllEntitiesAroundCursor (vector cursorWorldPos) |
float | AdjustValueUsingScrollWheel (float delta, float currentValue, float min, float max, float step) |
Helps getting proper new value for a property. | |
void | DeleteSelectedEntities () |
void | CreateBrush (vector worldPos) |
void | SetBrushColor (int colour) |
bool | IsWorldValid () |
void | SCR_SelectionBrushTool () |
Protected Attributes | |
float | m_fRadius |
bool | m_bDetectBySphere |
bool | m_bSnapToObjects |
bool | m_bUseTraceDetection |
bool | m_bSelectParentOnly |
int | m_iMaxSelectedEntities |
ref SCR_SelectionBrushConfig | m_ObjectsFilter |
ref TraceSphere | m_TraceSphere |
bool | m_bIsWorldValid |
bool | m_bIsMouseHeldDown |
bool | m_bIsInRemovalMode |
bool | m_bSmiley |
bool | m_bLimitReachedWarning |
ref array< ref Shape > | m_aBrushShapes |
first shape is the 2D circle second and third shape are horizontal/vertical lines fourth shape is either the sphere or the cylinder following shapes are altitude marks | |
vector | m_vBrushShapePos |
used to re-create the brush on scrollwheel | |
Static Protected Attributes | |
static const int | BRUSH_SHAPE_INDEX = 3 |
static const int | BRUSH_COLOUR_ON_HOLD = ARGB(64, 128, 128, 128) |
moving without click | |
static const int | BRUSH_COLOUR_NORMAL = ARGB(128, 128, 128, 0) |
clicked, no detection | |
static const int | BRUSH_COLOUR_NORMAL_2D = ARGB(255, 0, 255, 0) |
2D circle | |
static const int | BRUSH_COLOUR_GUIDE_2D = ARGB(64, 0, 255, 0) |
cylinder guide colour | |
static const int | BRUSH_COLOUR_CAN_ADD = ARGB(128, 128, 64, 0) |
"entities are around" | |
static const int | BRUSH_COLOUR_ADDED = ARGB(192, 128, 0, 0) |
"added an entity" | |
static const int | BRUSH_COLOUR_REMOVAL = ARGB(128, 64, 64, 255) |
"removal mode" | |
static const int | BRUSH_COLOUR_REMOVED = ARGB(192, 0, 0, 128) |
"removed an entity" | |
static const int | BRUSH_COLOUR_ALTITUDE = ARGB(255, 255, 0, 0) |
ALT altitude indicator. | |
static const int | BRUSH_GUIDE_2D_HEIGHT = 1000 |
static const float | BRUSH_ALTITUDE_TOLERANCE = 0.5 |
won't show ATL indicator if ATL Y is below this tolerance | |
static const float | RADIUS_MIN = 1 |
static const float | RADIUS_MAX = 100 |
static const float | RADIUS_STEP = 1 |
static const int | BRUSH_2D_Y_SEARCH = 10000 |
static const string | MESHOBJECT_CLASSNAME = "MeshObject" |
|
protected |
|
protected |
Helps getting proper new value for a property.
[in] | delta | the scrollwheel value (obtained in OnWheelEvent) that is a multiple of 120 |
[in] | currentValue | the value from which to start |
[in] | min | the min value |
[in] | max | the max value |
[in] | step | the step by which delta's converted value will be multiplied |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
return provided entitySource if no parent, whether or not it has a MeshObject component or not
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Event triggering on keyboard (normal) key press - see WorldEditorTool.OnKeyPressEvent() Used to switch to Delete mode (Space) or cancel Alt+Click (Esc)
[in] | key | |
[in] | isAutoRepeat |
|
protected |
Event triggering on keyboard (normal) key release - see WorldEditorTool.OnKeyReleaseEvent() Used to switch from Deselect mode (Space)
[in] | key | |
[in] | isAutoRepeat |
|
protected |
Event triggering on Mouse movement - see WorldEditorTool.OnMouseMoveEvent() Create/Delete entities and draw Alt+Click additional shapes.
[in] | x | |
[in] | y | |
[in] | buttons |
|
protected |
Event triggering on Mouse click - see WorldEditorTool.OnMousePressEvent() Filtered to work only for left-click here Creates/Refreshes the Obstacles Detector and deals with Click / Alt+Click.
[in] | x | |
[in] | y | |
[in] | buttons |
|
protected |
Event triggering on Mouse click release - see WorldEditorTool.OnMouseReleaseEvent() Filtered to work only for left-click here Clears "held mouse click" flag.
[in] | x | |
[in] | y | |
[in] | buttons |
|
protected |
Event triggering on Mouse scroll wheel - see WorldEditorTool.OnWheelEvent() Used to set Brush's radius (Ctrl)
[in] | delta | the scroll wheel difference value |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
won't show ATL indicator if ATL Y is below this tolerance
|
staticprotected |
"added an entity"
|
staticprotected |
ALT altitude indicator.
|
staticprotected |
"entities are around"
|
staticprotected |
cylinder guide colour
|
staticprotected |
clicked, no detection
|
staticprotected |
2D circle
|
staticprotected |
moving without click
|
staticprotected |
"removal mode"
|
staticprotected |
"removed an entity"
|
staticprotected |
|
staticprotected |
|
protected |
first shape is the 2D circle second and third shape are horizontal/vertical lines fourth shape is either the sphere or the cylinder following shapes are altitude marks
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
SCR_ESelectionBrushToolLayer SCR_SelectionBrushTool.m_eLayerSelection |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
used to re-create the brush on scrollwheel
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |