8 public void SetQuest(
Quest q)
10 this.portrait.SetPerson(q.person);
11 this.button.mainText.text = (
EMono.game.quests.list.Contains(q) ?
"questInProgress".lang().TagColor(FontColor.Good,
null) :
"") + q.TitlePrefix + q.GetTitle();
12 this.button.subText.text = q.person.NameBraced;
13 this.textDate.SetText(
Date.GetText(q.Hours));
14 this.textDate.transform.parent.RebuildLayout(
false);
15 this.textReward.SetText(q.GetRewardText());
16 string text = q.GetDetail(
false);
18 if (questSupply !=
null && questSupply.GetDestThing() !=
null)
20 text =
"questSupplyOwned".lang().TagColor(FontColor.Good,
null) + text;
22 this.textDetail.SetText(text);
23 this.imageNew.SetActive(q.isNew);
25 this.textDifficulty.SetText(
"★".Repeat(q.difficulty));
26 this.textDifficulty.SetActive(q.IsRandomQuest);
27 string textExtra = q.TextExtra;
28 this.textDanger.SetActive(!textExtra.IsEmpty());
29 this.textDanger.SetText(textExtra);
36 public UIButton button;
39 public UIText textDetail;
42 public UIText textReward;
45 public UIText textDate;
48 public UIText textDifficulty;
51 public UIText textDanger;
54 public Image imageNew;