// buffers; public void DoWindowContents(Rect rect) { var options = new Listing_Standard(); options.Begin(rect); options.TextFieldNumericLabeled <int>("WorkTab.MaxPriority".Translate(), ref maxPriority, maxPriority.ToString(), 4, 9, "WorkTab.MaxPriorityTip".Translate(), 1 / 8f); options.CheckboxLabeled("WorkTab.ShowPriorityColors".Translate(), ref showPriorityColors, "WorkTab.PriorityColorsTip".Translate()); if (showPriorityColors) { options.ColorBoxes(ref priorityColors, "WorkTab.PriorityColorsTip".Translate()); } options.CheckboxLabeled("WorkTab.24HourMode".Translate(), ref TwentyFourHourMode, "WorkTab.24HourModeTip".Translate()); options.CheckboxLabeled("WorkTab.PlaySounds".Translate(), ref playSounds, "WorkTab.PlaySoundsTip".Translate()); playCrunch = playSounds && playCrunch; // disabling sounds also disables crunch. options.CheckboxLabeled("WorkTab.PlayCrunch".Translate(), ref playCrunch, !playSounds, "WorkTab.PlayCrunchTip".Translate()); options.CheckboxLabeled("WorkTab.DisableScrollwheel".Translate(), ref disableScrollwheel, "WorkTab.DisableScrollwheelTip".Translate()); bool verticalLabelsBuffer = verticalLabels; options.CheckboxLabeled("WorkTab.VerticalLabels".Translate(), ref verticalLabelsBuffer, "WorkTab.VerticalLabelsTip".Translate()); // options.CheckboxLabeled( "WorkTab.SharedFavourites".Translate(), ref sharedFavourites, // "WorkTab.SharedFavouritesTip".Translate() ); // vertical labels mess up unity's font positioning, and causes anti-aliasing blur // setting the filtermode to point removes the blur, but causes slight jitter in letter positioning. // I still think it's the lesser of two evils... bool _fontFixBuffer = _fontFix; options.CheckboxLabeled("WorkTab.FontFix".Translate(), ref _fontFixBuffer, "WorkTab.FontFixTip".Translate()); _fontFixBuffer = verticalLabels && _fontFixBuffer; // disabling vertical labels makes the font fix unnecesary. options.CheckboxLabeled("WorkTab.ignoreZeroSubPriorities".Translate(), ref ignoreZeroSubPriorities, "WorkTab.ignoreZeroSubPrioritiesTip".Translate()); // apply any changes. if (_fontFixBuffer != _fontFix) { ApplyFontFix(_fontFixBuffer); } if (verticalLabelsBuffer != verticalLabels) { verticalLabels = verticalLabelsBuffer; MainTabWindow_WorkTab.Instance?.Table?.SetDirty(); } options.End(); }