private void DrawSetting(Listing_Standard list, IMachineSetting s) { var rect = list.GetRect(s.GetHeight()); var inList = new Listing_Standard(); inList.Begin(rect.RightPartPixels(rect.width - 50f)); s.DrawModSetting(inList); inList.End(); }
private void DrawTier(Listing_Standard list, IMachineSetting s, int tier) { var rect = list.GetRect(s.GetHeight() + 42f); var inList = new Listing_Standard(); inList.Begin(rect.RightPartPixels(rect.width - 50f)); Text.Font = GameFont.Medium; Widgets.Label(inList.GetRect(30f), "Tier " + tier); inList.GapLine(); Text.Font = GameFont.Small; s.DrawModSetting(inList); inList.End(); }