Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
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};
ENotification
EVotingType
Definition EVotingType.c:2
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
string GetText()
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
EDamageType type
Get all prefabs that have the spawner data
void SCR_VotingManagerComponent(IEntityComponentSource src, IEntity ent, IEntity parent)