DayZ 1.24
Loading...
Searching...
No Matches
NotificationSystem.c File Reference

Go to the source code of this file.

Classes

class  NotificationSystem
 

Enumerations

enum  NotificationType {
  FRIEND_CONNECTED , INVITE_FAIL_SAME_SERVER , JOIN_FAIL_GET_SESSION , CONNECT_FAIL_GENERIC ,
  DISCONNECTED , GENERIC_ERROR , NOTIFICATIONS_END
}
 DEPRECATED (moved into NotificationSystem) More...
 

Functions

void NotificationRuntimeData (float time, NotificationData data, string detail_text)
 
float GetTime ()
 
float GetRemainingTime ()
 
string GetIcon ()
 
string GetTitleText ()
 
string GetDetailText ()
 
void UpdateRemainingTime (float updateInterval)
 
void SetTime (float time)
 DEPRECATED.
 

Variables

static const float NOTIFICATION_FADE_TIME = 3.0
 
enum NotificationType m_StaticData
 
float m_NotificationTime
 
float m_TimeRemaining
 
string m_DetailText
 

Enumeration Type Documentation

◆ NotificationType

DEPRECATED (moved into NotificationSystem)

Enumerator
FRIEND_CONNECTED 
INVITE_FAIL_SAME_SERVER 
JOIN_FAIL_GET_SESSION 
CONNECT_FAIL_GENERIC 
DISCONNECTED 
GENERIC_ERROR 
NOTIFICATIONS_END 

Definition at line 3 of file NotificationSystem.c.

4{
11 //Please add types before this item
13}
@ CONNECT_FAIL_GENERIC
@ NOTIFICATIONS_END
@ GENERIC_ERROR
@ INVITE_FAIL_SAME_SERVER
@ DISCONNECTED
@ FRIEND_CONNECTED
@ JOIN_FAIL_GET_SESSION

Function Documentation

◆ GetDetailText()

string GetDetailText ( )

Definition at line 55 of file NotificationSystem.c.

56 {
57 return m_DetailText;
58 }
string m_DetailText

References m_DetailText.

◆ GetIcon()

string GetIcon ( )

Definition at line 45 of file NotificationSystem.c.

46 {
47 return m_StaticData.m_Icon;
48 }
enum NotificationType m_StaticData

References m_StaticData.

Referenced by Container::GetFocusedIcon(), Container::GetIcon(), and Container::UpdateSelection().

◆ GetRemainingTime()

float GetRemainingTime ( )

Definition at line 40 of file NotificationSystem.c.

41 {
42 return m_TimeRemaining;
43 }
float m_TimeRemaining

References m_TimeRemaining.

◆ GetTime()

◆ GetTitleText()

string GetTitleText ( )

Definition at line 50 of file NotificationSystem.c.

51 {
52 return m_StaticData.m_TitleText;
53 }

References m_StaticData.

◆ NotificationRuntimeData()

void NotificationRuntimeData ( float time,
NotificationData data,
string detail_text )

◆ SetTime()

void SetTime ( float time)

DEPRECATED.

◆ UpdateRemainingTime()

void UpdateRemainingTime ( float updateInterval)

Definition at line 60 of file NotificationSystem.c.

61 {
63 }

References m_TimeRemaining.

Variable Documentation

◆ m_DetailText

string m_DetailText

Definition at line 21 of file NotificationSystem.c.

Referenced by GetDetailText(), and NotificationRuntimeData().

◆ m_NotificationTime

float m_NotificationTime

Definition at line 19 of file NotificationSystem.c.

Referenced by GetTime(), and NotificationRuntimeData().

◆ m_StaticData

◆ m_TimeRemaining

float m_TimeRemaining

◆ NOTIFICATION_FADE_TIME

const float NOTIFICATION_FADE_TIME = 3.0
static

Definition at line 1 of file NotificationSystem.c.