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; }
public static void Init() { if (_instance == null) { _instance = new BvBinds(); Cfg = BvConfig.Current.binds; BvConfig.OnConfigSave += _instance.UpdateConfig; BvConfig.OnConfigLoad += _instance.UpdateBinds; _instance.UpdateBindProperties(); } }
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(); } }