예제 #1
0
        public override void Close()
        {
            BvConfig.OnConfigSave -= UpdateConfig;
            BvConfig.OnConfigLoad -= UpdateBinds;
            Instance = null;

            Blueprint  = null;
            OpenBpList = null;

            MultXOrMouse = null;
            MultY        = null;
            MultZ        = null;

            OpenWheel = null;
            OpenList  = null;

            StartDupe       = null;
            StopDupe        = null;
            ToggleDupe      = null;
            SelectAll       = null;
            CopySelection   = null;
            PasteProperties = null;
            UndoPaste       = null;

            Select     = null;
            Cancel     = null;
            ScrollUp   = null;
            ScrollDown = null;
        }
예제 #2
0
        public static void Init()
        {
            if (_instance == null)
            {
                _instance = new BvBinds();
                Cfg       = BvConfig.Current.binds;

                BvConfig.OnConfigSave += _instance.UpdateConfig;
                BvConfig.OnConfigLoad += _instance.UpdateBinds;

                _instance.UpdateBindProperties();
            }
        }
예제 #3
0
        private void HudInit()
        {
            if (ExceptionHandler.IsClient)
            {
                CanUpdate = true;

                BvBinds.Init();
                BvConfig.Load();
                AddChatCommands();
                InitSettingsMenu();
                TerminalUtilities.Init();
                QuickActionHudSpace.Init();

                if (BvConfig.WasConfigOld)
                {
                    RichHudTerminal.OpenToPage(helpMain);
                }

                BvConfig.OnConfigLoad += UpdateBindPageVisibility;
                UpdateBindPageVisibility();
            }
        }