Example #1
0
            public NotifHud(NotifHudConfig cfg)
            {
                Cfg = cfg;

                header = MyAPIGateway.Utilities.CreateNotification("");
                list   = new IMyHudNotification[cfg.maxVisible];
            }
Example #2
0
        public void Validate()
        {
            if (apiHudConfig != null)
            {
                apiHudConfig.Validate();
            }
            else
            {
                apiHudConfig = ApiHudConfig.Defaults;
            }

            if (fallbackHudConfig != null)
            {
                fallbackHudConfig.Validate();
            }
            else
            {
                fallbackHudConfig = NotifHudConfig.Defaults;
            }
        }