14 int playerID, playerTargetID;
15 data.GetParams(playerID, playerTargetID);
17 string playerName, playerTargetName;
18 data.GetNotificationTextEntries(playerName, playerTargetName);
19 if (!GetPlayerName(playerID, playerName) || !GetPlayerName(playerTargetID, playerTargetName))
22 data.SetNotificationTextEntries(playerName, playerTargetName);
23 return super.GetText(
data);
28 if (!CanSetPosition(
data))
31 int playerID, playerTargetID;
32 data.GetParams(playerID, playerTargetID);
34 SetPositionDataEditablePlayer(playerTargetID,
data);
39 int playerID, playerTargetID;
40 data.GetParams(playerID, playerTargetID);
41 data.SetFactionRelatedColor(GetFactionRelatedColorPlayer(playerTargetID, m_info.GetNotificationColor()));
47 if (splitNotificationUIInfo)
51 rightColor = GetFactionRelatedColorPlayer(playerTargetID, splitNotificationUIInfo.GetRightTextColor());
54 if (splitNotificationUIInfo.ShouldReplaceLeftColorWithRightColorIfAlly() && AreEntitiesFriendly(playerID,
true, playerTargetID,
true))
55 leftColor = rightColor;
57 leftColor = GetFactionRelatedColorPlayer(playerID, splitNotificationUIInfo.GetLeftTextColor());
59 data.SetSplitFactionRelatedColor(leftColor, rightColor);
61 else if (coloredTextUiInfo)
63 data.SetFactionRelatedTextColor(GetFactionRelatedColorPlayer(playerTargetID, coloredTextUiInfo.GetNotificationTextColor()));