Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
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
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};
ENotification
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
bool GetEditableEntityName(int entityRplID, out string entityName, bool useCharacterName=false)
SCR_FieldOfViewSettings Attribute
T4 param4
Definition tuple.c:152
T3 param3
Definition tuple.c:93
T2 param2
Definition tuple.c:92
Tuple param1