コード例 #1
0
        protected override void FillTab()
        {
            this.thingsToSelect.Clear();
            Rect outRect = new Rect(default(Vector2), this.size).ContractedBy(10f);

            outRect.yMin += 20f;
            Rect rect = new Rect(0f, 0f, outRect.width - 16f, Mathf.Max(this.lastDrawnHeight, outRect.height));

            Widgets.BeginScrollView(outRect, ref this.scrollPosition, rect, true);
            float  num    = 0f;
            string status = ((LordJob_FormAndSendCaravan)base.SelPawn.GetLord().LordJob).Status;

            Widgets.Label(new Rect(0f, num, rect.width, 100f), status);
            num += 22f;
            num += 4f;
            this.DoPeopleAndAnimals(rect, ref num);
            num += 4f;
            this.DoItemsLists(rect, ref num);
            this.lastDrawnHeight = num;
            Widgets.EndScrollView();
            if (this.thingsToSelect.Any <Thing>())
            {
                ITab_Pawn_FormingCaravan.SelectNow(this.thingsToSelect);
                this.thingsToSelect.Clear();
            }
        }
コード例 #2
0
        protected override void FillTab()
        {
            this.thingsToSelect.Clear();
            Rect outRect = new Rect(default(Vector2), this.size).ContractedBy(10f);

            outRect.yMin += 20f;
            Rect rect = new Rect(0f, 0f, outRect.width - 16f, Mathf.Max(this.lastDrawnHeight, outRect.height));

            Widgets.BeginScrollView(outRect, ref this.scrollPosition, rect, true);
            float num = 0f;

            this.DoItemsLists(rect, ref num);
            this.lastDrawnHeight = num;
            Widgets.EndScrollView();
            if (this.thingsToSelect.Any <Thing>())
            {
                ITab_Pawn_FormingCaravan.SelectNow(this.thingsToSelect);
                this.thingsToSelect.Clear();
            }
        }
コード例 #3
0
        protected override void FillTab()
        {
            thingsToSelect.Clear();
            Rect outRect = new Rect(default(Vector2), size).ContractedBy(10f);

            outRect.yMin += 20f;
            Rect rect = new Rect(0f, 0f, outRect.width - 16f, Mathf.Max(lastDrawnHeight, outRect.height));

            Text.Font = GameFont.Small;
            Widgets.BeginScrollView(outRect, ref scrollPosition, rect);
            float curY = 0f;

            DoItemsLists(rect, ref curY);
            lastDrawnHeight = curY;
            Widgets.EndScrollView();
            if (thingsToSelect.Any())
            {
                ITab_Pawn_FormingCaravan.SelectNow(thingsToSelect);
                thingsToSelect.Clear();
            }
        }