Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_FactionTasksAndSpawnPointsTooltipDetail.c
Go to the documentation of this file.
3 {
4  protected SCR_DelegateFactionManagerComponent m_DelegateFactionManager;
5 
6  [Attribute(desc: "If true shows Tasks, If false Shows Spawnpoint")]
7  protected bool m_bShowTasksTooltip;
8 
9  //------------------------------------------------------------------------------------------------
10  override void UpdateDetail(SCR_EditableEntityComponent entity)
11  {
12  if (!m_DelegateFactionManager)
13  return;
14 
15  Faction faction = entity.GetFaction();
16  if (!faction)
17  return;
18 
19  SCR_EditableFactionComponent editableFaction = m_DelegateFactionManager.GetFactionDelegate(faction);
20  if (!editableFaction)
21  return;
22 
23  int count;
24 
25  if (m_bShowTasksTooltip)
26  count = editableFaction.GetFactionTasksCount();
27  else
28  count = editableFaction.GetFactionSpawnPointCount();
29 
30  m_Text.SetText(count.ToString());
31 
32  //Warning Text
33  ToggleWarning(count == 0);
34  }
35 
36  //------------------------------------------------------------------------------------------------
37  override bool InitDetail(SCR_EditableEntityComponent entity, Widget widget)
38  {
39  m_DelegateFactionManager = SCR_DelegateFactionManagerComponent.GetInstance();
40  if (!m_DelegateFactionManager)
41  return false;
42 
43  return super.InitDetail(entity, widget);
44  }
45 }
SCR_FactionTasksAndSpawnPointsTooltipDetail
Definition: SCR_FactionTasksAndSpawnPointsTooltipDetail.c:2
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
SCR_TextAndWarningTooltipDetail
Definition: SCR_TextAndWarningTooltipDetail.c:2
BaseContainerCustomTitleField
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition: SCR_KeyBindingMenuConfig.c:113
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
Faction
Definition: Faction.c:12
SCR_DelegateFactionManagerComponent
Definition: SCR_DelegateFactionManagerComponent.c:15
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