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, targetPlayerID;
16 data.GetParams(entityID, targetPlayerID);
18 string entityName, targetPlayerName;
19 data.GetNotificationTextEntries(entityName, targetPlayerName);
20 if (!GetEditableEntityName(entityID, entityName, m_bGetCharacterName) || !GetPlayerName(targetPlayerID, targetPlayerName))
23 data.SetNotificationTextEntries(entityName, targetPlayerName);
24 return super.GetText(
data);
29 int entityID, targetPlayerID;
30 data.GetParams(entityID, targetPlayerID);
31 data.SetFactionRelatedColor(GetFactionRelatedColorPlayer(targetPlayerID, m_info.GetNotificationColor()));
37 if (splitNotificationUIInfo)
41 rightColor = GetFactionRelatedColorPlayer(targetPlayerID, splitNotificationUIInfo.GetRightTextColor());
44 if (splitNotificationUIInfo.ShouldReplaceLeftColorWithRightColorIfAlly() && AreEntitiesFriendly(entityID,
false, targetPlayerID,
true))
45 leftColor = rightColor;
47 leftColor = GetFactionRelatedColorEntity(entityID, splitNotificationUIInfo.GetLeftTextColor());
49 data.SetSplitFactionRelatedColor(leftColor, rightColor);
51 else if (coloredTextUiInfo)
53 data.SetFactionRelatedTextColor(GetFactionRelatedColorPlayer(targetPlayerID, coloredTextUiInfo.GetNotificationTextColor()));