예제 #1
0
 public void dialog_appear(bool bstat)
 {
     rep.set_mode(-4);
     _ani = ((Component)base.gameObject.transform.parent).GetComponent <Animation>();
     if (bstat)
     {
         _clickmask.unclickable_sec(0.45f);
         ((Component)base.gameObject.transform.parent).GetComponent <UIPanel>().enabled = true;
         set_dialog_anime(value: true);
         csb.StopParticle();
         base.gameObject.transform.localPosition = new Vector3(0f, -27f, 0f);
         base.gameObject.transform.localScale    = Vector3.one * 0.6f;
         TweenScale tweenScale = TweenScale.Begin(base.gameObject, 0.4f, Vector3.one);
         tweenScale.animationCurve = UtilCurves.TweenEaseOutBack;
         tweenScale.SetOnFinished(CompleteHandler);
         rep.setmask(3, value: true);
         rep.set_mode(4);
     }
     else
     {
         set_dialog_anime(value: true);
         csb.StartParticle();
         base.gameObject.transform.localScale = Vector3.one;
         iTween.MoveTo(base.gameObject, iTween.Hash("islocal", true, "x", 0f, "y", 800, "z", -2, "delay", 0.3f, "time", 0f));
         iTween.ScaleTo(base.gameObject, iTween.Hash("islocal", true, "x", 0.6f, "y", 0.6f, "z", 0.6f, "delay", 0.3f, "time", 0f, "easetype", iTween.EaseType.easeOutBack, "oncomplete", "CompleteHandler_onClose", "oncompletetarget", base.gameObject));
         _ani.Play("dialog_off");
         rep.setmask(3, value: false);
         rep.set_mode(3);
     }
 }
 public void OnFinishParticle()
 {
     CommonShipBanner[] array = this.mShipBannerSlots;
     for (int i = 0; i < array.Length; i++)
     {
         CommonShipBanner commonShipBanner = array[i];
         if (commonShipBanner.get_gameObject().get_activeSelf())
         {
             Debug.Log("KiraParLoop::False");
             commonShipBanner.StopParticle();
         }
     }
 }
 public void InitBanner(bool closeAnimation)
 {
     if (IsSetShip())
     {
         shipBanner.StopParticle();
     }
     IsSet     = false;
     _callback = null;
     shipBanner.transform.gameObject.SetActive(false);
     _labelNumber.alpha = 0f;
     _gauge.alpha       = 0f;
     _labelName.alpha   = 0f;
     _labelLevel.alpha  = 0f;
     _labelTaikyu.alpha = 0f;
     _shutterL.alpha    = 1f;
     _shutterR.alpha    = 1f;
     CloseBanner(closeAnimation);
     if (!closeAnimation)
     {
         SetShipFrameActive(active: false);
     }
 }
    public void Initialize(int realIndex, ShipModel model)
    {
        UITexture uITexture             = CommonShipBanner.GetUITexture();
        Texture   releaseRequestTexture = uITexture.mainTexture;

        uITexture.mainTexture = null;
        UserInterfaceRemodelManager.instance.ReleaseRequestBanner(ref releaseRequestTexture);
        mRealIndex = realIndex;
        mShipModel = model;
        CommonShipBanner.SetShipData(mShipModel);
        CommonShipBanner.StopParticle();
        uITexture.alpha = 1f;
        shipName.text   = mShipModel.Name;
        shipLevel.text  = mShipModel.Level.ToString();
        stars.init(mShipModel.Srate);
        mWidgetThis.alpha = 1f;
    }
 public void StopKira()
 {
     mCommonShipBanner.StopParticle();
 }
    public void Initialize(DeckModel deck)
    {
        this.mDeckModel = deck;
        ShipModel[] ships = this.mDeckModel.GetShips();
        UITexture[] array = this.mTextures_Flag;
        for (int i = 0; i < array.Length; i++)
        {
            UITexture component = array[i];
            component.SetActive(false);
        }
        CommonShipBanner[] array2 = this.mShipBannerSlots;
        for (int j = 0; j < array2.Length; j++)
        {
            CommonShipBanner commonShipBanner = array2[j];
            commonShipBanner.StopParticle();
        }
        switch (ships.Length)
        {
        case 1:
            this.mShipBannerSlots[0].get_gameObject().SetActive(true);
            this.mShipBannerSlots[0].SetShipData(ships[0]);
            this.mTextures_Flag[0].mainTexture = Resources.Load <Texture>("Textures/Common/DeckFlag/icon_deck" + deck.Id + "_fs");
            this.mTextures_Flag[0].SetActive(true);
            break;

        case 2:
            this.mShipBannerSlots[0].get_gameObject().SetActive(true);
            this.mShipBannerSlots[5].get_gameObject().SetActive(true);
            this.mShipBannerSlots[0].SetShipData(ships[0]);
            this.mShipBannerSlots[5].SetShipData(ships[1]);
            this.mTextures_Flag[0].mainTexture = Resources.Load <Texture>("Textures/Common/DeckFlag/icon_deck" + deck.Id + "_fs");
            this.mTextures_Flag[0].SetActive(true);
            break;

        case 3:
            this.mShipBannerSlots[0].get_gameObject().SetActive(true);
            this.mShipBannerSlots[1].get_gameObject().SetActive(true);
            this.mShipBannerSlots[5].get_gameObject().SetActive(true);
            this.mShipBannerSlots[0].SetShipData(ships[2]);
            this.mShipBannerSlots[1].SetShipData(ships[0]);
            this.mShipBannerSlots[5].SetShipData(ships[1]);
            this.mTextures_Flag[1].mainTexture = Resources.Load <Texture>("Textures/Common/DeckFlag/icon_deck" + deck.Id + "_fs");
            this.mTextures_Flag[1].SetActive(true);
            break;

        case 4:
            this.mShipBannerSlots[0].get_gameObject().SetActive(true);
            this.mShipBannerSlots[1].get_gameObject().SetActive(true);
            this.mShipBannerSlots[4].get_gameObject().SetActive(true);
            this.mShipBannerSlots[5].get_gameObject().SetActive(true);
            this.mShipBannerSlots[0].SetShipData(ships[2]);
            this.mShipBannerSlots[1].SetShipData(ships[0]);
            this.mShipBannerSlots[4].SetShipData(ships[1]);
            this.mShipBannerSlots[5].SetShipData(ships[3]);
            this.mTextures_Flag[1].mainTexture = Resources.Load <Texture>("Textures/Common/DeckFlag/icon_deck" + deck.Id + "_fs");
            this.mTextures_Flag[1].SetActive(true);
            break;

        case 5:
            this.mShipBannerSlots[0].get_gameObject().SetActive(true);
            this.mShipBannerSlots[1].get_gameObject().SetActive(true);
            this.mShipBannerSlots[2].get_gameObject().SetActive(true);
            this.mShipBannerSlots[4].get_gameObject().SetActive(true);
            this.mShipBannerSlots[5].get_gameObject().SetActive(true);
            this.mShipBannerSlots[0].SetShipData(ships[2]);
            this.mShipBannerSlots[1].SetShipData(ships[0]);
            this.mShipBannerSlots[2].SetShipData(ships[4]);
            this.mShipBannerSlots[4].SetShipData(ships[1]);
            this.mShipBannerSlots[5].SetShipData(ships[3]);
            this.mTextures_Flag[1].mainTexture = Resources.Load <Texture>("Textures/Common/DeckFlag/icon_deck" + deck.Id + "_fs");
            this.mTextures_Flag[1].SetActive(true);
            break;

        case 6:
            this.mShipBannerSlots[0].get_gameObject().SetActive(true);
            this.mShipBannerSlots[1].get_gameObject().SetActive(true);
            this.mShipBannerSlots[2].get_gameObject().SetActive(true);
            this.mShipBannerSlots[3].get_gameObject().SetActive(true);
            this.mShipBannerSlots[4].get_gameObject().SetActive(true);
            this.mShipBannerSlots[5].get_gameObject().SetActive(true);
            this.mShipBannerSlots[0].SetShipData(ships[2]);
            this.mShipBannerSlots[1].SetShipData(ships[0]);
            this.mShipBannerSlots[2].SetShipData(ships[4]);
            this.mShipBannerSlots[3].SetShipData(ships[5]);
            this.mShipBannerSlots[4].SetShipData(ships[1]);
            this.mShipBannerSlots[5].SetShipData(ships[3]);
            this.mTextures_Flag[1].mainTexture = Resources.Load <Texture>("Textures/Common/DeckFlag/icon_deck" + deck.Id + "_fs");
            this.mTextures_Flag[1].SetActive(true);
            break;
        }
    }
        public void Initialize(int realIndex, RemodeModernizationShipTargetListChildNew model)
        {
            UITexture uITexture             = mCommonShipBanner.GetUITexture();
            Texture   releaseRequestTexture = uITexture.mainTexture;

            uITexture.mainTexture = null;
            UserInterfaceRemodelManager.instance.ReleaseRequestBanner(ref releaseRequestTexture);
            mWidgetThis.alpha = 1f;
            if (model.mOption == RemodeModernizationShipTargetListChildNew.ListItemOption.UnSet)
            {
                mRealIndex = realIndex;
                mModel     = null;
                mCommonShipBanner.SetActive(isActive: false);
                mSprite_Karyoku.alpha = 0f;
                mSprite_Raisou.alpha  = 0f;
                mSprite_Soukou.alpha  = 0f;
                mSprite_Taikuu.alpha  = 0f;
                mSprite_Luck.alpha    = 0f;
                mLabel_Level.alpha    = 0f;
                mLabel_Level.text     = "はずす";
                mLEVEL.localScale     = Vector3.zero;
                mUNSET.localScale     = Vector3.one;
                return;
            }
            mRealIndex = realIndex;
            mModel     = model;
            mCommonShipBanner.SetActive(isActive: true);
            mSprite_Karyoku.alpha = 1f;
            mSprite_Raisou.alpha  = 1f;
            mSprite_Soukou.alpha  = 1f;
            mSprite_Taikuu.alpha  = 1f;
            mSprite_Luck.alpha    = 1f;
            mLabel_Level.alpha    = 1f;
            mLEVEL.localScale     = Vector3.one;
            mUNSET.localScale     = Vector3.zero;
            if (0 < model.mShipModel.PowUpKaryoku)
            {
                mSprite_Karyoku.spriteName = "icon_1_on";
            }
            else
            {
                mSprite_Karyoku.spriteName = "icon_1";
            }
            if (0 < model.mShipModel.PowUpRaisou)
            {
                mSprite_Raisou.spriteName = "icon_2_on";
            }
            else
            {
                mSprite_Raisou.spriteName = "icon_2";
            }
            if (0 < model.mShipModel.PowUpSoukou)
            {
                mSprite_Soukou.spriteName = "icon_3_on";
            }
            else
            {
                mSprite_Soukou.spriteName = "icon_3";
            }
            if (0 < model.mShipModel.PowUpTaikuu)
            {
                mSprite_Taikuu.spriteName = "icon_4_on";
            }
            else
            {
                mSprite_Taikuu.spriteName = "icon_4";
            }
            if (0 < model.mShipModel.PowUpLucky)
            {
                mSprite_Luck.spriteName = "icon_5_on";
            }
            else
            {
                mSprite_Luck.spriteName = "icon_5";
            }
            mCommonShipBanner.SetShipData(model.mShipModel);
            mCommonShipBanner.GetUITexture().alpha = 1f;
            mCommonShipBanner.StopParticle();
            mLabel_Level.text = model.mShipModel.Level.ToString();
        }
        private void SetShip(ShipModel shipModel)
        {
            Texture releaseRequestTexture = mCommonShipBanner.GetUITexture().mainTexture;

            mCommonShipBanner.GetUITexture().mainTexture = null;
            UserInterfaceRemodelManager.instance.ReleaseRequestBanner(ref releaseRequestTexture);
            mShipModel = shipModel;
            mCommonShipBanner.SetActive(isActive: true);
            mTransformLEVEL.SetActive(isActive: true);
            mSprite_Karyoku.alpha = 1f;
            mSprite_Raisou.alpha  = 1f;
            mSprite_Soukou.alpha  = 1f;
            mSprite_Taikuu.alpha  = 1f;
            mSprite_Luck.alpha    = 1f;
            mLabel_Level.alpha    = 1f;
            mSprite_Add.alpha     = 0f;
            if (0 < shipModel.PowUpKaryoku)
            {
                mSprite_Karyoku.spriteName = "icon_1_on";
            }
            else
            {
                mSprite_Karyoku.spriteName = "icon_1";
            }
            if (0 < shipModel.PowUpRaisou)
            {
                mSprite_Raisou.spriteName = "icon_2_on";
            }
            else
            {
                mSprite_Raisou.spriteName = "icon_2";
            }
            if (0 < shipModel.PowUpSoukou)
            {
                mSprite_Soukou.spriteName = "icon_3_on";
            }
            else
            {
                mSprite_Soukou.spriteName = "icon_3";
            }
            if (0 < shipModel.PowUpTaikuu)
            {
                mSprite_Taikuu.spriteName = "icon_4_on";
            }
            else
            {
                mSprite_Taikuu.spriteName = "icon_4";
            }
            if (0 < shipModel.PowUpLucky)
            {
                mSprite_Luck.spriteName = "icon_5_on";
            }
            else
            {
                mSprite_Luck.spriteName = "icon_5";
            }
            mCommonShipBanner.SetShipData(shipModel);
            mCommonShipBanner.StopParticle();
            mLabel_Level.text = shipModel.Level.ToString();
            mLabel_Name.text  = shipModel.Name;
        }