예제 #1
0
    private IEnumerator Init(Action <int> f, float sizeX, float sizeY, float aT)
    {
        GUICollider.DisableAllCollider("CMD_TitleSelect");
        RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        base.HideDLG();
        base.PartsTitle.SetTitle(StringMaster.GetString("EditUserTitle"));
        this.titleIcon.mainTexture = null;
        this.titleNameLbl.text     = string.Empty;
        this.titleName.text        = string.Empty;
        this.titleDetail.text      = string.Empty;
        this.equipBtnLbl.text      = StringMaster.GetString("EquipUserTitle");
        this.equipBtn.GetComponent <UISprite>().spriteName = "Common02_Btn_Gray";
        this.equipBtnLbl.color = ConstValue.DEACTIVE_BUTTON_LABEL;
        this.equipBtn.GetComponent <BoxCollider>().enabled = false;
        this.titleListOriginalItem.SetActive(true);
        GameWebAPI.RespDataMA_TitleMaster.TitleM[] titles = TitleDataMng.GetAvailableTitleM();
        this.CreateTitleList(this.titleList, titles.Length);
        this.SetTitleDetail(this.titleList, titles);
        this.titleListOriginalItem.SetActive(false);
        base.ShowDLG();
        base.Show(f, sizeX, sizeY, aT);
        RestrictionInput.EndLoad();
        yield return(null);

        yield break;
    }
예제 #2
0
 public static void FadeWhiteReqScreen(string screen, Action <int> act = null, float outSec = 0.8f, float inSec = 0.8f, bool isFadeIn = false)
 {
     GUICollider.DisableAllCollider("GUIMain");
     GUIFadeControll.SetLoadInfo(act, string.Empty, screen, string.Empty, null, isFadeIn);
     GUIFadeControll.SetFadeInfo(outSec, 0f, inSec, 1f);
     GUIManager.LoadCommonGUI("Effect/FADE_W", GUIMain.self.gameObject);
 }
예제 #3
0
    public override void Show(Action <int> closeEvent, float sizeX, float sizeY, float showTime)
    {
        base.SetTutorialAnyTime("anytime_second_tutorial_facility_shop");
        GUICollider.DisableAllCollider("CMD_FacilityShop");
        if (this.ExistNewFacility() || this.ExistNewDecoration())
        {
            base.HideDLG();
            APIRequestTask apirequestTask = Singleton <UserDataMng> .Instance.RequestUserFacilityConditionData(true);

            APIRequestTask apirequestTask2 = this.ReqeustUserNewCount();
            if (apirequestTask2 != null)
            {
                apirequestTask.Add(apirequestTask2);
            }
            this.RequestUserFacilityShopInfo(apirequestTask, closeEvent, sizeX, sizeY, showTime);
        }
        else if (!Singleton <UserDataMng> .Instance.ExistUserFacilityCondition())
        {
            base.HideDLG();
            APIRequestTask task = Singleton <UserDataMng> .Instance.RequestUserFacilityConditionData(true);

            this.RequestUserFacilityShopInfo(task, closeEvent, sizeX, sizeY, showTime);
        }
        else
        {
            this.InitFacilityShop(closeEvent, sizeX, sizeY, showTime);
            RestrictionInput.EndLoad();
        }
    }
예제 #4
0
    private void IntDLG(Action <int> f, float sizeX, float sizeY, float aT)
    {
        base.ShowDLG();
        GUICollider.DisableAllCollider("CMD_QuestTOP");
        SoundMng.Instance().PlayGameBGM("bgm_301");
        base.PartsTitle.SetTitle(StringMaster.GetString("QuestTitle"));
        this.SetCommonUI_A_Stage();
        this.SetCommonUI_S_Dungeon();
        this.InitQuest();
        this.userStamina.SetMode(UserStamina.Mode.QUEST);
        this.userStamina.RefreshParams();
        base.Show(f, sizeX, sizeY, aT);
        string bgpath = this.GetBGPath();

        if (!string.IsNullOrEmpty(bgpath))
        {
            AppCoroutine.Start(this.DownloadBannerTexture(bgpath), false);
        }
        if (this.worldStageData.Count > 0)
        {
            string anyTimeQuestTopTutorialFileName = this.GetAnyTimeQuestTopTutorialFileName(this.worldStageData[0].worldStageM.worldAreaId);
            if (!string.IsNullOrEmpty(anyTimeQuestTopTutorialFileName))
            {
                base.SetTutorialAnyTime(anyTimeQuestTopTutorialFileName);
            }
        }
    }
    private void UpdateAnimationTicketIcon()
    {
        if (!this.StartEffect)
        {
            return;
        }
        int num = this.curTicketFrameCT % this.showChipInterval;

        if ((num == 0 || this.isOnTapped) && this.curTicketInitNUM < CMD_TicketGashaResult.UserDungeonTicketList.Length)
        {
            if (this.curTicketInitNUM == 0)
            {
                GUICollider.EnableAllCollider("=================================== CMD_TicketGashaResult::UpdateShowTicketIcons");
            }
            this.ticketEffectList[this.curTicketInitNUM].Play();
            this.curTicketInitNUM++;
            SoundMng.Instance().PlaySE("SEInternal/Farm/se_221", 0f, false, true, null, -1, 1f);
            if (CMD_TicketGashaResult.UserDungeonTicketList.Length == this.curTicketInitNUM)
            {
                this.StartEffect = false;
                this.startButton.gameObject.SetActive(true);
                if (CMD_TicketGashaResult.RewardsData != null)
                {
                    GUICollider.DisableAllCollider("=================================== CMD_TicketGashaResult::ICON");
                    AppCoroutine.Start(this.GashaRewardSet(0.7f), true);
                }
            }
        }
        this.curTicketFrameCT++;
    }
예제 #6
0
 public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
 {
     GUICollider.DisableAllCollider("CMD_Succession");
     RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
     base.PartsTitle.SetTitle(StringMaster.GetString("SuccessionTitle"));
     this.ngTX_DECIDE.text     = StringMaster.GetString("SuccessionTitle");
     this.sortButtonLabel.text = StringMaster.GetString("SystemSortButton");
     this.necessaryLabel.text  = StringMaster.GetString("Succession-02");
     this.baseMonsterSkillTab1.SetLabel(StringMaster.GetString("SkillInheritTitle1"));
     this.baseMonsterSkillTab2.SetLabel(StringMaster.GetString("SkillInheritTitle2"));
     this.materialMonsterSkillTab1.SetLabel(StringMaster.GetString("SkillInheritTitle1"));
     this.materialMonsterSkillTab2.SetLabel(StringMaster.GetString("SkillInheritTitle2"));
     this.baseMonsterSkillTab1.Off();
     this.baseMonsterSkillTab2.Off();
     this.baseMonsterSkillTab2.SetActive(false);
     this.materialMonsterSkillTab1.Off();
     this.materialMonsterSkillTab2.Off();
     this.materialMonsterSkillTab2.SetActive(false);
     this.SetCommonUI();
     this.InitMonsterList(true);
     this.ShowChgInfo();
     this.ShowMATInfo();
     this.UpdateClusterNum();
     base.Show(f, sizeX, sizeY, aT);
     base.SetTutorialAnyTime("anytime_second_tutorial_succession");
     RestrictionInput.EndLoad();
 }
예제 #7
0
 protected override void Awake()
 {
     base.Awake();
     this.firstClearMessage.text = string.Format(StringMaster.GetString("FirstClearBonus"), ConstValue.FIRST_CLEAR_NUM);
     this.moveBehavior           = CommonDialog.MOVE_BEHAVIOUR.XY_SCALE_CLOSE;
     GUICollider.DisableAllCollider("CMD_FirstClear");
 }
    public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
    {
        GUICollider.DisableAllCollider("CMD_ChipList");
        RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        base.HideDLG();
        this.userChipList = this.ConvertChipList(ChipDataMng.userChipData);
        this.chipList     = new ChipList(this.goEFC_FOOTER, 7, new Vector2(960f, 450f), this.userChipList, false, true);
        this.chipList.SetPosition(new Vector3(-110f, -70f, 0f));
        this.chipList.SetScrollBarPosX(450f);
        this.chipList.SetShortTouchCallback(new Action <GUIListChipParts.Data>(this.OnShortTouchChip));
        this.chipList.SetLongTouchCallback(new Action <GUIListChipParts.Data>(this.OnLongTouchChip));
        this.chipList.AddWidgetDepth(base.gameObject.GetComponent <UIWidget>().depth);
        this.chipList.SetTouchAreaWidth(875f);
        this.messageLabel.gameObject.SetActive(this.userChipList.Length == 0);
        int num = 0;

        if (ChipDataMng.userChipData != null && ChipDataMng.userChipData.userChipList != null)
        {
            num = ChipDataMng.userChipData.userChipList.Length;
        }
        this.listCountLabel.text          = string.Format(StringMaster.GetString("SystemFraction"), num, DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.chipLimitMax);
        this.saleClusterMessageLabel.text = "0";
        this.sortNameLabel.text           = CMD_ChipSortModal.GetSortName();
        this.UpdateCluster();
        this.ChangeViewMode(CMD_ChipAdministration.ViewModeType.List);
        base.ShowDLG();
        base.SetTutorialAnyTime("anytime_second_tutorial_chip_list");
        base.Show(f, sizeX, sizeY, aT);
        RestrictionInput.EndLoad();
    }
예제 #9
0
 public override void Show(Action <int> closeEvent, float sizeX, float sizeY, float showAnimationTime)
 {
     GUICollider.DisableAllCollider("CMD_Profile");
     RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
     base.HideDLG();
     GameWebAPI.RequestUS_UserProfile requestUS_UserProfile = new GameWebAPI.RequestUS_UserProfile();
     requestUS_UserProfile.SetSendData = delegate(GameWebAPI.PRF_Req_ProfileData param)
     {
         param.targetUserId = DataMng.Instance().RespDataCM_Login.playerInfo.UserId;
     };
     requestUS_UserProfile.OnReceived = new Action <GameWebAPI.RespDataPRF_Profile>(DataMng.Instance().SetUserProfile);
     GameWebAPI.RequestUS_UserProfile request = requestUS_UserProfile;
     base.StartCoroutine(request.RunOneTime(delegate()
     {
         RestrictionInput.EndLoad();
         this.ShowDLG();
         this.SetTutorialAnyTime("anytime_second_tutorial_profile");
         this.< Show > __BaseCallProxy0(closeEvent, sizeX, sizeY, showAnimationTime);
     }, delegate(Exception nop)
     {
         RestrictionInput.EndLoad();
         this.< ClosePanel > __BaseCallProxy1(false);
         GUICollider.EnableAllCollider("CMD_Profile");
     }, null));
 }
예제 #10
0
    public static void FadeBlackLoadScene(string SceneName, float outSec = 0.5f, float inSec = 0.5f, bool destroyMonsterIcon = true, Action <int> actionEnd = null)
    {
        GUIMain.actCallBackBattle = null;
        if (destroyMonsterIcon)
        {
            ClassSingleton <GUIMonsterIconList> .Instance.AllDisable();

            ClassSingleton <GUIMonsterIconList> .Instance.AllDelete();
        }
        GUICollider.DisableAllCollider("GUIMain");
        if (GUIMain.< > f__mg$cache1 == null)
        {
            GUIMain.< > f__mg$cache1 = new Action <int>(GUIMain.ShiftGUI);
        }
        Action <int> action_      = GUIMain.< > f__mg$cache1;
        string       loadGUIName_ = "UIIdle";

        GUIFadeControll.SetLoadInfo(action_, SceneName, loadGUIName_, string.Empty, actionEnd, false);
        GUIFadeControll.SetFadeInfo(outSec, 0f, inSec, 1f);
        BattleStateManager.onAutoServerConnect = true;
        ServerDateTime.isUpdateServerDateTime  = false;
        ClassSingleton <PlayLimit> .Instance.UseTicketNumCont();

        ClassSingleton <PlayLimit> .Instance.UsePlayLimitNumCont();

        GUIManager.LoadCommonGUI("Effect/FADE_B", GUIMain.self.gameObject);
        Resources.UnloadUnusedAssets();
    }
예제 #11
0
    public override void Show(Action <int> closeEvent, float sizeX, float sizeY, float showAnimationTime)
    {
        GUICollider.DisableAllCollider("CMD_ChipReinforced");
        RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        base.HideDLG();
        GameWebAPI.RespDataCS_ChipListLogic.UserChipList[] array = this.ConvertChipList(ChipDataMng.userChipData);
        this.chipList = new ChipList(this.goEFC_FOOTER, 8, new Vector2(960f, 450f), array, false, true);
        this.chipList.SetPosition(new Vector3(-40f, -70f, 0f));
        this.chipList.SetScrollBarPosX(520f);
        this.chipList.SetShortTouchCallback(new Action <GUIListChipParts.Data>(this.OnShortTouchChip));
        this.chipList.SetLongTouchCallback(new Action <GUIListChipParts.Data>(this.OnLongTouchChip));
        this.chipList.AddWidgetDepth(base.gameObject.GetComponent <UIWidget>().depth);
        base.PartsTitle.SetTitle(StringMaster.GetString("ChipReinforcement-01"));
        this.sortButtonLabel.text      = StringMaster.GetString("SystemSortButton");
        this.sortNameLabel.text        = CMD_ChipSortModal.GetSortName();
        this.sortButton.CallBackClass  = base.gameObject;
        this.sortButton.MethodToInvoke = "OnSortButton";
        this.messageLabel.gameObject.SetActive(array.Count <GameWebAPI.RespDataCS_ChipListLogic.UserChipList>() == 0);
        this.messageLabel.text = StringMaster.GetString("ChipAdministration-01");
        int num = 0;

        if (ChipDataMng.userChipData != null && ChipDataMng.userChipData.userChipList != null)
        {
            num = ChipDataMng.userChipData.userChipList.Length;
        }
        this.listCountLabel.text = string.Format(StringMaster.GetString("SystemFraction"), num, DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.chipLimitMax);
        base.ShowDLG();
        base.SetTutorialAnyTime("anytime_second_tutorial_chip_reinforcement");
        base.Show(closeEvent, sizeX, sizeY, showAnimationTime);
        RestrictionInput.EndLoad();
    }
 public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
 {
     GUICollider.DisableAllCollider("CMD_ReinforcementTOP");
     RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
     base.HideDLG();
     this.SetCommonUI();
     base.StartCoroutine(this.InitReinforceTOP(f, sizeX, sizeY, aT));
 }
 private void SetGashaResultDetails()
 {
     GUICollider.DisableAllCollider("=================================== CMD_TicketGashaResult::ShoeDetail");
     this.CreateTicketIconEffect();
     this.assetsInventory.SetGashaPriceType(CMD_TicketGashaResult.gashaInfo.priceType);
     this.startButton.SetGashaInfo(CMD_TicketGashaResult.gashaInfo, false);
     this.startButton.SetPlayButton();
 }
예제 #14
0
 public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
 {
     GUICollider.DisableAllCollider("CMD_ColosseumBonus");
     base.HideDLG();
     base.ShowDLG();
     base.Show(f, sizeX, sizeY, aT);
     GUICollider.EnableAllCollider("CMD_ColosseumBonus");
 }
예제 #15
0
    public override void Show(Action <int> closeEvent, float sizeX, float sizeY, float showAnimationTime)
    {
        GUICollider.DisableAllCollider("CMD_PartyEdit_Collider");
        Vector3 localPosition = base.gameObject.transform.localPosition;

        localPosition.x = 10000f;
        base.gameObject.transform.localPosition = localPosition;
        base.StartCoroutine(this.ShowAll(closeEvent, sizeX, sizeY, showAnimationTime));
    }
예제 #16
0
 public void ReConsumeNonConsumedItems(Action <bool> act = null)
 {
     this.actCallBackReConsume = act;
     global::Debug.Log("================================================= STORE RECONSUME!!");
     this.isFromStart = false;
     GUICollider.DisableAllCollider("StoreUtil");
     this.svRetryCt = 0;
     NpSingleton <NpPurchase> .Instance.RetryTransaction(new Action <NpPurchaseReceiptData>(this.PurchaseProductCallBackSccess), new Action <bool>(this.PurchaseProductCallBackNone));
 }
예제 #17
0
    public static void FadeBlackReqFromSceneForMulti(int startId, string screenName, float outSec = 0.5f, float inSec = 0.5f)
    {
        GUIMain.beforeGUIScreen = new Stack <string>();
        GUICollider.DisableAllCollider("GUIMain");
        Action actionReceived = null;
        bool   isResult       = false;

        if (screenName != null)
        {
            if (screenName == "UIResult" || screenName == "UIPvPResult")
            {
                isResult       = true;
                actionReceived = delegate()
                {
                    GUIFadeControll.ActionRestart();
                    GUIMain.OnNewScreenStart(screenName);
                };
                goto IL_D8;
            }
            if (!(screenName == "UIHome"))
            {
            }
        }
        inSec = 0f;
        RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        actionReceived = delegate()
        {
            Loading.DisableMask();
            TipsLoading.Instance.StartTipsLoad(CMD_Tips.DISPLAY_PLACE.TitleToFarm, true);
            GUIFadeControll.LoadGUIAll();
        };
IL_D8:
        Time.timeScale = 1f;
        GUIFadeControll.SetLoadInfo(delegate(int x)
        {
            if (GUIMain.actCallBackBattle != null)
            {
                GUIMain.actCallBackBattle();
            }
            if (isResult)
            {
                Singleton <GUIMain> .instance.StartCoroutine(APIUtil.Instance().SendBattleResultForMulti(actionReceived, startId));
            }
            else
            {
                if (actionReceived != null)
                {
                    actionReceived();
                }
                ClassSingleton <QuestData> .Instance.ClearDNGDataCache();
            }
        }, "Empty", screenName, string.Empty, null, false);
        GUIFadeControll.SetFadeInfo(outSec, 0f, inSec, 1f);
        GUIManager.LoadCommonGUI("Effect/FADE_B", GUIMain.self.gameObject);
        GUIMain.backMode_ = true;
    }
예제 #18
0
    public void StartPurchaseItem(string productId, Action <bool> act = null)
    {
        this.actCallBackReConsume = act;
        this.svRetryCt            = 0;
        GUICollider.DisableAllCollider("StoreUtil");
        NpSingleton <NpPurchase> .Instance.Purchase(productId, true, new Action <NpPurchaseReceiptData>(this.PurchaseProductCallBackSccess), new Action <string>(this.PurchaseProductCallBackFail));

        this.isFromStart = true;
        global::Debug.Log("================================================= STORE START PURCHASE !!");
    }
예제 #19
0
    private void HideMainParts(bool sound)
    {
        ClassSingleton <FaceMissionAccessor> .Instance.faceMission.EnableCollider(true);

        ClassSingleton <FacePresentAccessor> .Instance.facePresent.EnableCollider(true);

        GUIFace.instance.EnableCollider(true);
        GUIFaceIndicator.instance.EnableCollider(true);
        this.mainParts.Close(sound, new Action <int>(this.EndMoved));
        this.bannerPanel.SetMenuShowFlag(false);
        GUICollider.DisableAllCollider("PartsMenu_Collider");
    }
예제 #20
0
 public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
 {
     RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
     this.SetCommonUI();
     this.InitMonsterList(true);
     this.ChangeMode();
     this.ShowHaveMonster();
     base.SetTutorialAnyTime("anytime_second_tutorial_house");
     base.Show(f, sizeX, sizeY, aT);
     RestrictionInput.EndLoad();
     GUICollider.DisableAllCollider("CMD_FarewellListRun");
 }
예제 #21
0
    public virtual void Show(Action <int> f, float sizeX, float sizeY, float aT)
    {
        this.finish = f;
        base.gameObject.SetActive(true);
        Vector3 localPosition = base.transform.localPosition;

        localPosition.x += this.dialogLocationTable[(int)this.dialogLocation].x;
        localPosition.y += this.dialogLocationTable[(int)this.dialogLocation].y;
        base.transform.localPosition = localPosition;
        this.animeTime = aT;
        int i = 0;

        while (i < this.touchPanels.Count)
        {
            if (null == this.touchPanels[i])
            {
                this.touchPanels.RemoveAt(i);
            }
            else
            {
                i++;
            }
        }
        this.MakeAnimation(true, this.animeTime, iTween.EaseType.linear);
        switch (this.returnOrder)
        {
        case CommonDialog.ReturnOrder.SortTransform:
            this.touchPanels.Sort((GUICollider x, GUICollider y) => Math.Sign(x.gObject.transform.localPosition.x - y.gObject.transform.localPosition.x));
            break;

        case CommonDialog.ReturnOrder.SortName:
            this.touchPanels.Sort((GUICollider x, GUICollider y) => string.Compare(x.name, y.name));
            break;

        case CommonDialog.ReturnOrder.SortVerticalTransform:
            this.touchPanels.Sort((GUICollider x, GUICollider y) => Math.Sign(-x.gObject.transform.localPosition.y + y.gObject.transform.localPosition.y));
            break;
        }
        this.eventList = new List <Action <Touch, Vector2, bool> >();
        for (int j = 0; j < this.touchPanels.Count; j++)
        {
            this.AddButtonAction(j, this.touchPanels[j]);
        }
        this.openWait  = this.waitingTime;
        this.startShow = true;
        this.endShow   = false;
        if (!this.isColliderDisable)
        {
            GUICollider.DisableAllCollider("Awake CommonDialog = " + base.gameObject.name);
            this.isColliderDisable = true;
        }
    }
예제 #22
0
 public void FadeOutEfc(Action <int> act = null, bool immediate = false)
 {
     this.actEndCallBack = act;
     this.actCT          = 1;
     GUICollider.DisableAllCollider("ListPartsBS : " + base.gameObject.name);
     if (this.efcParam != null && this.ecc != null)
     {
         this.SetCT2Parent(1);
         float delayTime = this.GetDelayTime(false);
         if (delayTime < -10f)
         {
             this.actEndList(0);
             return;
         }
         Vector3 a          = base.GetOriginalPos();
         Vector3 vOffsetEnd = this.efcParam.vOffsetEnd;
         if (this.efcParam.isDoubleList && a.x > this.DOUBLE_LIST_RIGHT_TRETHOLD)
         {
             vOffsetEnd.x = -vOffsetEnd.x;
         }
         a += vOffsetEnd;
         Vector2 vector = new Vector2(a.x, a.y);
         if (!immediate)
         {
             this.ecc.MoveTo(vector, this.efcParam.time, new Action <int>(this.actEndList), this.efcParam.typeEnd, this.efcParam.delay + delayTime);
             if (this.efcParam.vLP_EndScale != Vector3.one)
             {
                 vector = new Vector2(this.efcParam.vLP_EndScale.x, this.efcParam.vLP_EndScale.y);
                 this.ecc.ScaleTo(vector, this.efcParam.time, null, this.efcParam.scaleTypeEnd, this.efcParam.delay + delayTime);
             }
             this.ofEndCol.a = this.efcParam.endAlpha;
             this.ecc.ColorTo(this.ofEndCol, this.efcParam.time, null, iTween.EaseType.linear, 0f);
         }
         else
         {
             this.ecc.SetPosX(vector.x);
             this.ecc.SetPosY(vector.y);
             if (this.efcParam.vLP_EndScale != Vector3.one)
             {
                 this.ecc.SetScale(this.efcParam.vLP_EndScale);
             }
             this.ofEndCol.a = this.efcParam.endAlpha;
             this.ecc.SetColor(this.ofEndCol);
             this.actEndList(0);
         }
     }
     else
     {
         this.actEndList(0);
     }
 }
예제 #23
0
    public override void Show(Action <int> closeEvent, float sizeX, float sizeY, float showAnimationTime)
    {
        GUICollider.DisableAllCollider("CMD_BlockList");
        RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        base.HideDLG();
        APIRequestTask task = BlockManager.instance().RequestBlockList(false);

        base.StartCoroutine(task.Run(delegate
        {
            RestrictionInput.EndLoad();
            this.ShowDLG();
            this.Initialize(closeEvent, sizeX, sizeY, showAnimationTime);
        }, delegate(Exception nop)
        {
            RestrictionInput.EndLoad();
            this.< ClosePanel > __BaseCallProxy0(false);
            GUICollider.EnableAllCollider("CMD_BlockList");
        }, null));
    }
예제 #24
0
 public virtual void ClosePanel(bool animation = true)
 {
     if (!this.isColliderDisable)
     {
         GUICollider.DisableAllCollider("ClosePanel CommonDialog = " + base.gameObject.name);
         this.isColliderDisable = true;
     }
     this.startShow = false;
     this.endShow   = true;
     if (animation)
     {
         this.MakeAnimation(false, this.animeTime, iTween.EaseType.linear);
     }
     else
     {
         this.MakeAnimation(false, 0f, iTween.EaseType.linear);
     }
     this.act_status = CommonDialog.ACT_STATUS.CLOSING;
 }
예제 #25
0
    protected override void Awake()
    {
        base.Awake();
        GameWebAPI.RespData_WorldMultiResultInfoLogic respData_WorldMultiResultInfoLogic  = ClassSingleton <QuestData> .Instance.RespData_WorldMultiResultInfoLogic;
        GameWebAPI.RespData_WorldMultiResultInfoLogic.DungeonReward.LinkBonus[] linkBonus = respData_WorldMultiResultInfoLogic.dungeonReward.linkBonus;
        if (linkBonus == null || linkBonus.Length == 0)
        {
            GUICollider.DisableAllCollider("CMD_FirstClear");
            return;
        }
        int num = linkBonus.Length;

        this.firstClearMessage.text = string.Empty;
        for (int i = 0; i < num; i++)
        {
            GameWebAPI.RespData_WorldMultiResultInfoLogic.DungeonReward.LinkBonus linkBonus2 = linkBonus[i];
            int type = linkBonus2.type;
            if (linkBonus2.reward != null && linkBonus2.reward.Length != 0)
            {
                for (int j = 0; j < linkBonus2.reward.Length; j++)
                {
                    GameWebAPI.RespData_WorldMultiResultInfoLogic.DungeonReward.LinkBonus.LinkBonusReward linkBonusReward = linkBonus2.reward[j];
                    string assetTitle = DataMng.Instance().GetAssetTitle(linkBonusReward.assetCategoryId, linkBonusReward.assetValue.ToString());
                    if (type != 1)
                    {
                        if (type == 2)
                        {
                            UILabel uilabel = this.firstClearMessage;
                            uilabel.text += string.Format(StringMaster.GetString("FirstLinkBonusFriend"), linkBonusReward.linkNum, assetTitle, linkBonusReward.assetNum);
                        }
                    }
                    else
                    {
                        UILabel uilabel2 = this.firstClearMessage;
                        uilabel2.text += string.Format(StringMaster.GetString("FirstLinkBonus"), linkBonusReward.linkNum, assetTitle, linkBonusReward.assetNum);
                    }
                    UILabel uilabel3 = this.firstClearMessage;
                    uilabel3.text += "\n";
                }
            }
        }
        GUICollider.DisableAllCollider("CMD_FirstClear");
    }
예제 #26
0
 public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
 {
     GUICollider.DisableAllCollider("CMD_PairSelectBase");
     base.HideDLG();
     base.PartsTitle.SetTitle(this.GetTitle());
     this.ShowMATInfo_0();
     this.ShowMATInfo_1();
     this.ClearTargetStatus();
     this.UpdateClusterNum();
     if (!this.CanEnter())
     {
         base.StartCoroutine(this.OpenMaxMessage());
     }
     else
     {
         base.ShowDLG();
         base.Show(f, sizeX, sizeY, aT);
     }
 }
예제 #27
0
    public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
    {
        GUICollider.DisableAllCollider("CMD_ArousalTOP");
        RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        base.HideDLG();
        base.PartsTitle.SetTitle(StringMaster.GetString("ArousalTitle"));
        this.SetCommonUI();
        this.InitMonsterList(true, false);
        this.ShowChgInfo();
        this.SetInactiveAllItemIcon(this._goITEM_ICON_LIST, this._goITEM_NUM_TEXT_LIST);
        this.SetInactiveAllItemIcon(this._goITEM_ICON_LIST_MAX_RANK, this._goITEM_NUM_TEXT_LIST_MAX_RANK);
        APIRequestTask task = Singleton <UserDataMng> .Instance.RequestUserSoulData(false);

        base.StartCoroutine(task.Run(delegate
        {
            RestrictionInput.EndLoad();
            this.ShowDLG();
            this.SetTutorialAnyTime("anytime_second_tutorial_arousal");
            this.< Show > __BaseCallProxy0(f, sizeX, sizeY, aT);
        }, delegate(Exception nop)
예제 #28
0
    private void ShowMainParts()
    {
        GUIManager.ExtBackKeyReady = false;
        GUIMain.GetUIRoot().BroadcastMessage("OnOpenMenuReceiver", SendMessageOptions.DontRequireReceiver);
        this.mainParts.Open(new Action <int>(this.EndMoved));
        this.bannerPanel.SetMenuShowFlag(true);
        GUICollider.DisableAllCollider("PartsMenu_Collider");
        FarmRoot farmRoot = FarmRoot.Instance;

        if (null != farmRoot)
        {
            farmRoot.ClearSettingFarmObject();
        }
        ClassSingleton <FaceMissionAccessor> .Instance.faceMission.EnableCollider(false);

        ClassSingleton <FacePresentAccessor> .Instance.facePresent.EnableCollider(false);

        GUIFace.instance.EnableCollider(false);
        GUIFaceIndicator.instance.EnableCollider(false);
    }
예제 #29
0
 public void FadeInEfc(Action <int> act = null)
 {
     this.actEndCallBack = act;
     this.actCT          = 1;
     GUICollider.DisableAllCollider("ListPartsBS : " + base.gameObject.name);
     if (this.efcParam != null && this.ecc != null)
     {
         float delayTime;
         if (!this.efcIn)
         {
             delayTime = this.delayAdd_reserve;
         }
         else
         {
             this.SetCT2Parent(1);
             delayTime = this.GetDelayTime(true);
         }
         if (delayTime < -10f)
         {
             this.actEndList(0);
             return;
         }
         Vector2 vector = new Vector2(base.GetOriginalPos().x, base.GetOriginalPos().y);
         this.ecc.MoveTo(vector, this.efcParam.time, new Action <int>(this.actEndList), this.efcParam.type, this.efcParam.delay + delayTime);
         if (this.efcParam.vLP_StartScale != Vector3.one)
         {
             this.ecc.SetScale(this.efcParam.vLP_StartScale);
             vector = new Vector2(1f, 1f);
             this.ecc.ScaleTo(vector, this.efcParam.time, null, this.efcParam.scaleType, this.efcParam.delay + delayTime);
         }
         this.ecc.SetColor(this.ofCol);
         this.ecc.ColorTo(this.onCol, this.efcParam.time, null, iTween.EaseType.linear, 0f);
     }
     else
     {
         this.actEndList(0);
     }
 }
예제 #30
0
    public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
    {
        GUICollider.DisableAllCollider("CMD_QuestSelect");
        List <QuestData.WorldAreaData> worldAreaM_Normal = ClassSingleton <QuestData> .Instance.GetWorldAreaM_Normal();

        this.worldAreaMList = new List <QuestData.WorldAreaData>();
        for (int i = 0; i < worldAreaM_Normal.Count; i++)
        {
            if (worldAreaM_Normal[i].isActive)
            {
                List <QuestData.WorldStageData> worldStageData_ByAreaID = ClassSingleton <QuestData> .Instance.GetWorldStageData_ByAreaID(worldAreaM_Normal[i].data.worldAreaId);

                DkLog.W(string.Format("{0} : {1} : {2}", worldAreaM_Normal[i].data.name, worldAreaM_Normal[i].isActive, worldStageData_ByAreaID.Count), false);
                if (worldStageData_ByAreaID.Count > 0)
                {
                    this.worldAreaMList.Add(worldAreaM_Normal[i]);
                }
            }
        }
        bool flag = this.IsColosseumOpen() && DataMng.Instance().IsReleaseColosseum;

        if (flag)
        {
            GameWebAPI.RespDataMA_GetWorldAreaM            respDataMA_WorldAreaM = MasterDataMng.Instance().RespDataMA_WorldAreaM;
            GameWebAPI.RespDataMA_GetWorldAreaM.WorldAreaM data = respDataMA_WorldAreaM.worldAreaM.Where((GameWebAPI.RespDataMA_GetWorldAreaM.WorldAreaM x) => x.worldAreaId == "5").FirstOrDefault <GameWebAPI.RespDataMA_GetWorldAreaM.WorldAreaM>();
            QuestData.WorldAreaData worldAreaData = new QuestData.WorldAreaData();
            worldAreaData.data     = data;
            worldAreaData.isActive = true;
            this.worldAreaMList.Add(worldAreaData);
        }
        base.PartsTitle.SetTitle(StringMaster.GetString("QuestTopTitle"));
        this.InitUI();
        base.Show(f, sizeX, sizeY, aT);
        base.SetTutorialAnyTime("anytime_second_tutorial_quest");
        RestrictionInput.EndLoad();
    }