예제 #1
0
        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);
        }
예제 #2
0
        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);
        }