Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }