9 this.renderer = _renderer;
14 public void UpdateImage()
16 if (!
EMono.core.IsGameStarted)
20 if (this.renderer !=
null)
22 this.renderer.RenderToRenderCam(this.param);
40 public void SetElement(
Element e)
42 e.WriteNote(this.note,
null,
null);
46 public void SetThing(
Thing t)
48 t.WriteNote(this.note,
null,
IInspect.NoteMode.Info,
null);
53 public void UpdateRecipe(
Recipe r)
55 this.SetRenderer(r.GetRenderer(), r.renderRow.GetRenderParam(r.GetColorMaterial(), 0,
null, -1));
59 public void SetRecipe(
Recipe r)
63 this.note.AddHeaderCard(r.Name,
null);
64 this.note.AddText(r.source.GetDetail(), FontColor.DontChange);
65 this.note.Space(0, 1);
66 this.note.AddHeaderTopic(
"buildType".lang() +
": " + r.tileType.LangPlaceType.lang(),
null);
67 this.note.AddText((r.tileType.LangPlaceType +
"_hint").lang(), FontColor.DontChange);
68 this.note.Space(0, 1);
69 this.note.AddHeaderTopic(
"reqMat".lang(),
null);
74 public void SetBlock(
Cell cell)
76 string blockName = cell.GetBlockName();
77 RenderParam renderParam = cell.sourceBlock.GetRenderParam(cell.matBlock, 0,
null, -1);
78 this.SetRenderer(cell.sourceBlock.renderData, renderParam);
79 this.note.AddHeaderCard(blockName,
null).image2.SetActive(
false);
80 this.note.AddText(
"isMadeOf".lang(cell.matBlock.GetText(
"name",
false),
null,
null,
null,
null), FontColor.DontChange);
85 public void SetFloor(
Cell cell)
87 string floorName = cell.GetFloorName();
88 RenderParam renderParam = cell.sourceFloor.GetRenderParam(cell.matFloor, 0,
null, -1);
89 this.SetRenderer(cell.sourceFloor.renderData, renderParam);
90 this.note.AddHeaderCard(floorName,
null).image2.SetActive(
false);
91 this.note.AddText(
"isMadeOf".lang(cell.matFloor.GetText(
"name",
false),
null,
null,
null,
null), FontColor.DontChange);
96 public void SetLiquid(
Cell cell)
98 string liquidName = cell.GetLiquidName();
99 RenderParam renderParam = cell.sourceEffect.GetRenderParam(cell.matFloor, 0,
null, -1);
100 this.SetRenderer(cell.sourceEffect.renderData, renderParam);
101 this.note.AddHeaderCard(liquidName,
null).image2.SetActive(
false);
102 this.note.AddText(
"isMadeOf".lang(cell.sourceEffect.GetText(
"name",
false),
null,
null,
null,
null), FontColor.DontChange);
107 public void SetObj(
Cell cell)
110 RenderParam renderParam = cell.sourceObj.GetRenderParam(cell.matBlock, 0,
null, -1);
111 this.SetRenderer(sourceObj.renderData, renderParam);
112 this.note.AddHeaderCard(base.name,
null).image2.SetActive(
false);
113 this.note.AddText(
"isMadeOf".lang(sourceObj.DefaultMaterial.GetText(
"name",
false),
null,
null,
null,
null), FontColor.DontChange);