示例#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");
            }
        }
示例#2
0
 public void OnDisabled()
 {
     ModLogger.Debug("WorkshopMonitor mod disabled");
     this.Unload();
 }
示例#3
0
 public void OnEnabled()
 {
     _settingsFilePath = ModPaths.GetConfigurationFilePath();
     Load();
     ModLogger.Debug("WorkshopMonitor mod enabled");
 }