Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_NotificationEditableEntityAndNumber.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 
13  [Attribute(defvalue: "1", params: "1 1000")]
14  protected int m_iNumberDivider;
15 
16  override string GetText(SCR_NotificationData data)
17  {
18  int entityID, param1, param2, param3, param4;
19  data.GetParams(entityID, param1, param2, param3, param4);
20 
21  float display1 = param1;
22  display1 = param1 / m_iNumberDivider;
23 
24  float display2 = param2;
25  display2 = param2 / m_iNumberDivider;
26 
27  float display3 = param3;
28  display3 = param3 / m_iNumberDivider;
29 
30  float display4 = param4;
31  display4 = param4 / m_iNumberDivider;
32 
33  string entityName;
34  data.GetNotificationTextEntries(entityName);
35  if (!GetEditableEntityName(entityID, entityName, m_bGetCharacterName))
36  return string.Empty;
37 
38  data.SetNotificationTextEntries(entityName, display1.ToString(), display2.ToString(), display3.ToString(), display4.ToString());
39  return super.GetText(data);
40  }
41 };
SCR_NotificationDisplayData
Definition: SCR_NotificationDisplayData.c:7
SCR_BaseContainerCustomTitleEnum
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Definition: SCR_CampaignHintStorage.c:22
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
ENotification
ENotification
Definition: ENotification.c:4
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_NotificationData
Definition: SCR_NotificationData.c:6
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
params
Configs ServerBrowser KickDialogs params
Definition: SCR_NotificationSenderComponent.c:24
SCR_NotificationEditableEntityAndNumber
Definition: SCR_NotificationEditableEntityAndNumber.c:8
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