protected override void UpdateSize() { base.UpdateSize(); this.UpdateItemsList(); this.size = CaravanPeopleAndItemsTabUtility.GetSize(this.items, this.PaneTopY, true); this.items.Clear(); }
protected override void UpdateSize() { base.UpdateSize(); this.AddPawnsToTmpThings(); base.size = CaravanPeopleAndItemsTabUtility.GetSize(WITab_Caravan_Needs.tmpThings, this.PaneTopY, true); if (base.size.x + this.SpecificNeedsTabWidth > (float)UI.screenWidth) { this.doNeeds = false; base.size = CaravanPeopleAndItemsTabUtility.GetSize(WITab_Caravan_Needs.tmpThings, this.PaneTopY, false); } else { this.doNeeds = true; } ref Vector2 size = ref base.size;
protected override void UpdateSize() { base.UpdateSize(); this.AddPawnsToTmpThings(); this.size = CaravanPeopleAndItemsTabUtility.GetSize(WITab_Caravan_Needs.tmpThings, this.PaneTopY, true); if (this.size.x + this.SpecificNeedsTabWidth > (float)UI.screenWidth) { this.doNeeds = false; this.size = CaravanPeopleAndItemsTabUtility.GetSize(WITab_Caravan_Needs.tmpThings, this.PaneTopY, false); } else { this.doNeeds = true; } this.size.y = Mathf.Max(this.size.y, NeedsCardUtility.FullSize.y); WITab_Caravan_Needs.tmpThings.Clear(); }