141 {
142 item.index = index;
144 {
145 return;
146 }
147 DramaOutcome.idJump = null;
148 string text =
item.text.TrimEnd(Environment.NewLine.ToCharArray());
152 {
154 }
156 string idJump =
item.idJump;
157 string idAction =
item.idAction;
158 object[] PARAMS = null;
159 int? affinity = null;
160 if (!
item.CHECK.IsEmpty())
161 {
162 string[] array =
item.CHECK.Split(
'/');
163 string text2 = array[0];
164 if (!(text2 == "check"))
165 {
166 if (text2 == "affinity")
167 {
168 }
169 }
170 else
171 {
173 }
174 }
176 {
177 base.gameObject.SetActive(value: false);
178 DramaChoice.lastChoice =
item;
179 _ = check;
180 if (affinity.HasValue)
181 {
182 bool flag = true;
183 if (flag)
184 {
185 idJump = idJump.Split('/')[0];
186 }
187 else
188 {
189 idJump = idJump.Split('/')[1];
190 }
191 PARAMS = new object[1] { flag };
192 }
193 if (!idAction.IsEmpty())
194 {
195 typeof(DramaOutcome).GetMethod(sequence.id + "_" + idAction).Invoke(sequence.manager.outcome, PARAMS);
196 if (DramaOutcome.idJump != null)
197 {
198 sequence.Play(DramaOutcome.idJump);
199 return;
200 }
201 }
202 if (
item.onClick !=
null)
203 {
204 item.onClick();
205 }
208 {
209 item.onJump();
210 }
211 else if (idJump.IsEmpty())
212 {
213 sequence.PlayNext();
214 }
215 else
216 {
217 sequence.Play(idJump);
218 }
219 });
221 {
223 }
225 {
226 uIButton.soundClick = null;
227 }
228 if (
item.onTooltip !=
null)
229 {
231 }
232 if (
item.forceHighlight)
233 {
235 item.forceHighlight = false;
236 }
238 }
if(item3.idFile==idFirstFile &&item3.id==idFirstTopic)
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)