Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
SCR_NotificationPlayerAndLocation Interface Reference

Notification Player, distance and location Displays a notification: %1 = PlayerID name, %2 = distance SCR_NotificationData: m_iParam1 = PlayerID SCR_NotificationData: m_iParam2 = distance. More...

Inheritance diagram for SCR_NotificationPlayerAndLocation:
[legend]

Public Member Functions

override string GetText (SCR_NotificationData data)
 Returns the display text using the parameters set in SCR_NotificationData.
 
- Public Member Functions inherited from SCR_NotificationPlayer
override string GetText (SCR_NotificationData data)
 Returns the display text using the parameters set in SCR_NotificationData.
 
override void SetPosition (SCR_NotificationData data)
 Set the position of the target entity the SCR_NotificationData.
 
override void SetFactionRelatedColor (SCR_NotificationData data)
 Sets the color enum related to faction if SCR_NotificationDisplayData Color is set to: 'FACTION_RELATED_FRIENDLY_IS_NEGATIVE', 'FACTION_RELATED_FRIENDLY_IS_POSITIVE', 'FACTION_RELATED_ENEMY_IS_NEGATIVE_ONLY' or 'FACTION_RELATED_FRIENDLY_IS_POSITIVE_ONLY' and there is a target to check faction of.
 
- Public Member Functions inherited from SCR_NotificationDisplayData
void SetInitialDisplayData (SCR_NotificationData data)
 Sets the initial display data such as initial notification position and faction related color of notification.
 
void GetDisplayVisualizationData (SCR_NotificationData data, out SCR_UINotificationInfo info=null, out ENotificationColor colorEnum=ENotificationColor.NEUTRAL)
 Returns the display data.
 
ENotificationColor GetTextColor (SCR_NotificationData data)
 Returns the display data.
 
void GetSplitNotificationTextColors (SCR_NotificationData data, out ENotificationColor leftTextColorEnum=ENotificationColor.NEUTRAL, out ENotificationColor rightTextColorEnum=ENotificationColor.NEUTRAL)
 Returns the display data.
 
string GetText (SCR_NotificationData data)
 Returns the display text using the parameters set in SCR_NotificationData.
 
bool MergeParam1With2 ()
 If true it will merge param1 with param2 using param2 as format (eg: Translate(param2, param1)) before constructing the full notification formatted string.
 
bool GetPriority ()
 Get Priority.
 
SCR_UINotificationInfo GetNotificationUIInfo ()
 Get UI info.
 
bool GetPosition (SCR_NotificationData data, out vector position)
 Gives a position vector that is linked to the notification.
 
void SetPosition (SCR_NotificationData data)
 Set the position of the target entity the SCR_NotificationData.
 
void SetFactionRelatedColor (SCR_NotificationData data)
 Sets the color enum related to faction if SCR_NotificationDisplayData Color is set to: 'FACTION_RELATED_FRIENDLY_IS_NEGATIVE', 'FACTION_RELATED_FRIENDLY_IS_POSITIVE', 'FACTION_RELATED_ENEMY_IS_NEGATIVE_ONLY' or 'FACTION_RELATED_FRIENDLY_IS_POSITIVE_ONLY' and there is a target to check faction of.
 

Protected Attributes

int m_iNumberDivider
 
- Protected Attributes inherited from SCR_NotificationDisplayData
bool m_bAddFriendlyIndicator
 

Additional Inherited Members

- Public Attributes inherited from SCR_NotificationDisplayData
ENotification m_NotificationKey
 
bool m_bPriorityNotification
 
ref SCR_UINotificationInfo m_info
 
- Static Public Attributes inherited from SCR_NotificationDisplayData
const int MAX_USERNAME_CHARACTERS = 32
 
- Protected Member Functions inherited from SCR_NotificationDisplayData
bool GetPlayerName (int playerID, out string playerName)
 
bool GetEditableEntityName (int entityRplID, out string entityName, bool useCharacterName=false)
 
bool IsPlayerFriendlyToLocalPlayer (int notificationPlayerID, bool friendlyIfNoFaction=false)
 
bool IsEntityFriendlyToLocalPlayer (IEntity notificationEntity, bool friendlyIfNoFaction=false)
 
bool GetFactionName (int factionIndex, out string factionName)
 
bool GetCharacterName (int entityRplID, out string format, out string firstname, out string alias, out string surname)
 
bool GetEntityCallsign (int rplID, out string callsign)
 
bool GetGroupNameFromGroupID (int playerGroupId, out string groupName)
 
bool GetInventoryItemName (RplId rplId, out string itemName)
 
bool CanSetPosition (SCR_NotificationData data)
 
void SetPositionDataEditablePlayer (int playerID, SCR_NotificationData data)
 
void SetPositionDataEditableEntity (int enditableEntityID, SCR_NotificationData data)
 
ENotificationColor GetFactionRelatedColorPlayer (int notificationPlayerID, ENotificationColor colorType)
 
ENotificationColor GetFactionRelatedColorEntity (int notificationEntityID, ENotificationColor colorType)
 
bool AreEntitiesFriendly (int entity1ID, bool entity1IsPlayer, int entity2ID, bool entity2IsPlayer)
 
- Static Protected Attributes inherited from SCR_NotificationDisplayData
const LocalizedString FRIENDLY_INDICATOR = "#AR-Notification_FriendlyIndicator"
 String used to indicate friendly entities together with the name eg: (Friendly) [PlayerName]. Used only if m_bAddFriendlyIndicator is true.
 

Detailed Description

Notification Player, distance and location Displays a notification: %1 = PlayerID name, %2 = distance SCR_NotificationData: m_iParam1 = PlayerID SCR_NotificationData: m_iParam2 = distance.

Member Function Documentation

◆ GetText()

override string SCR_NotificationPlayerAndLocation.GetText ( SCR_NotificationData  data)

Returns the display text using the parameters set in SCR_NotificationData.

Parameters
dataSCR_NotificationData to get the parameters
Returns
string display text as shown in the notification

Implements SCR_NotificationPlayer.

Member Data Documentation

◆ m_iNumberDivider

int SCR_NotificationPlayerAndLocation.m_iNumberDivider
protected

The documentation for this interface was generated from the following file: