13 this.moldButton = this.transChoices.CreateMold(
null);
17 public virtual UIButton AddChoice(
DramaChoice choice,
string text, Action func =
null,
bool deactivateOnChoice =
true)
19 if (!this.transChoices.gameObject.activeSelf)
21 this.transChoices.gameObject.SetActive(
true);
23 UIButton uibutton = Util.Instantiate<UIButton>(this.moldButton, this.transChoices);
24 uibutton.mainText.text = text;
25 if (deactivateOnChoice)
27 uibutton.onClick.AddListener(
new UnityAction(this.Deactivate));
31 uibutton.onClick.AddListener(delegate()
36 uibutton.RebuildLayout(
false);
37 choice.button = uibutton;
42 public void ClearChoice()
44 this.transChoices.DestroyChildren(
false,
true);
45 this.transChoices.gameObject.SetActive(
false);
49 public virtual void SetText(
string detail =
"",
bool center =
false)
53 if (detail.StartsWith(
"#rune"))
55 detail = detail.Replace(
"#rune",
"");
59 this.textMain.ApplySkin();
62 this.textMain.SetText(detail);
67 public void Deactivate()
79 public Text textAffinity;
82 public Text textNoInterest;
91 public GameObject transInterest;
94 public GameObject transAffinity;
97 public GameObject transFav;
100 public GameObject transRank;
103 public UIText textMain;
106 public HyphenationJpn hypen;
109 public Transform transChoices;
112 private UIButton moldButton;
115 public GameObject iconNext;
118 public GameObject goAffinity;
124 public LayoutGroup layoutInterest;
127 public Transform moldInterest;
130 public Font fontRune;
133 public Glitch glitch;