16 if (!
ObjInfo.TempList.pos.Equals(_pos))
18 ObjInfo.TempList =
new ObjInfo();
30 return this.pos.sourceObj;
35 public static bool _CanInspect(
Point pos)
37 return pos.HasObj && (!pos.cell.HasFullBlock || pos.sourceObj.tileType.IsBlockMount);
42 public override bool CanInspect
46 return ObjInfo._CanInspect(this.pos);
52 public override string InspectName
56 string text = this.pos.cell.GetObjName() + (EClass.debug.showExtra ? (
" " + this.pos.cell.matObj.alias) :
"");
57 if (this.pos.growth !=
null)
59 if (this.pos.growth.CanHarvest())
61 return "growth_harvest".lang(text,
null,
null,
null,
null);
63 if (this.pos.growth.IsWithered())
65 return "growth_withered".lang(text,
null,
null,
null,
null);
67 if (this.pos.growth.IsMature)
69 return "growth_mature".lang(text,
null,
null,
null,
null);
77 public override void WriteNote(UINote n, Action<UINote> onWriteNote =
null,
IInspect.NoteMode mode =
IInspect.NoteMode.Default,
Recipe recipe =
null)
80 UIItem uiitem = n.AddHeaderCard(this.source.GetName(),
null);
81 this.source.SetImage(uiitem.image2,
null,
this.source.GetColorInt(
this.pos.cell.matObj),
true, 0, 0);
82 n.AddText(
"isMadeOf".lang(this.source.GetText(
"name",
false),
null,
null,
null,
null), FontColor.DontChange);