Beispiel #1
0
        public void OnSettingsUI(UIHelperBase helper)
        {
            UIHelper uiHelper = helper as UIHelper;

            if (uiHelper != null)
            {
                var optionsPanel = new UIModOptionsPanelBuilder(uiHelper, _configuration);
                optionsPanel.CreateUI();
                ModLogger.Debug("Options panel created");
            }
            else
            {
                ModLogger.Warning("Could not populate the settings panel, helper is null or not a UIHelper");
            }
        }
Beispiel #2
0
 public void OnDisabled()
 {
     ModLogger.Debug("WorkshopMonitor mod disabled");
     this.Unload();
 }
Beispiel #3
0
 public void OnEnabled()
 {
     _settingsFilePath = ModPaths.GetConfigurationFilePath();
     Load();
     ModLogger.Debug("WorkshopMonitor mod enabled");
 }