Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CommentPlacablePrefabDetail.c
Go to the documentation of this file.
3 {
4  protected TextWidget m_wText;
5  protected SCR_EditableEntityComponent m_Entity;
6  protected SCR_ContentBrowserEditorComponent m_ContentBrowserComponent;
7 
8  protected int m_iExtendedPrefabsCount;
9 
10  //------------------------------------------------------------------------------------------------
11  override void UpdateDetail(SCR_EditableEntityComponent entity)
12  {
13  if (m_iExtendedPrefabsCount > 0)
14  m_wText.SetText(m_iExtendedPrefabsCount.ToString());
15  else
16  m_wText.SetText(string.Empty);
17  }
18 
19  //------------------------------------------------------------------------------------------------
20  protected int GetExtendedEntityCount()
21  {
22  m_ContentBrowserComponent.SetExtendedEntity(m_Entity);
23  return m_ContentBrowserComponent.FilterExtendedSlots();
24  }
25 
26  //------------------------------------------------------------------------------------------------
27  override bool InitDetail(SCR_EditableEntityComponent entity, Widget widget)
28  {
29  m_wText = TextWidget.Cast(widget);
30  m_Entity = entity;
32 
33  if (!m_wText || !m_Entity || !m_ContentBrowserComponent)
34  return false;
35 
36  m_bShowLabel = m_iExtendedPrefabsCount > 0;
37  return m_bShowLabel;
38  }
39 }
SCR_CommentPlacablePrefabDetail
Definition: SCR_CommentPlacablePrefabDetail.c:2
m_Entity
enum EAITargetInfoCategory m_Entity
SCR_ContentBrowserEditorComponent
Definition: SCR_ContentBrowserEditorComponent.c:16
BaseContainerCustomTitleField
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition: SCR_KeyBindingMenuConfig.c:113
SCR_BaseEditorComponent
Definition: SCR_BaseEditorComponent.c:119
SCR_EntityTooltipDetail
Definition: SCR_EntityTooltipDetail.c:2
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
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