Elin Modding Docs Doc
All Classes Namespaces
ButtonGeneral.cs
1using System;
2using UnityEngine.UI;
3
4// Token: 0x02000500 RID: 1280
5public class ButtonGeneral : UIButton
6{
7 // Token: 0x06002245 RID: 8773 RVA: 0x000BEA30 File Offset: 0x000BCC30
8 public void SetCard(Card c, FontColor color = FontColor.Ignore)
9 {
10 if (this.portrait)
11 {
12 this.portrait.SetChara(c.Chara, null);
13 }
14 else
15 {
16 c.SetImage(this.icon);
17 }
18 this.mainText.SetText(c.Name, color);
19 }
20
21 // Token: 0x040011CA RID: 4554
22 public Image imageFrame;
23
24 // Token: 0x040011CB RID: 4555
25 public Portrait portrait;
26}
Definition Card.cs:13