10 [
Attribute(
"0",
desc:
"If true will get target 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_bGetTargetCharacterName;
15 int playerID, targetID;
16 data.GetParams(playerID, targetID);
18 string playerName, entityName;
19 data.GetNotificationTextEntries(playerName, entityName);
20 if (!GetPlayerName(playerID, playerName) || !GetEditableEntityName(targetID, entityName, m_bGetTargetCharacterName))
23 data.SetNotificationTextEntries(playerName, entityName);
24 return super.GetText(
data);
29 if (!CanSetPosition(
data))
32 int playerID, targetID;
33 data.GetParams(playerID, targetID);
34 SetPositionDataEditableEntity(targetID,
data);
39 int playerID, entityID;
40 data.GetParams(playerID, entityID);
41 data.SetFactionRelatedColor(GetFactionRelatedColorEntity(entityID, m_info.GetNotificationColor()));
47 if (splitNotificationUIInfo)
51 rightColor = GetFactionRelatedColorEntity(entityID, splitNotificationUIInfo.GetRightTextColor());
54 if (splitNotificationUIInfo.ShouldReplaceLeftColorWithRightColorIfAlly() && AreEntitiesFriendly(playerID,
true, entityID,
false))
55 leftColor = rightColor;
57 leftColor = GetFactionRelatedColorPlayer(playerID, splitNotificationUIInfo.GetLeftTextColor());
59 data.SetSplitFactionRelatedColor(leftColor, rightColor);
61 else if (coloredTextUiInfo)
63 data.SetFactionRelatedTextColor(GetFactionRelatedColorEntity(entityID, coloredTextUiInfo.GetNotificationTextColor()));