Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AssetBrowserContextAction.c
Go to the documentation of this file.
1 [BaseContainerProps(configRoot: true), SCR_BaseContainerCustomTitleUIInfo("m_Info")]
3 {
4  override bool CanBeShown(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags)
5  {
6  return hoveredEntity && hoveredEntity.HasEntityFlag(EEditableEntityFlag.SLOT); //--- ToDo: Check if the entity has an extension
7  }
8  override bool CanBePerformed(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags)
9  {
10  return CanBeShown(hoveredEntity, selectedEntities, cursorWorldPosition, flags);
11  }
12  override void Perform(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,int flags, int param = -1)
13  {
14  if (!hoveredEntity)
15  return;
16 
18  if (contentBrowserManager)
19  {
20  //~ Get content browser config to hide labels and set specific labels active
21  SCR_EditableLinkedContentBrowserUIInfo uiSlotInfo = SCR_EditableLinkedContentBrowserUIInfo.Cast(hoveredEntity.GetInfo());
22 
23  if (uiSlotInfo)
24  contentBrowserManager.OpenBrowserExtended(hoveredEntity, uiSlotInfo.GetContentBrowserDisplayConfig());
25  else
26  contentBrowserManager.OpenBrowserExtended(hoveredEntity);
27  }
28  }
29 };
EEditableEntityFlag
EEditableEntityFlag
Unique flags of the entity.
Definition: EEditableEntityFlag.c:5
SCR_AssetBrowserContextAction
Definition: SCR_AssetBrowserContextAction.c:2
SCR_ContentBrowserEditorComponent
Definition: SCR_ContentBrowserEditorComponent.c:16
SCR_BaseContextAction
Definition: SCR_BaseContextAction.c:7
SCR_EditableLinkedContentBrowserUIInfo
Definition: SCR_EditableLinkedContentBrowserUIInfo.c:2
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
SCR_BaseContainerCustomTitleUIInfo
void SCR_BaseContainerCustomTitleUIInfo(string propertyName, string format="%1")
Definition: Attributes.c:788
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468