14 this.portrait.SetChara(c,
null);
17 this.portrait.imageChara.transform.localScale =
new Vector3(1.4f, 1.4f, 1f);
18 this.portrait.imageChara.rectTransform.anchoredPosition =
new Vector2(45f, -120f);
20 this.textName.text = c.NameBraced;
21 this.textJob.text = c.job.GetName();
22 this.textBio.text = c.bio.TextBio(c);
23 using (List<Element>.Enumerator enumerator = c.elements.ListBestSkills().GetEnumerator())
25 while (enumerator.MoveNext())
28 HintIcon hintIcon = Util.Instantiate<HintIcon>(
"UI/Element/Item/Tag Skill", this.layoutTag);
29 hintIcon.text.SetText(e.Name);
30 hintIcon.text2.SetText(e.Value.ToString() ??
"");
31 hintIcon.tooltip.onShowTooltip = delegate(UITooltip t)
33 e.WriteNote(t.note,
this.chara.elements,
null);
35 hintIcon.RebuildLayout(
false);
38 this.textResult.SetActive(
false);
39 this.buttonGet.onClick.AddListener(delegate()
41 EMono.Sound.Play(
"good");
44 this.buttonDump.tooltip.text =
"gachaDump".lang(this.GetMedal().ToString() ??
"",
null,
null,
null,
null);
45 this.buttonDump.onClick.AddListener(delegate()
47 EMono.Sound.Play(
"pay");
50 this.textHobby.text = c.GetTextHobby(
false);
51 this.textWork.text = c.GetTextWork(
false);
52 this.textLifeStyle.text =
"lifestyle".lang() +
": " + (
"lifestyle_" + c.idTimeTable).lang();
62 public void Confirm(
bool add)
64 this.textResult.SetActive(
true);
65 this.textResult.SetText(add ?
"Get!" :
"Discarded", add ? FontColor.Good : FontColor.Bad);
66 this.buttonDump.SetActive(
false);
67 this.buttonGet.SetActive(
false);
68 this.layer.items.Remove(
this);
71 EMono.Home.AddReserve(this.chara);
72 Msg.Say(
"gachaAdd", this.chara,
null,
null,
null);
76 EMono.pc.ModCurrency(this.GetMedal(),
"medal");
78 if (this.layer.items.Count == 0)
85 public UIButton buttonGet;
88 public UIButton buttonDump;
97 public UIText textName;
100 public UIText textBio;
103 public UIText textJob;
106 public UIText textDetail;
109 public UIText textResult;
112 public UIText textHobby;
115 public UIText textWork;
118 public UIText textLifeStyle;
124 public LayoutGroup layoutTag;