public void Remove(MyHudNotificationBase notification) { if (notification == null) { return; } var group = GetNotificationGroup(notification.Priority); //Debug.Assert(group.Contains(notification)); group.Remove(notification); }
public void Add(MyHudNotificationBase notification) { Debug.Assert(notification != null); Debug.Assert(notification.Priority <= MAX_PRIORITY); Debug.Assert(notification.Priority >= 0); var group = GetNotificationGroup(notification.Priority); if (!group.Contains(notification)) { notification.BeforeAdd(); group.Add(notification); } notification.ResetAliveTime(); }
private bool IsDrawn(MyHudNotificationBase notification) { bool isDrawn = notification.Alive; if (notification.IsControlsHint) { isDrawn = isDrawn && MySandboxGame.Config.ControlsHints; } if (MyHud.MinimalHud && notification.Level != MyNotificationLevel.Important) { isDrawn = false; } return(isDrawn); }
private bool IsDrawn(MyHudNotificationBase notification) { bool isDrawn = notification.Alive; if (notification.IsControlsHint) isDrawn = isDrawn && MySandboxGame.Config.ControlsHints; if (MyHud.MinimalHud && notification.Level != MyNotificationLevel.Important) isDrawn = false; return isDrawn; }
public void Register(MyNotificationSingletons singleton, MyHudNotificationBase notification) { m_singletons[(int)singleton] = notification; }
public void Remove(MyHudNotificationBase notification) { if (notification == null) return; var group = GetNotificationGroup(notification.Priority); //Debug.Assert(group.Contains(notification)); group.Remove(notification); }
public void Add(MyHudNotificationBase notification) { Debug.Assert(notification != null); Debug.Assert(notification.Priority <= MAX_PRIORITY); Debug.Assert(notification.Priority >= 0); var group = GetNotificationGroup(notification.Priority); if (!group.Contains(notification)) { notification.BeforeAdd(); group.Add(notification); } notification.ResetAliveTime(); }
public void Register(MyNotificationSingletons singleton, MyHudNotificationBase notification) { m_singletons[(int)singleton] = notification; }