Пример #1
0
        private void SetNotificationTextAndArgs(MyNotificationSingletons type, MyStringId textId, params object[] args)
        {
            var notification = Get(type) as MyHudNotification;

            notification.Text = textId;
            notification.SetTextFormatArguments(args);
            Add(notification);
        }
Пример #2
0
 public MyHudNotificationBase Get(MyNotificationSingletons singleNotification)
 {
     return m_singletons[(int)singleNotification];
 }
Пример #3
0
 public void Remove(MyNotificationSingletons singleNotification)
 {
     Remove(m_singletons[(int)singleNotification]);
 }
Пример #4
0
 public void Add(MyNotificationSingletons singleNotification)
 {
     Add(m_singletons[(int)singleNotification]);
 }
Пример #5
0
 private void SetNotificationTextAndArgs(MyNotificationSingletons type, MyStringId textId, params object[] args)
 {
     var notification = Get(type) as MyHudNotification;
     notification.Text = textId;
     notification.SetTextFormatArguments(args);
     Add(notification);
 }
Пример #6
0
 public void Register(MyNotificationSingletons singleton, MyHudNotificationBase notification)
 {
     m_singletons[(int)singleton] = notification;
 }
Пример #7
0
 public MyHudNotificationBase Get(MyNotificationSingletons singleNotification)
 {
     return(m_singletons[(int)singleNotification]);
 }
Пример #8
0
 public void Remove(MyNotificationSingletons singleNotification)
 {
     Remove(m_singletons[(int)singleNotification]);
 }
Пример #9
0
 public void Add(MyNotificationSingletons singleNotification)
 {
     Add(m_singletons[(int)singleNotification]);
 }
Пример #10
0
 public void Register(MyNotificationSingletons singleton, MyHudNotificationBase notification)
 {
     m_singletons[(int)singleton] = notification;
 }