142 {
143 item.index = index;
145 {
146 return;
147 }
148 DramaOutcome.idJump = null;
149 string text =
item.text.TrimEnd(Environment.NewLine.ToCharArray());
153 {
155 }
157 string idJump =
item.idJump;
158 string idAction =
item.idAction;
159 object[] PARAMS = null;
160 int? affinity = null;
161 if (!
item.CHECK.IsEmpty())
162 {
163 string[] array =
item.CHECK.Split(
'/');
164 string text2 = array[0];
165 if (!(text2 == "check"))
166 {
167 if (text2 == "affinity")
168 {
169 }
170 }
171 else
172 {
174 }
175 }
177 {
178 base.gameObject.SetActive(value: false);
179 DramaChoice.lastChoice =
item;
180 _ = check;
181 if (affinity.HasValue)
182 {
183 bool flag = true;
184 if (flag)
185 {
186 idJump = idJump.Split('/')[0];
187 }
188 else
189 {
190 idJump = idJump.Split('/')[1];
191 }
192 PARAMS = new object[1] { flag };
193 }
194 if (!idAction.IsEmpty())
195 {
196 MethodInfo method = typeof(DramaOutcome).GetMethod(sequence.id + "_" + idAction);
197 if (method != null)
198 {
199 method.Invoke(sequence.manager.outcome, PARAMS);
200 if (DramaOutcome.idJump != null)
201 {
202 sequence.Play(DramaOutcome.idJump);
203 return;
204 }
205 }
206 }
207 if (
item.onClick !=
null)
208 {
209 item.onClick();
210 }
213 {
214 item.onJump();
215 }
216 else if (idJump.IsEmpty())
217 {
218 sequence.PlayNext();
219 }
220 else
221 {
222 sequence.Play(idJump);
223 }
224 });
226 {
228 }
230 {
231 uIButton.soundClick = null;
232 }
233 if (
item.onTooltip !=
null)
234 {
236 }
237 if (
item.forceHighlight)
238 {
240 item.forceHighlight = false;
241 }
243 }
static Check Get(string id, float dcMod=1f)
virtual UIButton AddChoice(DramaChoice choice, string text, Action func=null, bool deactivateOnChoice=true)
string ConvertAdv(string text)
static bool If(DramaChoice item, Chara c)
List< DramaEvent > tempEvents
static string ConvertDrama(string text, Chara c=null)