public void DoSettingsWindowContents(Rect inRect) { var scrollHeight = GetScrollHeight(); Rect rect = new Rect(inRect.x, inRect.y, inRect.width, inRect.height); Rect rect2 = new Rect(0f, 0f, rect.width - 60f, scrollHeight); Widgets.BeginScrollView(rect, ref scrollPosition, rect2, true); Listing_Standard listingStandard = new Listing_Standard(); listingStandard.Begin(rect2); listingStandard.CheckboxLabeled("PH.EnableProxyHeatEffectIndoors".Translate(), ref enableProxyHeatEffectIndoors); listingStandard.CheckboxLabeled("PH.AllowPlantGrowthInsideProxyHeatEffectRadius".Translate(), ref allowPlantGrowthInsideProxyHeatEffectRadius); listingStandard.End(); Widgets.EndScrollView(); SettingsApplier.ApplySettings(); base.Write(); }
public override void WriteSettings() { base.WriteSettings(); SettingsApplier.ApplySettings(); }