6 [
Attribute(
desc:
"If true shows Tasks, If false Shows Spawnpoint")]
7 protected bool m_bShowTasksTooltip;
12 if (!m_DelegateFactionManager)
15 Faction faction = entity.GetFaction();
19 SCR_EditableFactionComponent editableFaction = m_DelegateFactionManager.GetFactionDelegate(faction);
25 if (m_bShowTasksTooltip)
26 count = editableFaction.GetFactionTasksCount();
28 count = editableFaction.GetFactionSpawnPointCount();
30 m_Text.SetText(count.ToString());
33 ToggleWarning(count == 0);
40 if (!m_DelegateFactionManager)
43 return super.InitDetail(entity, widget);