Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_NotificationPlayer.c
Go to the documentation of this file.
1
11{
12 override string GetText(SCR_NotificationData data)
13 {
14 string textEntry1, textEntry2, textEntry3, textEntry4, textEntry5, textEntry6;
15 data.GetNotificationTextEntries(textEntry1, textEntry2, textEntry3, textEntry4, textEntry5, textEntry6);
16
17 int playerID;
18 data.GetParams(playerID);
19
20 string playerName;
21 data.GetNotificationTextEntries(playerName);
22 if (!GetPlayerName(playerID, playerName))
23 return string.Empty;
24
25 data.SetNotificationTextEntries(playerName);
26
27 return super.GetText(data);
28 }
29
30 override void SetPosition(SCR_NotificationData data)
31 {
32 if (!CanSetPosition(data))
33 return;
34
35 int playerID;
36 data.GetParams(playerID);
38 }
39
40 override void SetFactionRelatedColor(SCR_NotificationData data)
41 {
42 int playerID;
43 data.GetParams(playerID);
44 data.SetFactionRelatedColor(GetFactionRelatedColorPlayer(playerID, m_info.GetNotificationColor()));
45
47
48 if (coloredTextUiInfo)
49 data.SetFactionRelatedTextColor(GetFactionRelatedColorPlayer(playerID, coloredTextUiInfo.GetNotificationTextColor()));
50 }
51
52};
ENotification
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
string GetText()
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Get all prefabs that have the spawner data
void SetPositionDataEditablePlayer(int playerID, SCR_NotificationData data)
bool GetPlayerName(int playerID, out string playerName)
bool CanSetPosition(SCR_NotificationData data)
ENotificationColor GetFactionRelatedColorPlayer(int notificationPlayerID, ENotificationColor colorType)