Elin Modding Docs Doc
Loading...
Searching...
No Matches
UICardInfo.cs
1using System;
2
3// Token: 0x0200050D RID: 1293
4public class UICardInfo : EMono
5{
6 // Token: 0x060022A0 RID: 8864 RVA: 0x000C0D1B File Offset: 0x000BEF1B
7 public void SetRenderer(IRenderer _renderer, RenderParam p)
8 {
9 this.renderer = _renderer;
10 this.param = p;
11 }
12
13 // Token: 0x060022A1 RID: 8865 RVA: 0x000C0D2B File Offset: 0x000BEF2B
14 public void UpdateImage()
15 {
16 if (!EMono.core.IsGameStarted)
17 {
18 return;
19 }
20 if (this.renderer != null)
21 {
22 this.renderer.RenderToRenderCam(this.param);
23 }
24 }
25
26 // Token: 0x060022A2 RID: 8866 RVA: 0x000C0D53 File Offset: 0x000BEF53
27 public void Build()
28 {
29 this.note.Build();
30 this.UpdateImage();
31 }
32
33 // Token: 0x060022A3 RID: 8867 RVA: 0x000C0D66 File Offset: 0x000BEF66
34 private void Update()
35 {
36 this.UpdateImage();
37 }
38
39 // Token: 0x060022A4 RID: 8868 RVA: 0x000C0D6E File Offset: 0x000BEF6E
40 public void SetElement(Element e)
41 {
42 e.WriteNote(this.note, null, null);
43 }
44
45 // Token: 0x060022A5 RID: 8869 RVA: 0x000C0D7E File Offset: 0x000BEF7E
46 public void SetThing(Thing t)
47 {
48 t.WriteNote(this.note, null, IInspect.NoteMode.Info, null);
49 this.Build();
50 }
51
52 // Token: 0x060022A6 RID: 8870 RVA: 0x000C0D95 File Offset: 0x000BEF95
53 public void UpdateRecipe(Recipe r)
54 {
55 this.SetRenderer(r.GetRenderer(), r.renderRow.GetRenderParam(r.GetColorMaterial(), 0, null, -1));
56 }
57
58 // Token: 0x060022A7 RID: 8871 RVA: 0x000C0DB8 File Offset: 0x000BEFB8
59 public void SetRecipe(Recipe r)
60 {
61 this.UpdateRecipe(r);
62 this.note.Clear();
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);
70 this.Build();
71 }
72
73 // Token: 0x060022A8 RID: 8872 RVA: 0x000C0E94 File Offset: 0x000BF094
74 public void SetBlock(Cell cell)
75 {
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);
81 this.Build();
82 }
83
84 // Token: 0x060022A9 RID: 8873 RVA: 0x000C0F1C File Offset: 0x000BF11C
85 public void SetFloor(Cell cell)
86 {
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);
92 this.Build();
93 }
94
95 // Token: 0x060022AA RID: 8874 RVA: 0x000C0FA4 File Offset: 0x000BF1A4
96 public void SetLiquid(Cell cell)
97 {
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);
103 this.Build();
104 }
105
106 // Token: 0x060022AB RID: 8875 RVA: 0x000C102C File Offset: 0x000BF22C
107 public void SetObj(Cell cell)
108 {
109 SourceObj.Row sourceObj = cell.sourceObj;
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);
114 this.Build();
115 }
116
117 // Token: 0x040011F4 RID: 4596
118 public UINote note;
119
120 // Token: 0x040011F5 RID: 4597
121 public IRenderer renderer;
122
123 // Token: 0x040011F6 RID: 4598
124 public RenderParam param;
125}
Definition Cell.cs:10
Definition EMono.cs:6
Definition Thing.cs:10