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_NotificationPlayerAndFaction.c
Go to the documentation of this file.
1
7
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleEnum
(
ENotification
,
"m_NotificationKey"
)]
8
class
SCR_NotificationPlayerAndFaction
:
SCR_NotificationPlayer
9
{
10
override
string
GetText
(
SCR_NotificationData
data
)
11
{
12
int
playerID;
13
data
.GetParams(playerID);
14
15
string
playerName, factionName;
16
data
.GetNotificationTextEntries(playerName, factionName);
17
if
(!
GetPlayerName
(playerID, playerName))
18
return
string
.Empty;
19
20
if
(factionName.IsEmpty())
21
{
22
if
(!
GetGame
().
GetPlayerController
())
23
return
string
.Empty;
24
25
SCR_FactionManager
factionManager =
SCR_FactionManager
.Cast(
GetGame
().GetFactionManager());
26
if
(!factionManager)
27
return
string
.Empty;
28
29
//Get factions using ID
30
Faction
playerFaction = factionManager.GetPlayerFaction(playerID);
31
if
(!playerFaction)
32
return
string
.Empty;
33
34
factionName = playerFaction.GetUIInfo().GetName();
35
}
36
37
data
.SetNotificationTextEntries(playerName, factionName);
38
return
super.GetText(
data
);
39
}
40
41
override
void
SetFactionRelatedColor(
SCR_NotificationData
data
)
42
{
43
int
playerID;
44
data
.GetParams(playerID);
45
data
.SetFactionRelatedColor(
GetFactionRelatedColorPlayer
(playerID,
m_info
.GetNotificationColor()));
46
}
47
};
ENotification
ENotification
Definition
ENotification.c:5
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
GetText
string GetText()
Definition
SCR_BaseEditorAttribute.c:488
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
SCR_FactionManager
void SCR_FactionManager(IEntitySource src, IEntity parent)
Definition
SCR_FactionManager.c:498
Faction
Definition
Faction.c:13
SCR_NotificationData
Definition
SCR_NotificationData.c:7
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::GetFactionRelatedColorPlayer
ENotificationColor GetFactionRelatedColorPlayer(int notificationPlayerID, ENotificationColor colorType)
Definition
SCR_NotificationDisplayData.c:561
SCR_NotificationPlayerAndFaction
Definition
SCR_NotificationPlayerAndFaction.c:9
SCR_NotificationPlayer
Definition
SCR_NotificationPlayer.c:11
GetPlayerController
proto external PlayerController GetPlayerController()
Definition
SCR_PlayerDeployMenuHandlerComponent.c:307
scripts
Game
Network
Notifications
NotificationDisplayData
SCR_NotificationPlayerAndFaction.c
Generated by
1.17.0