Exemplo n.º 1
0
 void updateSuccess()
 {
     //UiManager.Instance.openDialogWindow<MessageLineWindow>((win) =>
     //{
     //    win.Initialize("success!!!!!!!!!");
     //});
     if (bloodItemSample.effects[0].type != 5)
     {
         updateEffect();
     }
     else
     {
         skillMask.gameObject.SetActive(false);
     }
     updateLine();//主界面的属性变化
     if (canOpenPoint != null)
     {
         TweenAlpha ta = TweenAlpha.Begin(canOpenPoint, 1, 1);
         ta.to = 0f;
         EventDelegate.Add(ta.onFinished, () => {
             canOpenPoint.SetActive(false);
             Utils.DelayRun(() => { MaskWindow.UnlockUI(); }, 0.8f);
         }, true);
     }
     if (fatherWindow != null)
     {
         BloodEvolutionWindow beWin = fatherWindow as BloodEvolutionWindow;
         if (beWin != null)
         {
             beWin.isPressed = true;
             beWin.bloodSuccessCallBack(bloodItemSample, new Vector3(transform.localPosition.x, transform.localPosition.y + faTherTransform.localPosition.y, transform.localPosition.z), lineType);
         }
     }
 }
Exemplo n.º 2
0
 public override void DoClickEvent()
 {
     if (pointType == 1)
     {
         PrizeSample[] ps = bloodItemSample.condition;
         if (chooseCard.getEvoLevel() < bloodItemSample.evoLvCondition)
         {
             UiManager.Instance.openDialogWindow <MessageLineWindow>((win) => {
                 win.Initialize(LanguageConfigManager.Instance.getLanguage("bloldEvoError"));
             });
             return;
         }
         for (int i = 0; i < ps.Length; i++)
         {
             if (ps[i].getPrizeHadNum() < StringKit.toInt(ps[i].num))
             {
                 UiManager.Instance.openDialogWindow <MessageLineWindow>((win) => {
                     win.Initialize(LanguageConfigManager.Instance.getLanguage("bloodItemDec5", ps[i].getPrizeName()));
                 });
                 return;
             }
         }
         BloodEvolutionWindow beWin = fatherWindow as BloodEvolutionWindow;
         if (beWin != null)
         {
             beWin.oldCardold = chooseCard.Clone() as Card;
         }
         if (lineType == 0)
         {
             if (chooseCard.getQualityId() != QualityType.MYTH)
             {
                 UiManager.Instance.openDialogWindow <BigItemMessageWindow>((win) => {
                     win.initWindow(chooseCard.Clone() as Card, (msg) => {
                         if (msg.msgEvent == msg_event.dialogOK)
                         {
                             BloodLineFPort fportt = FPortManager.Instance.getFPort <BloodLineFPort>();
                             fportt.access(chooseCard.uid, updateSuccess);
                         }
                         else
                         {
                             MaskWindow.UnlockUI();
                         }
                     });
                 });
                 return;
             }
         }
         BloodLineFPort fport = FPortManager.Instance.getFPort <BloodLineFPort>();
         fport.access(chooseCard.uid, updateSuccess);
         //MaskWindow.UnlockUI();
     }
     else
     {
         isBloodItem = true;
         MaskWindow.UnlockUI();
     }
 }
Exemplo n.º 3
0
    public void Initialize(int imageSid, BloodEvolutionWindow fatherWindow)
    {
        SkillSample sk = SkillSampleManager.Instance.getSkillSampleBySid(imageSid);

        if (sk != null)
        {
            ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.SKILLIMAGEPATH + sk.iconId, itemImage);//如果实在没有图标就只有显示特效了哇
        }
        // ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.SKILLIMAGEPATH + imageSid, itemImage);
        this.fatherwindowww  = fatherWindow;
        transform.localScale = Vector3.zero;
        iTween.MoveTo(gameObject, iTween.Hash("position", transform.localPosition + new Vector3(0, 100f, 0), "easetype", iTween.EaseType.easeInOutCubic, "time", 1f, "islocal", true));
        iTween.ScaleTo(gameObject, iTween.Hash("scale", new Vector3(1.2f, 1.2f, 1.2f), "easetype", iTween.EaseType.easeInOutCubic, "time", 1f));
        Vector3 pos = new Vector3(fatherWindow.propflyPoint.localPosition.x, fatherWindow.propflyPoint.localPosition.y, fatherWindow.propflyPoint.localPosition.z);

        iTween.MoveTo(gameObject, iTween.Hash("delay", 1.1f, "position", pos, "easetype", "easeInQuad", "time", 1.5f, "islocal", true));
        iTween.ScaleTo(gameObject, iTween.Hash("delay", 1.1f, "scale", new Vector3(0.2f, 0.2f, 0.2f), "easetype", "easeInQuad", "oncomplete", "overrr", "time", 1.5f));
    }