Elin Modding Docs Doc
Loading...
Searching...
No Matches
DialogDrama.cs
1using System;
2using Applibot;
3using UnityEngine;
4using UnityEngine.Events;
5using UnityEngine.UI;
6
7// Token: 0x0200010A RID: 266
8public class DialogDrama : EMono
9{
10 // Token: 0x060006FD RID: 1789 RVA: 0x0002A28D File Offset: 0x0002848D
11 private void Awake()
12 {
13 this.moldButton = this.transChoices.CreateMold(null);
14 }
15
16 // Token: 0x060006FE RID: 1790 RVA: 0x0002A2A4 File Offset: 0x000284A4
17 public virtual UIButton AddChoice(DramaChoice choice, string text, Action func = null, bool deactivateOnChoice = true)
18 {
19 if (!this.transChoices.gameObject.activeSelf)
20 {
21 this.transChoices.gameObject.SetActive(true);
22 }
23 UIButton uibutton = Util.Instantiate<UIButton>(this.moldButton, this.transChoices);
24 uibutton.mainText.text = text;
25 if (deactivateOnChoice)
26 {
27 uibutton.onClick.AddListener(new UnityAction(this.Deactivate));
28 }
29 if (func != null)
30 {
31 uibutton.onClick.AddListener(delegate()
32 {
33 func();
34 });
35 }
36 uibutton.RebuildLayout(false);
37 choice.button = uibutton;
38 return uibutton;
39 }
40
41 // Token: 0x060006FF RID: 1791 RVA: 0x0002A348 File Offset: 0x00028548
42 public void ClearChoice()
43 {
44 this.transChoices.DestroyChildren(false, true);
45 this.transChoices.gameObject.SetActive(false);
46 }
47
48 // Token: 0x06000700 RID: 1792 RVA: 0x0002A368 File Offset: 0x00028568
49 public virtual void SetText(string detail = "", bool center = false)
50 {
51 if (this.fontRune)
52 {
53 if (detail.StartsWith("#rune"))
54 {
55 detail = detail.Replace("#rune", "");
56 }
57 else
58 {
59 this.textMain.ApplySkin();
60 }
61 }
62 this.textMain.SetText(detail);
63 this.textMain.RebuildLayoutTo<LayerDrama>();
64 }
65
66 // Token: 0x06000701 RID: 1793 RVA: 0x0002A3C5 File Offset: 0x000285C5
67 public void Deactivate()
68 {
69 }
70
71 // Token: 0x04000731 RID: 1841
72 [Header("Dialog")]
73 public Text textName;
74
75 // Token: 0x04000732 RID: 1842
76 public Text textBio;
77
78 // Token: 0x04000733 RID: 1843
79 public Text textAffinity;
80
81 // Token: 0x04000734 RID: 1844
82 public Text textNoInterest;
83
84 // Token: 0x04000735 RID: 1845
85 public Text textFav;
86
87 // Token: 0x04000736 RID: 1846
88 public Text textRank;
89
90 // Token: 0x04000737 RID: 1847
91 public GameObject transInterest;
92
93 // Token: 0x04000738 RID: 1848
94 public GameObject transAffinity;
95
96 // Token: 0x04000739 RID: 1849
97 public GameObject transFav;
98
99 // Token: 0x0400073A RID: 1850
100 public GameObject transRank;
101
102 // Token: 0x0400073B RID: 1851
103 public UIText textMain;
104
105 // Token: 0x0400073C RID: 1852
106 public HyphenationJpn hypen;
107
108 // Token: 0x0400073D RID: 1853
109 public Transform transChoices;
110
111 // Token: 0x0400073E RID: 1854
112 private UIButton moldButton;
113
114 // Token: 0x0400073F RID: 1855
115 public GameObject iconNext;
116
117 // Token: 0x04000740 RID: 1856
118 public GameObject goAffinity;
119
120 // Token: 0x04000741 RID: 1857
121 public Portrait portrait;
122
123 // Token: 0x04000742 RID: 1858
124 public LayoutGroup layoutInterest;
125
126 // Token: 0x04000743 RID: 1859
127 public Transform moldInterest;
128
129 // Token: 0x04000744 RID: 1860
130 public Font fontRune;
131
132 // Token: 0x04000745 RID: 1861
133 public Glitch glitch;
134
135 // Token: 0x04000746 RID: 1862
136 private bool warned;
137}
Definition EMono.cs:6