DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ AddNotificationExtended()

static void NotificationSystem::AddNotificationExtended ( float show_time,
string title_text,
string detail_text = "",
string icon = "" )
inlinestaticprotected

Send custom notification from to local player.

Аргументы
show_timeamount of time this notification is displayed
title_textthe title text that is displayed in the notification
detail_textadditional text that can be added to the notification under the title - will not display additional text if not set
iconthe icon that is displayed in the notification - will use default icon if not set

См. определение в файле NotificationSystem.c строка 215

216 {
217 if (m_Instance.m_TimeArray.Count() < MAX_NOTIFICATIONS)
218 {
219 NotificationData tempData = new NotificationData(icon, title_text);
220 NotificationRuntimeData data = new NotificationRuntimeData(show_time, tempData, detail_text);
221
222 m_Instance.m_TimeArray.Insert(data);
223 m_Instance.m_OnNotificationAdded.Invoke(data);
224 }
225 else
226 {
227 NotificationData tempDataDeferred = new NotificationData(icon, title_text);
228 NotificationRuntimeData dataDeferred = new NotificationRuntimeData(show_time, tempDataDeferred, detail_text);
229 m_Instance.m_DeferredArray.Insert(dataDeferred);
230 }
231 }
void NotificationRuntimeData(float time, NotificationData data, string detail_text)
Определения NotificationSystem.c:23
static ref NotificationSystem m_Instance
Определения NotificationSystem.c:79
static const int MAX_NOTIFICATIONS
Определения NotificationSystem.c:75

Перекрестные ссылки m_Instance, MAX_NOTIFICATIONS и NotificationRuntimeData().

Используется в CGame::OnRPC().