Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_NotificationCharacterName.c
Go to the documentation of this file.
1 
8 {
9  override string GetText(SCR_NotificationData data)
10  {
11  int entityID;
12  data.GetParams(entityID);
13 
14  string format, firstname, alias, surname;
15 
16  if (!GetCharacterName(entityID, format, firstname, alias, surname))
17  {
18  string entityName;
19  data.GetNotificationTextEntries(entityName);
20  if (!GetEditableEntityName(entityID, entityName, false))
21  return string.Empty;
22 
23  data.SetNotificationTextEntries(entityName);
24  Print("'SCR_NotificationCharacterName' entity could not be found or has no 'SCR_CharacterIdentityComponent'", LogLevel.ERROR);
25  }
26  else
27  {
28  data.SetNotificationTextEntries(firstname, alias, surname, format);
29  }
30 
31  return super.GetText(data);
32  }
33 
34  override void SetPosition(SCR_NotificationData data)
35  {
36  if (!CanSetPosition(data))
37  return;
38 
39  int entityID;
40  data.GetParams(entityID);
41 
42  SetPositionDataEditableEntity(entityID, data);
43  }
44 
45  override void SetFactionRelatedColor(SCR_NotificationData data)
46  {
47  int entityID;
48  data.GetParams(entityID);
49  data.SetFactionRelatedColor(GetFactionRelatedColorEntity(entityID, m_info.GetNotificationColor()));
50 
52 
53  if (coloredTextUiInfo)
54  data.SetFactionRelatedTextColor(GetFactionRelatedColorEntity(entityID, coloredTextUiInfo.GetNotificationTextColor()));
55  }
56 };
SCR_NotificationDisplayData
Definition: SCR_NotificationDisplayData.c:7
SCR_BaseContainerCustomTitleEnum
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Definition: SCR_CampaignHintStorage.c:22
SCR_ColoredTextNotificationUIInfo
Definition: SCR_ColoredTextNotificationUIInfo.c:2
ENotification
ENotification
Definition: ENotification.c:4
SCR_NotificationCharacterName
Definition: SCR_NotificationCharacterName.c:7
SCR_NotificationData
Definition: SCR_NotificationData.c:6
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468