public static void AddLabeledSlider(this Listing_Standard listing_Standard, string label, ref float value, float leftValue, float rightValue) { listing_Standard.Gap(ListingStandardHelper.Gap); Rect rect; Rect rect2; listing_Standard.LineRectSpilter(out rect, out rect2, 0.5f, null); Widgets.Label(rect, label); float num = value; value = Widgets.HorizontalSlider(GenUI.BottomPart(rect2, 0.7f), num, leftValue, rightValue, false, null, null, null, -1f); }