Inspector tabs are resolved in PostLoad() instead of ResolveReferences()

Started by System.Linq, July 07, 2017, 11:55:16 PM

Previous topic - Next topic

System.Linq

From ThingDef.PostLoad():


if (this.inspectorTabs != null)
{
for (int i = 0; i < this.inspectorTabs.Count; i++)
{
if (this.inspectorTabsResolved == null)
{
this.inspectorTabsResolved = new List<InspectTabBase>();
}
try
{
this.inspectorTabsResolved.Add(InspectTabManager.GetSharedInstance(this.inspectorTabs[i]));
}
catch (Exception ex)
{
Log.Error(string.Concat(new object[]
{
"Could not instantiate inspector tab of type ",
this.inspectorTabs[i],
": ",
ex
}));
}
}
}

ison

Okay, I think ResolveReferences() is a bit better place, so I've moved it there. Thanks.