10 [
Attribute(
desc:
"Should this action be hidden when an entity is hovered")]
11 protected bool m_HideOnHover;
12 [
Attribute(
desc:
"Should this action be hidden when any entities are selected")]
13 protected bool m_HideOnSelected;
15 override bool CanBeShown(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
17 if(m_HideOnHover && hoveredEntity)
21 if(m_HideOnSelected && !selectedEntities.IsEmpty())
28 override bool CanBePerformed(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
33 override void Perform(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags,
int param = -1)
35 PrintFormat(
"This is general action %1, description: %2",
GetInfo().
GetName(),
GetInfo().GetDescription());