Exemple #1
0
 public override string[] GetUnManagedAssetListData()
 {
     if (!string.IsNullOrEmpty(this.TextID))
     {
         this.LoadTextData();
         if (!string.IsNullOrEmpty(this.mVoiceID))
         {
             return(EventAction.GetUnManagedStreamAssets(Event2dAction_Dialog2.GetIDPair(this.mVoiceID), false));
         }
     }
     return((string[])null);
 }
Exemple #2
0
 public override void OnActivate()
 {
     if (Object.op_Inequality((Object)this.mBubble, (Object)null) && !((Component)this.mBubble).get_gameObject().get_activeInHierarchy())
     {
         for (int index = 0; index < EventDialogBubbleCustom.Instances.Count && Object.op_Inequality((Object)EventDialogBubbleCustom.Instances[index], (Object)this.mBubble); ++index)
         {
             if (EventDialogBubbleCustom.Instances[index].BubbleID == this.ActorID)
             {
                 EventDialogBubbleCustom.Instances[index].Close();
             }
         }
         ((Component)this.mBubble).get_gameObject().SetActive(true);
     }
     if (Object.op_Inequality((Object)this.mBubble, (Object)null))
     {
         if (!string.IsNullOrEmpty(this.mVoiceID))
         {
             string[] idPair = Event2dAction_Dialog2.GetIDPair(this.mVoiceID);
             if (idPair != null)
             {
                 this.mBubble.VoiceSheetName = idPair[0];
                 this.mBubble.VoiceCueName   = idPair[1];
             }
         }
         ((Component)this.mBubble).get_transform().SetAsLastSibling();
         RectTransform transform1 = ((Component)this.mBubble).get_transform() as RectTransform;
         for (int index = 0; index < EventDialogBubbleCustom.Instances.Count; ++index)
         {
             RectTransform transform2 = ((Component)EventDialogBubbleCustom.Instances[index]).get_transform() as RectTransform;
             if (Object.op_Inequality((Object)transform1, (Object)transform2))
             {
                 Rect rect = transform1.get_rect();
                 // ISSUE: explicit reference operation
                 if (((Rect)@rect).Overlaps(transform2.get_rect()))
                 {
                     EventDialogBubbleCustom.Instances[index].Close();
                 }
             }
         }
         if (string.IsNullOrEmpty(this.mPlayerName))
         {
             this.mBubble.SetName(this.mUnit == null ? "???" : this.mUnit.name);
         }
         else
         {
             this.mBubble.SetName(this.mPlayerName);
         }
         this.mBubble.SetBody(this.mTextData);
         this.mBubble.Open();
     }
     this.fadeInList.Clear();
     this.fadeOutList.Clear();
     this.IsFading = false;
     if (EventStandCharaController2.Instances != null && EventStandCharaController2.Instances.Count > 0)
     {
         using (List <EventStandCharaController2> .Enumerator enumerator = EventStandCharaController2.Instances.GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 EventStandCharaController2 current = enumerator.Current;
                 if (!current.IsClose)
                 {
                     if (current.CharaID == this.CharaID || this.ContainIgnoreFO(current.CharaID))
                     {
                         foreach (GameObject standChara in current.StandCharaList)
                         {
                             if (Color.op_Inequality(((Graphic)((EventStandChara2)standChara.GetComponent <EventStandChara2>()).FaceObject.GetComponent <RawImage>()).get_color(), Color.get_white()))
                             {
                                 this.fadeInList.Add(standChara);
                                 this.IsFading = true;
                             }
                         }
                         int num = ((Component)this.mBubble).get_transform().GetSiblingIndex() - 1;
                         Debug.Log((object)("set index:" + (object)num));
                         ((Component)current).get_transform().SetSiblingIndex(num);
                         ((Component)current).get_transform().set_localScale(Vector3.op_Multiply(Vector3.get_one(), 1f));
                         if (!string.IsNullOrEmpty(this.Emotion))
                         {
                             current.UpdateEmotion(this.Emotion);
                         }
                     }
                     else if (((Behaviour)current).get_isActiveAndEnabled())
                     {
                         foreach (GameObject standChara in current.StandCharaList)
                         {
                             if (Color.op_Inequality(((Graphic)((EventStandChara2)standChara.GetComponent <EventStandChara2>()).FaceObject.GetComponent <RawImage>()).get_color(), Color.get_gray()))
                             {
                                 this.fadeOutList.Add(standChara);
                                 this.IsFading = true;
                             }
                         }
                     }
                 }
             }
         }
     }
     if (!this.Async)
     {
         return;
     }
     this.ActivateNext();
 }