Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_NotificationCharacterName.c
Go to the documentation of this file.
1
8{
9 override string GetText(SCR_NotificationData data)
10 {
11 int entityID;
12 data.GetParams(entityID);
13
14 string format, firstname, alias, surname;
15
16 if (!GetCharacterName(entityID, format, firstname, alias, surname))
17 {
18 string entityName;
19 data.GetNotificationTextEntries(entityName);
20 if (!GetEditableEntityName(entityID, entityName, false))
21 return string.Empty;
22
23 data.SetNotificationTextEntries(entityName);
24 Print("'SCR_NotificationCharacterName' entity could not be found or has no 'SCR_CharacterIdentityComponent'", LogLevel.ERROR);
25 }
26 else
27 {
28 data.SetNotificationTextEntries(firstname, alias, surname, format);
29 }
30
31 return super.GetText(data);
32 }
33
34 override void SetPosition(SCR_NotificationData data)
35 {
36 if (!CanSetPosition(data))
37 return;
38
39 int entityID;
40 data.GetParams(entityID);
41
43 }
44
45 override void SetFactionRelatedColor(SCR_NotificationData data)
46 {
47 int entityID;
48 data.GetParams(entityID);
49 data.SetFactionRelatedColor(GetFactionRelatedColorEntity(entityID, m_info.GetNotificationColor()));
50
52
53 if (coloredTextUiInfo)
54 data.SetFactionRelatedTextColor(GetFactionRelatedColorEntity(entityID, coloredTextUiInfo.GetNotificationTextColor()));
55 }
56};
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
ENotificationColor GetFactionRelatedColorEntity(int notificationEntityID, ENotificationColor colorType)
void SetPositionDataEditableEntity(int enditableEntityID, SCR_NotificationData data)
bool GetCharacterName(int entityRplID, out string format, out string firstname, out string alias, out string surname)
bool GetEditableEntityName(int entityRplID, out string entityName, bool useCharacterName=false)
bool CanSetPosition(SCR_NotificationData data)
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14