예제 #1
0
 public static void Init()
 {
     if (Instance == null)
     {
         Instance             = new HudUtilities();
         Instance.TestPattern = new UiTestPattern();
         Instance.TestPattern.Hide();
     }
 }
예제 #2
0
        /// <summary>
        /// Finishes initialization upon retrieval of configuration information.
        /// </summary>
        private void InitFinish(ConfigData cfg)
        {
            if (!init && initStart)
            {
                Cfg = cfg.general;
                Binds.Init(cfg.binds);
                ChatCommands.Init(cmdPrefix);
                HudUtilities.Init();
                SettingsMenu.Init();
                PropertiesMenu.Init(cfg.menu);
                PropertyBlock.Cfg = cfg.propertyBlock;

                init = true;
                MyAPIGateway.Utilities.ShowMessage("Build Vision 2", $"Type {cmdPrefix} help for help. All settings are now available through the Mod Menu.");
            }
        }