Arma Reforger Script API
|
Saves data related to the notification system. More...
Public Member Functions | |
void | SetMeta (int id, SCR_NotificationDisplayData displayData) |
Set notification's meta data: Faction color and initial position data. | |
int | GetID () |
Set notification ID. | |
ENotificationReceiver | GetNotificationReceiverType () |
Get who recieves the notification and how, like local only, GM only, Local GM only. | |
float | GetNotificationTimeLeft () |
Get how much time is left before notification data is deleted from SCR_NotificationsComponent array. | |
bool | UpdateNotificationData (float timeSlice) |
Update the time left for the notification. | |
string | GetText () |
Get the display text for the notification. | |
void | SetNotificationTextEntries (string entry1=string.Empty, string entry2=string.Empty, string entry3=string.Empty, string entry4=string.Empty, string entry5=string.Empty, string entry6=string.Empty) |
Set the notification entry texts. | |
void | GetNotificationTextEntries (out string entry1=string.Empty, out string entry2=string.Empty, out string entry3=string.Empty, out string entry4=string.Empty, out string entry5=string.Empty, out string entry6=string.Empty) |
Set the notification entry texts. | |
void | SetFactionRelatedColor (ENotificationColor factionRelatedColor) |
Set the faction color. | |
void | SetFactionRelatedTextColor (ENotificationColor factionRelatedColor) |
Set the faction color for text. | |
void | SetSplitFactionRelatedColor (ENotificationColor factionRelatedColorLeft, ENotificationColor factionRelatedColorRight) |
Set the faction color for splitNotifications. | |
ENotificationColor | GetFactionRelatedColor () |
Get the saved faction color. | |
ENotificationColor | GetFactionRelatedTextColor () |
Get the saved faction text color. | |
void | GetSplitFactionRelatedColor (out ENotificationColor leftTextColor, out ENotificationColor rightTextColor) |
Get the saved faction text color. | |
SCR_NotificationDisplayData | GetDisplayData () |
Get the specific linked SCR_NotificationDisplayData type to get display data and position. | |
void | GetPosition (out vector position) |
Get position of the notification. | |
void | GetParams (out int param1, out int param2=0, out int param3=0, out int param4=0, out int param5=0, out int param6=0) |
Get parameters of the notification. | |
void | Log () |
Log information about the notification. | |
void | SetPosition (vector position) |
Set position of the notification. | |
void | SetParameters (ENotificationReceiver receiverType, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Sets the Parameters. | |
Static Public Member Functions | |
static void | Encode (SSnapSerializerBase snapshot, ScriptCtx hint, ScriptBitSerializer packet) |
static bool | Decode (ScriptBitSerializer packet, ScriptCtx hint, SSnapSerializerBase snapshot) |
static bool | SnapCompare (SSnapSerializerBase lhs, SSnapSerializerBase rhs, ScriptCtx hint) |
static bool | PropCompare (SCR_NotificationData prop, SSnapSerializerBase snapshot, ScriptCtx hint) |
static bool | Extract (SCR_NotificationData prop, ScriptCtx hint, SSnapSerializerBase snapshot) |
static bool | Inject (SSnapSerializerBase snapshot, ScriptCtx hint, SCR_NotificationData prop) |
Protected Attributes | |
ENotification | m_iID |
float | m_fNotificationTimeLeft = -1 |
int | m_iPrevPositionUpdated = -1 |
string | notificationEntry1 |
string | notificationEntry2 |
string | notificationEntry3 |
string | notificationEntry4 |
string | notificationEntry5 |
string | notificationEntry6 |
bool | m_bIsSplitNotification |
ENotificationColor | m_FactionRelatedColor = ENotificationColor.NEUTRAL |
ENotificationColor | m_FactionRelatedTextColor = ENotificationColor.NEUTRAL |
ENotificationColor | m_FactionRelatedTextLeftColor = ENotificationColor.NEUTRAL |
ENotificationColor | m_FactionRelatedTextRightColor = ENotificationColor.NEUTRAL |
SCR_NotificationDisplayData | m_DisplayData |
int | m_iParam1 |
int | m_iParam2 |
int | m_iParam3 |
int | m_iParam4 |
int | m_iParam5 |
int | m_iParam6 |
vector | m_vPosition = vector.Zero |
ENotificationReceiver | m_iNotificationReceiverType |
Saves data related to the notification system.
Data saved: ENotification id, float m_fTime, notification string parameters, A link to SCR_NotificationDisplayData, m_FactionRelatedColor if applicable and ints to store data See specific SCR_NotificationDisplayData classes to know which parameters should be send
|
static |
|
static |
|
static |
SCR_NotificationDisplayData SCR_NotificationData.GetDisplayData | ( | ) |
Get the specific linked SCR_NotificationDisplayData type to get display data and position.
ENotificationColor SCR_NotificationData.GetFactionRelatedColor | ( | ) |
Get the saved faction color.
Used to set the color of notification that can have faction variant colors depending on the target of the notification. So friendly player died will have a diffrent color then enemy player died
ENotificationColor SCR_NotificationData.GetFactionRelatedTextColor | ( | ) |
Get the saved faction text color.
Used to set the color of notification that can have faction variant colors depending on the target of the notification. So friendly player died will have a diffrent color then enemy player died
int SCR_NotificationData.GetID | ( | ) |
Set notification ID.
ENotificationReceiver SCR_NotificationData.GetNotificationReceiverType | ( | ) |
Get who recieves the notification and how, like local only, GM only, Local GM only.
void SCR_NotificationData.GetNotificationTextEntries | ( | out string | entry1 = string::Empty, |
out string | entry2 = string::Empty, | ||
out string | entry3 = string::Empty, | ||
out string | entry4 = string::Empty, | ||
out string | entry5 = string::Empty, | ||
out string | entry6 = string::Empty ) |
Set the notification entry texts.
out | entry1 |
out | entry2 |
out | entry3 |
out | entry4 |
out | entry5 |
out | entry6 |
float SCR_NotificationData.GetNotificationTimeLeft | ( | ) |
Get how much time is left before notification data is deleted from SCR_NotificationsComponent array.
void SCR_NotificationData.GetParams | ( | out int | param1, |
out int | param2 = 0, | ||
out int | param3 = 0, | ||
out int | param4 = 0, | ||
out int | param5 = 0, | ||
out int | param6 = 0 ) |
Get parameters of the notification.
[out] | param1 | |
[out] | param2 | |
[out] | param3 | |
[out] | param4 | |
[out] | param5 | |
[out] | param5 | |
[out] | param6 |
void SCR_NotificationData.GetPosition | ( | out vector | position | ) |
Get position of the notification.
[out] | position |
void SCR_NotificationData.GetSplitFactionRelatedColor | ( | out ENotificationColor | leftTextColor, |
out ENotificationColor | rightTextColor ) |
Get the saved faction text color.
Used to set the color of notification that can have faction variant colors depending on the target of the notification. So friendly player died will have a diffrent color then enemy player died
string SCR_NotificationData.GetText | ( | ) |
Get the display text for the notification.
|
static |
void SCR_NotificationData.Log | ( | ) |
Log information about the notification.
|
static |
void SCR_NotificationData.SetFactionRelatedColor | ( | ENotificationColor | factionRelatedColor | ) |
Set the faction color.
Faction color is used to set the color of notification that can have faction variant colors depending on the target of the notification. So friendly player died will have a diffrent color then enemy player died
factionPositiveNegativeColor | the new faction color to set |
void SCR_NotificationData.SetFactionRelatedTextColor | ( | ENotificationColor | factionRelatedColor | ) |
Set the faction color for text.
Faction color is used to set the color of notification that can have faction variant colors depending on the target of the notification. So friendly player died will have a diffrent color then enemy player died
factionPositiveNegativeColor | the new faction color to set for text |
void SCR_NotificationData.SetMeta | ( | int | id, |
SCR_NotificationDisplayData | displayData ) |
Set notification's meta data: Faction color and initial position data.
id | Notification ID |
notificationText | saved text of notification |
notificationTarget | target of notification for editor |
location | target of notification for editor |
void SCR_NotificationData.SetNotificationTextEntries | ( | string | entry1 = string::Empty, |
string | entry2 = string::Empty, | ||
string | entry3 = string::Empty, | ||
string | entry4 = string::Empty, | ||
string | entry5 = string::Empty, | ||
string | entry6 = string::Empty ) |
Set the notification entry texts.
entry1 | |
entry2 | |
entry3 | |
entry4 | |
entry5 | |
entry6 |
void SCR_NotificationData.SetParameters | ( | ENotificationReceiver | receiverType, |
int | param1 = 0, | ||
int | param2 = 0, | ||
int | param3 = 0, | ||
int | param4 = 0, | ||
int | param5 = 0, | ||
int | param6 = 0 ) |
Sets the Parameters.
receiverType,a | general type of who will will receive the notification such as: GM only, local only, etc |
param1 | |
param2 | |
param3 | |
param4 | |
param5 | |
param5 | |
param6 |
void SCR_NotificationData.SetPosition | ( | vector | position | ) |
Set position of the notification.
position |
void SCR_NotificationData.SetSplitFactionRelatedColor | ( | ENotificationColor | factionRelatedColorLeft, |
ENotificationColor | factionRelatedColorRight ) |
Set the faction color for splitNotifications.
Faction color is used to set the color of notification that can have faction variant colors depending on the targets (param1 and param2) of the notification. So friendly player died will have a diffrent color then enemy player died
factionRelatedColorLeft | the new faction color to set for left text |
factionRelatedColorRight | the new faction color to set for right text |
|
static |
bool SCR_NotificationData.UpdateNotificationData | ( | float | timeSlice | ) |
Update the time left for the notification.
It will be removed from the data in the Notification component once it reaches 0
timeSlice | amount removed from time left |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |