5 protected string m_sTextWidgetName;
8 protected string m_sSeperatorWidgetName;
11 protected int m_iSeperatorAlpha;
13 [
Attribute(
"#AR-Editor_TooltipDetail_FactionTasks_Hint")]
16 [
Attribute(
"#AR-Editor_TooltipDetail_FactionSpawnPoint_Hint")]
19 protected RichTextWidget m_Text;
20 protected ImageWidget m_Seperator;
21 protected Widget m_self;
32 m_Text = RichTextWidget.Cast(widget.FindAnyWidget(m_sTextWidgetName));
36 m_Text.SetText(
string.Empty);
39 if (!m_DelegateFactionManager)
42 Faction faction = entity.GetFaction();
46 SCR_EditableFactionComponent editableFaction = m_DelegateFactionManager.GetFactionDelegate(faction);
50 int spawnPointCount = editableFaction.GetFactionSpawnPointCount();
51 int taskCount = editableFaction.GetFactionTasksCount();
53 m_Seperator = ImageWidget.Cast(widget.FindAnyWidget(m_sSeperatorWidgetName));
56 Color factionColor = faction.GetFactionColor();
57 m_Seperator.SetColor(
new Color(factionColor.R(), factionColor.G(), factionColor.B(), m_iSeperatorAlpha));
61 m_Text.SetText(m_TaskHintText);
63 if (spawnPointCount == 0)
66 m_Text.SetText(m_Text.GetText() +
"<br/><br/>");
68 m_Text.SetText(m_Text.GetText() + m_SpawnPointHintText);
71 return taskCount == 0 || spawnPointCount == 0;