Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_NotificationEditableEntityEditableEntityTarget.c
Go to the documentation of this file.
1
9{
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;
12
14 {
15 int entityID, targetID;
16 data.GetParams(entityID, targetID);
17
18 string entityName, targetEntityName;
19 data.GetNotificationTextEntries(entityName, targetEntityName);
20 if (!GetEditableEntityName(entityID, entityName, m_bGetCharacterName) || !GetEditableEntityName(targetID, targetEntityName, m_bGetTargetCharacterName))
21 return string.Empty;
22
23 data.SetNotificationTextEntries(entityName, targetEntityName);
24 return super.GetText(data);
25 }
26
28 {
29 int entityID, targetEntityID;
30 data.GetParams(entityID, targetEntityID);
31 data.SetFactionRelatedColor(GetFactionRelatedColorEntity(targetEntityID, m_info.GetNotificationColor()));
32
33 //Split notification sets faction colors of left and right texts taking player ids, Text color var set the faction color of the target entity
36
37 if (splitNotificationUIInfo)
38 {
39 ENotificationColor leftColor, rightColor;
40
41 rightColor = GetFactionRelatedColorEntity(targetEntityID, splitNotificationUIInfo.GetRightTextColor());
42
43 //Check if left color should be the same as right color
44 if (splitNotificationUIInfo.ShouldReplaceLeftColorWithRightColorIfAlly() && AreEntitiesFriendly(entityID, false, targetEntityID, false))
45 leftColor = rightColor;
46 else
47 leftColor = GetFactionRelatedColorEntity(entityID, splitNotificationUIInfo.GetLeftTextColor());
48
49 data.SetSplitFactionRelatedColor(leftColor, rightColor);
50 }
51 else if (coloredTextUiInfo)
52 {
53 data.SetFactionRelatedTextColor(GetFactionRelatedColorEntity(targetEntityID, coloredTextUiInfo.GetNotificationTextColor()));
54 }
55
56 }
57};
ENotification
ENotificationColor
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
ENotificationColor GetFactionRelatedColorEntity(int notificationEntityID, ENotificationColor colorType)
bool AreEntitiesFriendly(int entity1ID, bool entity1IsPlayer, int entity2ID, bool entity2IsPlayer)
bool GetEditableEntityName(int entityRplID, out string entityName, bool useCharacterName=false)
SCR_FieldOfViewSettings Attribute