private void AddEnabledDisasterCheckbox(IStronglyTypedUIHelper uiGroup, string label, string settingKey) { uiGroup.AddCheckBox( label, ModConfig.Instance.GetSetting <bool>(settingKey), isChecked => SaveSetting(settingKey, isChecked)); }
private void AddCheckBox(IStronglyTypedUIHelper group, string label, string settingKey, string localeId) { group.AddCheckBox( label, ModConfig.Get(settingKey), isChecked => { ModConfig.Save(settingKey, isChecked); filterService.UpdateFilters(); }) .WithTooltipLocaleId(localeId); }