protected override void FillTab() { var compToggleDef = ToggleDefCardUtility.GetCompToggleDef(SelThing); if (compToggleDef == null) { Log.Warning("selected thing has no CompToggleDef for ITab_ToggleDef"); return; } labelKey = compToggleDef.Props.labelKey; ToggleDefCardUtility.DrawCard(size, compToggleDef); }
protected override void UpdateSize() { base.UpdateSize(); var compToggleDef = ToggleDefCardUtility.GetCompToggleDef(SelThing); if (compToggleDef == null) { Log.Warning("selected thing has no CompToggleDef for ITab_ToggleDef"); return; } size = ToggleDefCardUtility.CardSize(compToggleDef); }