Elin Modding Docs Doc
Loading...
Searching...
No Matches
ItemQuest.cs
1using System;
2using UnityEngine.UI;
3
4// Token: 0x020005B6 RID: 1462
5public class ItemQuest : EMono
6{
7 // Token: 0x06002814 RID: 10260 RVA: 0x000E25F8 File Offset: 0x000E07F8
8 public void SetQuest(Quest q)
9 {
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);
17 QuestSupply questSupply = q as QuestSupply;
18 if (questSupply != null && questSupply.GetDestThing() != null)
19 {
20 text = "questSupplyOwned".lang().TagColor(FontColor.Good, null) + text;
21 }
22 this.textDetail.SetText(text);
23 this.imageNew.SetActive(q.isNew);
24 q.isNew = false;
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);
30 }
31
32 // Token: 0x04001642 RID: 5698
33 public Portrait portrait;
34
35 // Token: 0x04001643 RID: 5699
36 public UIButton button;
37
38 // Token: 0x04001644 RID: 5700
39 public UIText textDetail;
40
41 // Token: 0x04001645 RID: 5701
42 public UIText textReward;
43
44 // Token: 0x04001646 RID: 5702
45 public UIText textDate;
46
47 // Token: 0x04001647 RID: 5703
48 public UIText textDifficulty;
49
50 // Token: 0x04001648 RID: 5704
51 public UIText textDanger;
52
53 // Token: 0x04001649 RID: 5705
54 public Image imageNew;
55}
Definition Date.cs:6
Definition EMono.cs:6
Definition Quest.cs:8