public Dialog_UpdateFeatures(List <UpdateFeatureDef> featureDefs, UpdateFeatureManager.IgnoredNewsIds ignoredNewsProviders)
 {
     this.ignoredNewsProviders = ignoredNewsProviders;
     closeOnCancel             = true;
     doCloseButton             = true;
     doCloseX   = true;
     forcePause = true;
     draggable  = true;
     absorbInputAroundWindow = false;
     resizeable = false;
     GenerateDrawableEntries(featureDefs);
 }
Example #2
0
 // TodoMajor: Replace List with IEnumerable
 public Dialog_UpdateFeatures(List <UpdateFeatureDef> featureDefs, UpdateFeatureManager.IgnoredNewsIds ignoredNewsProviders)
 {
     this.ignoredNewsProviders = ignoredNewsProviders;
     closeOnCancel             = true;
     doCloseButton             = false;
     doCloseX   = true;
     forcePause = true;
     draggable  = true;
     absorbInputAroundWindow = false;
     resizeable    = false;
     linkTextWidth = GetLinkTextWidth() + EntryTitleLinkPadding * 2f;
     InstallUpdateFeatureDefs(featureDefs);
 }
Example #3
0
 public Dialog_UpdateFeaturesFiltered(List <UpdateFeatureDef> featureDefs,
                                      UpdateFeatureManager.IgnoredNewsIds ignoredNewsProviders,
                                      IUpdateFeaturesDevActions news, IModSpotterDevActions spotter)
     : base(FilterOutIgnoredProviders(featureDefs, ignoredNewsProviders), ignoredNewsProviders)
 {
     fullDefList = featureDefs;
     this.ignoredNewsProviders = ignoredNewsProviders;
     filterButtonLabel         = "HugsLib_features_filterBtn".Translate();
     allModsFilterLabel        = "HugsLib_features_filterAllMods".Translate();
     currentFilterReadout      = "HugsLib_features_filterStatus".Translate();
     dropdownEntryTemplate     = "HugsLib_features_filterDropdownEntry".Translate();
     ignoredModLabelSuffix     = "HugsLib_features_filterIgnoredModSuffix".Translate();
     defFilter = new UpdateFeatureDefFilteringProvider(featureDefs);
     devMenu   = new UpdateFeaturesDevMenu(news, spotter, new PlayerMessageSender());
     devMenu.UpdateFeatureDefsReloaded += DevMenuDefsReloadedHandler;
     AdjustButtonSizeToLabel();
 }