Elin Modding Docs Doc
Loading...
Searching...
No Matches
GridItemRecipe.cs
1using System;
2
3// Token: 0x02000507 RID: 1287
4public class GridItemRecipe : GridItem
5{
6 // Token: 0x06002280 RID: 8832 RVA: 0x000C029C File Offset: 0x000BE49C
7 public override void SetButton(ButtonGrid b)
8 {
9 b.mainText.text = "1";
10 b.mainText.SetActive(false);
11 this.r.renderRow.SetImage(b.icon, null, this.r.GetDefaultColor(), true, 0, 0);
12 b.SetTooltip("note", delegate(UITooltip t)
13 {
14 UINote note = t.note;
15 note.Clear();
16 note.AddHeaderCard(this.r.Name, null);
17 if (!this.r.GetDetail().IsEmpty())
18 {
19 note.AddText(this.r.GetDetail(), FontColor.DontChange);
20 note.Space(0, 1);
21 }
22 if (this.r.source.NeedFactory)
23 {
24 note.AddText("reqFactory".lang(this.r.source.NameFactory, null, null, null, null), FontColor.DontChange);
25 }
26 else
27 {
28 note.AddText("reqNoFactory".lang(), FontColor.DontChange);
29 }
30 note.Build();
31 }, true);
32 }
33
34 // Token: 0x06002281 RID: 8833 RVA: 0x000C0302 File Offset: 0x000BE502
35 public override void OnClick(ButtonGrid b)
36 {
37 }
38
39 // Token: 0x040011E0 RID: 4576
40 public Recipe r;
41}