/// <summary> /// Initializes a new instance of the <see cref="RadarZoom"/> class. /// </summary> public RadarZoom() { // Subscribe to events. Tick += OnTick; KeyDown += OnKeyDown; RadarZoomSettings.LoadSettings(); // Initialize the settings menu settingsMenu = new SettingsMenu(); // Initialize the menu pool. menuPool = new MenuPool(); menuPool.Add(settingsMenu.Menu); // Let the user know that the mod has loaded. UI.Notify("Loaded RadarZoom."); }
private void SettingsMenu_OnMenuClose(UIMenu sender) { RadarZoomSettings.SaveSettings(); }