Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_NotificationVoting.c
Go to the documentation of this file.
3 {
4  override string GetText(SCR_NotificationData data)
5  {
6  SCR_VotingManagerComponent votingManager = SCR_VotingManagerComponent.GetInstance();
7  if (!votingManager)
8  return string.Empty;
9 
10  bool isEnd;
12  int value, winner;
13  data.GetParams(isEnd, type, value, winner);
14 
15  //LocalizedString notificationText;
16  LocalizedString name;
17  SCR_UIInfo info = votingManager.GetVotingInfo(type);
18  if (info)
19  name = info.GetName();
20 
21  string valueName = votingManager.GetValueName(type, value);
22  string winnerName = votingManager.GetValueName(type, winner);
23 
24  data.SetNotificationTextEntries(name, valueName, winnerName);
25  return super.GetText(data);
26  }
27 };
SCR_NotificationDisplayData
Definition: SCR_NotificationDisplayData.c:7
SCR_BaseContainerCustomTitleEnum
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Definition: SCR_CampaignHintStorage.c:22
ENotification
ENotification
Definition: ENotification.c:4
SCR_NotificationVoting
Definition: SCR_NotificationVoting.c:2
SCR_UIInfo
Definition: SCR_UIInfo.c:7
SCR_NotificationData
Definition: SCR_NotificationData.c:6
EVotingType
EVotingType
Definition: EVotingType.c:1
type
EDamageType type
Definition: SCR_DestructibleTreeV2.c:32
SCR_VotingManagerComponent
void SCR_VotingManagerComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition: SCR_VotingManagerComponent.c:878
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
LocalizedString
Definition: LocalizedString.c:21
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