Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_NotificationPlayerTargetEditableEntity.c
Go to the documentation of this file.
1
7
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleEnum
(
ENotification
,
"m_NotificationKey"
)]
8
class
SCR_NotificationPlayerTargetEditableEntity
:
SCR_NotificationDisplayData
9
{
10
[
Attribute
(
"0"
,
desc
:
"If true will get target 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_bGetTargetCharacterName
;
12
13
override
string
GetText
(
SCR_NotificationData
data
)
14
{
15
int
playerID, targetID;
16
data
.GetParams(playerID, targetID);
17
18
string
playerName, entityName;
19
data
.GetNotificationTextEntries(playerName, entityName);
20
if
(!
GetPlayerName
(playerID, playerName) || !
GetEditableEntityName
(targetID, entityName,
m_bGetTargetCharacterName
))
21
return
string
.Empty;
22
23
data
.SetNotificationTextEntries(playerName, entityName);
24
return
super.GetText(
data
);
25
}
26
27
override
void
SetPosition
(
SCR_NotificationData
data
)
28
{
29
if
(!
CanSetPosition
(
data
))
30
return
;
31
32
int
playerID, targetID;
33
data
.GetParams(playerID, targetID);
34
SetPositionDataEditableEntity
(targetID,
data
);
35
}
36
37
override
void
SetFactionRelatedColor
(
SCR_NotificationData
data
)
38
{
39
int
playerID, entityID;
40
data
.GetParams(playerID, entityID);
41
data
.SetFactionRelatedColor(
GetFactionRelatedColorEntity
(entityID,
m_info
.GetNotificationColor()));
42
43
//Split notification sets faction colors of left and right texts taking player ids, Text color var set the faction color of the target entity
44
SCR_SplitNotificationUIInfo
splitNotificationUIInfo =
SCR_SplitNotificationUIInfo
.Cast(
m_info
);
45
SCR_ColoredTextNotificationUIInfo
coloredTextUiInfo =
SCR_ColoredTextNotificationUIInfo
.Cast(
m_info
);
46
47
if
(splitNotificationUIInfo)
48
{
49
ENotificationColor
leftColor, rightColor;
50
51
rightColor =
GetFactionRelatedColorEntity
(entityID, splitNotificationUIInfo.
GetRightTextColor
());
52
53
//Check if left color should be the same as right color
54
if
(splitNotificationUIInfo.
ShouldReplaceLeftColorWithRightColorIfAlly
() &&
AreEntitiesFriendly
(playerID,
true
, entityID,
false
))
55
leftColor = rightColor;
56
else
57
leftColor =
GetFactionRelatedColorPlayer
(playerID, splitNotificationUIInfo.
GetLeftTextColor
());
58
59
data
.SetSplitFactionRelatedColor(leftColor, rightColor);
60
}
61
else
if
(coloredTextUiInfo)
62
{
63
data
.SetFactionRelatedTextColor(
GetFactionRelatedColorEntity
(entityID, coloredTextUiInfo.
GetNotificationTextColor
()));
64
}
65
66
}
67
};
ENotification
ENotification
Definition
ENotification.c:5
ENotificationColor
ENotificationColor
Definition
ENotificationColor.c:5
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_BaseContainerCustomTitleEnum
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Definition
SCR_CampaignHintStorage.c:22
data
Get all prefabs that have the spawner data
Definition
SCR_EntityCatalogManagerComponent.c:320
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
SCR_ColoredTextNotificationUIInfo
Definition
SCR_ColoredTextNotificationUIInfo.c:3
SCR_ColoredTextNotificationUIInfo::GetNotificationTextColor
ENotificationColor GetNotificationTextColor()
Definition
SCR_ColoredTextNotificationUIInfo.c:10
SCR_NotificationData
Definition
SCR_NotificationData.c:7
SCR_NotificationDisplayData
Definition
SCR_NotificationDisplayData.c:8
SCR_NotificationDisplayData::GetFactionRelatedColorEntity
ENotificationColor GetFactionRelatedColorEntity(int notificationEntityID, ENotificationColor colorType)
Definition
SCR_NotificationDisplayData.c:624
SCR_NotificationDisplayData::SetPositionDataEditableEntity
void SetPositionDataEditableEntity(int enditableEntityID, SCR_NotificationData data)
Definition
SCR_NotificationDisplayData.c:537
SCR_NotificationDisplayData::m_info
ref SCR_UINotificationInfo m_info
Definition
SCR_NotificationDisplayData.c:19
SCR_NotificationDisplayData::GetPlayerName
bool GetPlayerName(int playerID, out string playerName)
Definition
SCR_NotificationDisplayData.c:160
SCR_NotificationDisplayData::AreEntitiesFriendly
bool AreEntitiesFriendly(int entity1ID, bool entity1IsPlayer, int entity2ID, bool entity2IsPlayer)
Definition
SCR_NotificationDisplayData.c:695
SCR_NotificationDisplayData::GetEditableEntityName
bool GetEditableEntityName(int entityRplID, out string entityName, bool useCharacterName=false)
Definition
SCR_NotificationDisplayData.c:198
SCR_NotificationDisplayData::CanSetPosition
bool CanSetPosition(SCR_NotificationData data)
Definition
SCR_NotificationDisplayData.c:506
SCR_NotificationDisplayData::GetFactionRelatedColorPlayer
ENotificationColor GetFactionRelatedColorPlayer(int notificationPlayerID, ENotificationColor colorType)
Definition
SCR_NotificationDisplayData.c:561
SCR_NotificationPlayerTargetEditableEntity
Definition
SCR_NotificationPlayerTargetEditableEntity.c:9
SCR_NotificationPlayerTargetEditableEntity::SetFactionRelatedColor
override void SetFactionRelatedColor(SCR_NotificationData data)
Definition
SCR_NotificationPlayerTargetEditableEntity.c:37
SCR_NotificationPlayerTargetEditableEntity::GetText
override string GetText(SCR_NotificationData data)
Definition
SCR_NotificationPlayerTargetEditableEntity.c:13
SCR_NotificationPlayerTargetEditableEntity::SetPosition
override void SetPosition(SCR_NotificationData data)
Definition
SCR_NotificationPlayerTargetEditableEntity.c:27
SCR_NotificationPlayerTargetEditableEntity::m_bGetTargetCharacterName
bool m_bGetTargetCharacterName
Definition
SCR_NotificationPlayerTargetEditableEntity.c:11
SCR_SplitNotificationUIInfo
Definition
SCR_SplitNotificationUIInfo.c:3
SCR_SplitNotificationUIInfo::GetLeftTextColor
ENotificationColor GetLeftTextColor()
Definition
SCR_SplitNotificationUIInfo.c:27
SCR_SplitNotificationUIInfo::ShouldReplaceLeftColorWithRightColorIfAlly
bool ShouldReplaceLeftColorWithRightColorIfAlly()
Definition
SCR_SplitNotificationUIInfo.c:46
SCR_SplitNotificationUIInfo::GetRightTextColor
ENotificationColor GetRightTextColor()
Definition
SCR_SplitNotificationUIInfo.c:35
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Network
Notifications
NotificationDisplayData
SCR_NotificationPlayerTargetEditableEntity.c
Generated by
1.17.0