public override void DefsLoaded() { TrackingVisible = Settings.GetHandle("trackingVisible", "trackingVisible_title".Translate(), "trackingVisible_desc".Translate(), true); TrackingForbidden = Settings.GetHandle("trackingForbidden", "trackingForbidden_title".Translate(), "trackingForbidden_desc".Translate(), false); ZoomForVisibleTracking = Settings.GetHandle("zoomForTracking", "zoomForTracking_title".Translate(), "zoomForTracking_desc".Translate(), CameraZoomRange.Middle, null, "zoomForTracking_"); VisibilityMargin = Settings.GetHandle("visibilityMargin", "visibilityMargin_title".Translate(), "visibilityMargin_desc".Translate(), 100, Validators.IntRangeValidator(0, UI.screenHeight / 2)); VisibilityMargin.SpinnerIncrement = 10; ClampTipToScreen = Settings.GetHandle("clampTipToScreen", "clampTipToScreen_title".Translate(), "clampTipToScreen_desc".Translate(), true); TooltipClampMargin = Settings.GetHandle("clampMargin", "clampMargin_title".Translate(), "clampMargin_desc".Translate(), 10, Validators.IntRangeValidator(0, UI.screenHeight / 2)); TooltipClampMargin.SpinnerIncrement = 10; HighlightOpacity = Settings.GetHandle("highlightOpacity", "highlightOpacity_title".Translate(), "highlightOpacity_desc".Translate(), 0.10f); HighlightOpacity.CustomDrawer = OpacityCustomDrawer; ShowRowToolTips = Settings.GetHandle("showTips", "showTips_title".Translate(), "showTips_desc".Translate(), true); CountInStorage = Settings.GetHandle("countInStorage", "countInStorage_title".Translate(), "countInStorage_desc".Translate(), false); CountForbidden = Settings.GetHandle("countForbidden", "countForbidden_title".Translate(), "countForbidden_desc".Translate(), false); ResolveTipPositionHandlers(); TransferSelection = Settings.GetHandle("transferSel", "transferSel_title".Translate(), "transferSel_desc".Translate(), true); ShouldDrawTooltip = Settings.GetHandle("shouldDrawTooltip", "", "", false); ShouldDrawTooltip.NeverVisible = true; BlueprintSelectionTransferer.transferring = TransferSelection; TotalsTipDrawer.ResolveSettings(); }
public override void SettingsChanged() { TotalsTipDrawer.ResolveSettings(); BlueprintSelectionTransferer.transferring = TransferSelection; }