Hi all,
Small issue im having with the inspect string on my auto heal casket, its extending the core sleep casket whos get inspect string simply returns some text and doesnt call base.getinspectstring so never hits thingwithcomponents so never gets the inspect string if you add comps to anything that extends the sleep casket, ive created a comp list in my heal casket class and filled on spawn setup:
The part of my spawnSetup()
However the strings always show "not connected to power" and "0 power needed".
The part of my getInspectString()
Any ideas what im missing or is this not possible due to the way the sleep casket im extending doesnt use base.getinspectstring().
Small issue im having with the inspect string on my auto heal casket, its extending the core sleep casket whos get inspect string simply returns some text and doesnt call base.getinspectstring so never hits thingwithcomponents so never gets the inspect string if you add comps to anything that extends the sleep casket, ive created a comp list in my heal casket class and filled on spawn setup:
The part of my spawnSetup()
Code Select
ThingComp thingComp = (ThingComp)Activator.CreateInstance(this.def.comps[i].compClass);
thingComp.parent = this;
thingComp.Initialize(this.def.comps[i]);
this.comps.Add(thingComp);
However the strings always show "not connected to power" and "0 power needed".
The part of my getInspectString()
Code Select
for (int i = 0; i < this.comps.Count; i++)
{
string text = this.comps[i].CompInspectStringExtra();
if (!text.NullOrEmpty())
{
stringBuilder.Append(text);
if (i < this.comps.Count - 1)
{
stringBuilder.AppendLine();
}
}
}
Any ideas what im missing or is this not possible due to the way the sleep casket im extending doesnt use base.getinspectstring().