Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_FactionPlayersTooltipDetail.c
Go to the documentation of this file.
3 {
4  protected TextWidget m_Text;
5  protected SCR_FactionManager m_FactionManager;
6 
7  //------------------------------------------------------------------------------------------------
8  override void UpdateDetail(SCR_EditableEntityComponent entity)
9  {
10  Faction faction = entity.GetFaction();
11  m_Text.SetText(m_FactionManager.GetFactionPlayerCount(faction).ToString());
12  }
13 
14  //------------------------------------------------------------------------------------------------
15  override bool InitDetail(SCR_EditableEntityComponent entity, Widget widget)
16  {
17  m_FactionManager = SCR_FactionManager.Cast(GetGame().GetFactionManager());
18  if (!m_FactionManager)
19  return false;
20 
21  m_Text = TextWidget.Cast(widget);
22  return m_Text != null;
23  }
24 }
SCR_FactionPlayersTooltipDetail
Definition: SCR_FactionPlayersTooltipDetail.c:2
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
BaseContainerCustomTitleField
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition: SCR_KeyBindingMenuConfig.c:113
m_FactionManager
protected SCR_FactionManager m_FactionManager
Definition: SCR_NotificationSenderComponent.c:28
SCR_EntityTooltipDetail
Definition: SCR_EntityTooltipDetail.c:2
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
Faction
Definition: Faction.c:12
SCR_FactionManager
void SCR_FactionManager(IEntitySource src, IEntity parent)
Definition: SCR_FactionManager.c:461
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