22 m_Root =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/notifications/notifications.layout");
55 if (
data.GetIcon() !=
"")
56 icon.LoadImageFile(0,
data.GetIcon());
59 if (
data.GetDetailText() !=
"")
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
void NotificationRuntimeData(float time, NotificationData data, string detail_text)
const float NOTIFICATION_FADE_TIME
static NotificationSystem GetInstance()
ref Widget m_VoiceContent
ref map< NotificationRuntimeData, Widget > m_Notifications
void AddNotification(NotificationRuntimeData data)
ref map< string, Widget > m_VoiceNotifications
void UpdateTargetHeight()
void AddVoiceNotification(string player, string name)
void RemoveNotification(NotificationRuntimeData data)
ref Widget m_NotificationContent
void Update(float timeslice)
ref map< string, Widget > m_WidgetTimers
void ClearVoiceNotifications()
void RemoveVoiceNotification(string player)
proto native CGame GetGame()
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto float SmoothCD(float val, float target, inout float velocity[], float smoothTime, float maxVelocity, float dt)
Does the CD smoothing function - easy in | easy out / S shaped smoothing.