private void AddEnabledDisasterCheckbox(IStronglyTypedUIHelper uiGroup, string label, string settingKey)
 {
     uiGroup.AddCheckBox(
         label,
         ModConfig.Instance.GetSetting <bool>(settingKey),
         isChecked => SaveSetting(settingKey, isChecked));
 }
예제 #2
0
 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);
 }