7 [
Attribute(
desc:
"Active labels and white listed labels and label groups")]
10 override bool CanBeShown(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
12 if (hoveredEntity || cursorWorldPosition == vector.Zero)
19 if (!controlledEntity)
26 return damageManager.GetState() ==
EDamageState.DESTROYED;
31 override bool CanBePerformed(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
33 return CanBeShown(hoveredEntity, selectedEntities, cursorWorldPosition, flags);
36 override void Perform(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags,
int param = -1)
38 if (DidCursorMoveDuringDoubleClick())
42 if (!placingManager || placingManager.IsPlacing() ||
GetGame().GetMenuManager().IsAnyDialogOpen())
46 transform[3] = cursorWorldPosition;
50 Math3D.AnglesToMatrix(Vector(camera.GetAngles()[0], 0, 0), transform);
52 Math3D.MatrixIdentity3(transform);
54 placingManager.SetPlacingFlag(m_PlacingFlag,
true);
62 placingManager.SetPlacingFlag(m_PlacingFlag,
false);
65 override bool IsServer()