5 protected bool m_bTriggerConditionsStatus;
6 protected int m_iPlayersCountByFactionInside;
7 protected int m_iPlayersCountByFaction;
8 protected float m_fTempTimeSlice;
9 protected float m_fActivationCountdownTimer;
10 protected float m_fTempWaitTime;
11 protected float m_fMinimumPlayersNeededPercentage;
13 protected string m_sPlayerActivationNotificationTitle;
14 protected Widget m_wInfoOverlay;
15 protected Widget m_wCountdownOverlay;
16 protected RichTextWidget m_wCountdown;
17 protected RichTextWidget m_wFlavour;
21 override void DisplayStartDraw(IEntity owner)
27 ImageWidget leftFlag = ImageWidget.Cast(
m_wRoot.FindAnyWidget(
"FlagSideBlue"));
28 ImageWidget rightFlag = ImageWidget.Cast(
m_wRoot.FindAnyWidget(
"FlagSideRed"));
29 RichTextWidget leftScore = RichTextWidget.Cast(
m_wRoot.FindAnyWidget(
"ScoreBlue"));
30 RichTextWidget rightScore = RichTextWidget.Cast(
m_wRoot.FindAnyWidget(
"ScoreRed"));
31 RichTextWidget winScore = RichTextWidget.Cast(
m_wRoot.FindAnyWidget(
"TargetScore"));
34 ImageWidget winScoreSideLeft = ImageWidget.Cast(
m_wRoot.FindAnyWidget(
"ObjectiveLeft"));
35 ImageWidget winScoreSideRight = ImageWidget.Cast(
m_wRoot.FindAnyWidget(
"ObjectiveRight"));
38 leftFlag.SetVisible(
false);
39 rightFlag.SetVisible(
false);
40 leftScore.SetVisible(
false);
41 rightScore.SetVisible(
false);
42 winScore.SetVisible(
false);
43 winScoreSideLeft.SetVisible(
false);
44 winScoreSideRight.SetVisible(
false);
52 override void DisplayUpdate(IEntity owner,
float timeSlice)
61 protected void ShowHUD(
bool show)
73 if (m_iPlayersCountByFactionInside > 0)
86 void RetrieveTriggerInfo(
float activationCountdownTimer,
float tempWaitTime,
int playersCountByFactionInside,
int playersCountByFaction,
string playerActivationNotificationTitle,
bool triggerConditionsStatus,
float minimumPlayersNeededPercentage)
89 m_iPlayersCountByFactionInside = playersCountByFactionInside;
90 m_iPlayersCountByFaction = playersCountByFaction;
101 void RetrieveCountInsideTrigger(
int countInsideTrigger)
103 if (m_iPlayersCountByFactionInside == 0)
106 m_iPlayersCountByFactionInside = countInsideTrigger;
112 protected void UpdateHUD()
117 if (neededNumber == 0)
121 string formattedTitle =
string.Format(
"<color rgba=\"226,168,80,255\">%1</color>", title);
125 if (m_iPlayersCountByFactionInside == 0)