10 [
Attribute(
"0",
desc:
"If true will get Character name (first, alias and surname) if the entity is a NPC otherwise will get the entity type name eg: Rifleman")]
11 protected bool m_bGetCharacterName;
15 int entityID, targetID;
16 data.GetParams(entityID, targetID);
18 string entityName, targetEntityName;
19 data.GetNotificationTextEntries(entityName, targetEntityName);
20 if (!GetEditableEntityName(entityID, entityName, m_bGetCharacterName) || !GetEditableEntityName(targetID, targetEntityName, m_bGetTargetCharacterName))
23 data.SetNotificationTextEntries(entityName, targetEntityName);
24 return super.GetText(
data);
29 int entityID, targetEntityID;
30 data.GetParams(entityID, targetEntityID);
31 data.SetFactionRelatedColor(GetFactionRelatedColorEntity(targetEntityID, m_info.GetNotificationColor()));
37 if (splitNotificationUIInfo)
41 rightColor = GetFactionRelatedColorEntity(targetEntityID, splitNotificationUIInfo.GetRightTextColor());
44 if (splitNotificationUIInfo.ShouldReplaceLeftColorWithRightColorIfAlly() && AreEntitiesFriendly(entityID,
false, targetEntityID,
false))
45 leftColor = rightColor;
47 leftColor = GetFactionRelatedColorEntity(entityID, splitNotificationUIInfo.GetLeftTextColor());
49 data.SetSplitFactionRelatedColor(leftColor, rightColor);
51 else if (coloredTextUiInfo)
53 data.SetFactionRelatedTextColor(GetFactionRelatedColorEntity(targetEntityID, coloredTextUiInfo.GetNotificationTextColor()));