private void SetNotificationTextAndArgs(MyNotificationSingletons type, MyStringId textId, params object[] args) { var notification = Get(type) as MyHudNotification; notification.Text = textId; notification.SetTextFormatArguments(args); Add(notification); }
public MyHudNotificationBase Get(MyNotificationSingletons singleNotification) { return m_singletons[(int)singleNotification]; }
public void Remove(MyNotificationSingletons singleNotification) { Remove(m_singletons[(int)singleNotification]); }
public void Add(MyNotificationSingletons singleNotification) { Add(m_singletons[(int)singleNotification]); }
public void Register(MyNotificationSingletons singleton, MyHudNotificationBase notification) { m_singletons[(int)singleton] = notification; }
public MyHudNotificationBase Get(MyNotificationSingletons singleNotification) { return(m_singletons[(int)singleNotification]); }