Пример #1
0
 protected void OnQuery_SORTING()
 {
     GameSaveData.instance.SetSortBit(sortOrder);
     GameSaveData.Save();
     GameSection.SetEventData(sortOrder);
     GameSection.BackSection();
 }
 private void CheckNextLoginBonus()
 {
     if (MonoBehaviourSingleton <AccountManager> .I.logInBonus == null)
     {
         GameSection.BackSection();
     }
     else if (MonoBehaviourSingleton <AccountManager> .I.logInBonus.Count == 0)
     {
         GameSection.BackSection();
     }
     else
     {
         LoginBonus loginBonus = MonoBehaviourSingleton <AccountManager> .I.logInBonus[0];
         if (loginBonus.priority > 0)
         {
             DispatchEvent("LIMITED_LOGIN_BONUS", null);
         }
         else if (loginBonus.type == 0)
         {
             DispatchEvent("LOGIN_BONUS", null);
         }
         else
         {
             GameSection.BackSection();
         }
     }
 }
Пример #3
0
    private IEnumerator Wait(float time)
    {
        yield return((object)new WaitForSeconds(time));

        RequestEvent("BUNDLE_NOTICE", purchaseData);
        GameSection.BackSection();
    }
Пример #4
0
 public void Update()
 {
     if (isSuccessCrystalBuy && MonoBehaviourSingleton <GameSceneManager> .I.IsEventExecutionPossible() && !MonoBehaviourSingleton <GameSceneManager> .I.isChangeing)
     {
         isSuccessCrystalBuy = false;
         GameSection.BackSection();
     }
 }
 private void Update()
 {
     if (backSection && MonoBehaviourSingleton <GameSceneManager> .I.IsEventExecutionPossible() && !MonoBehaviourSingleton <GameSceneManager> .I.isChangeing)
     {
         backSection = false;
         GameSection.BackSection();
     }
 }
 private void OnQuery_CLOSE()
 {
     //IL_0017: Unknown result type (might be due to invalid IL or missing references)
     if (null != glowModel_)
     {
         glowModel_.get_gameObject().SetActive(false);
     }
     GameSection.BackSection();
 }
    public override void StartSection()
    {
        if (_info == null)
        {
            MonoBehaviourSingleton <GuildManager> .I.guildInviteList.Remove(guildInviteInfo);

            GameSection.BackSection();
        }
    }
Пример #8
0
 private void OnQuery_SELECT()
 {
     GameSection.SetEventData(new object[2]
     {
         m_data,
         GetSliderNum()
     });
     GameSection.BackSection();
 }
 public void Update()
 {
     if (_accountChangeSuccess && MonoBehaviourSingleton <GameSceneManager> .I.IsEventExecutionPossible() && !MonoBehaviourSingleton <GameSceneManager> .I.isChangeing)
     {
         _accountChangeSuccess = false;
         RequestEvent("CURRENT_DATA", null);
         GameSection.BackSection();
     }
 }
    private void OnQuery_FRAME_SELECT()
    {
        DegreeTable.DegreeData data      = GameSection.GetEventData() as DegreeTable.DegreeData;
        ChangeFrame            eventData = new ChangeFrame(data);

        GameSection.SetEventData(eventData);
        MonoBehaviourSingleton <GameSceneManager> .I.SetNotify(NOTIFY_FLAG.UPDATE_DEGREE_FRAME);

        GameSection.BackSection();
    }
Пример #11
0
 private IEnumerator _DoCloseDialog()
 {
     while (!MonoBehaviourSingleton <GameSceneManager> .I.IsEventExecutionPossible())
     {
         yield return((object)null);
     }
     if (!MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSectionName().Equals("BlackMarketTop"))
     {
         GameSection.BackSection();
         yield return((object)this.StartCoroutine(_DoCloseDialog()));
     }
 }
Пример #12
0
 private void ChangeToRankingState()
 {
     if (currentData.pointRankingData.beforeRank < 0 || currentData.pointRankingData.afterRank < 0)
     {
         GameSection.BackSection();
     }
     else
     {
         stateInitialized = false;
         skipRequest      = false;
         pointResultState = State.RANKING;
     }
 }
Пример #13
0
    private IEnumerator EndAnimation()
    {
        bool wait = true;

        PlayTween((Enum)UI.OBJ_IMG_ROOT, false, (EventDelegate.Callback) delegate
        {
            ((_003CEndAnimation_003Ec__Iterator76) /*Error near IL_0035: stateMachine*/)._003Cwait_003E__0 = false;
        }, true, 0);
        while (wait)
        {
            yield return((object)0);
        }
        GameSection.BackSection();
    }
Пример #14
0
 private void OnQuery_CLOSE()
 {
     //IL_0017: Unknown result type (might be due to invalid IL or missing references)
     if (null != glowModel_)
     {
         glowModel_.get_gameObject().SetActive(false);
     }
     if (MonoBehaviourSingleton <AccountManager> .I.logInBonus.Count > 0)
     {
         GameSection.ChangeEvent("LIMITED_LOGIN_BONUS", null);
     }
     else
     {
         GameSection.BackSection();
     }
 }
Пример #15
0
    private IEnumerator TimeCountDown()
    {
        UILabel timeLbl = GetCtrl(UI.LBL_TIME_COUNT).GetComponent <UILabel>();

        if (string.IsNullOrEmpty(GameSaveData.instance.resetMarketTime))
        {
            timeLbl.color = Color.get_red();
            timeLbl.text  = "00:00:00";
        }
        else
        {
            timeResetMarket = (int)GoGameTimeManager.GetRemainTime(GameSaveData.instance.resetMarketTime).TotalSeconds;
            for (currentNPCMessageIndex = 0; timeResetMarket > 3600; timeResetMarket = (int)GoGameTimeManager.GetRemainTime(GameSaveData.instance.resetMarketTime).TotalSeconds)
            {
                timeLbl.text = UIUtility.TimeFormat(timeResetMarket, true);
                yield return((object)new WaitForSeconds(0.25f));
            }
            timeLbl.color          = Color.get_red();
            currentNPCMessageIndex = 1;
            NPCMessageTable.Section npc_messgae = Singleton <NPCMessageTable> .I.GetSection(base.sectionData.sectionName + "_TEXT");

            if (npc_messgae != null)
            {
                NPCMessageTable.Message message = npc_messgae.messages[currentNPCMessageIndex];
                if (message != null)
                {
                    SetLabelText((Enum)UI.LBL_NPC_MESSAGE, message.message);
                }
            }
            while (timeResetMarket > 0)
            {
                timeLbl.text = SecondToTime(timeResetMarket);
                yield return((object)new WaitForSeconds(0.25f));

                timeResetMarket = (int)GoGameTimeManager.GetRemainTime(GameSaveData.instance.resetMarketTime).TotalSeconds;
            }
            yield return((object)null);

            MonoBehaviourSingleton <UIManager> .I.blackMarkeButton.Close(UITransition.TYPE.CLOSE);

            yield return((object)this.StartCoroutine(_DoCloseDialog()));

            GameSection.BackSection();
        }
    }
Пример #16
0
 public void OnQuery_CLOSE()
 {
     //IL_0017: Unknown result type (might be due to invalid IL or missing references)
     if (null != glowModel_)
     {
         glowModel_.get_gameObject().SetActive(false);
     }
     if (lb.type == 6 && lb.isBeginner2Pop && !showedBLBP)
     {
         showedBLBP = true;
         GameSection.StopEvent();
         DispatchEvent("BEGINNER_LOGIN_BONUS_POP", null);
     }
     else
     {
         GameSection.BackSection();
     }
 }
Пример #17
0
    public void OnQuery_CONFIRM_CHANGE()
    {
        bool flag = false;

        for (int i = 0; i < currentDegrees.Count; i++)
        {
            if (MonoBehaviourSingleton <UserInfoManager> .I.selectedDegreeIds[i] != currentDegrees[i])
            {
                flag = true;
                break;
            }
        }
        if (!flag)
        {
            GameSection.StopEvent();
            GameSection.BackSection();
        }
    }
Пример #18
0
 private void OnQuery_SELECT()
 {
     if (_info != null)
     {
         int num = GetSliderNum();
         if (num > 0)
         {
             GameSection.StayEvent();
             MonoBehaviourSingleton <GuildManager> .I.SendDonateSend(_info.id, num, delegate
             {
                 if (MonoBehaviourSingleton <GuildManager> .I.donateInviteList != null)
                 {
                     int count = MonoBehaviourSingleton <GuildManager> .I.donateInviteList.Count;
                     for (int i = 0; i < count; i++)
                     {
                         if (MonoBehaviourSingleton <GuildManager> .I.donateInviteList[i].id == _info.id)
                         {
                             MonoBehaviourSingleton <GuildManager> .I.donateInviteList[i].itemNum += num;
                             if (MonoBehaviourSingleton <GuildManager> .I.donateInviteList[i].itemNum >= MonoBehaviourSingleton <GuildManager> .I.donateInviteList[i].quantity)
                             {
                                 MonoBehaviourSingleton <GuildManager> .I.donateInviteList.RemoveAt(i);
                             }
                             break;
                         }
                     }
                 }
                 MonoBehaviourSingleton <GuildManager> .I.SendDonateList(delegate(bool donate_success)
                 {
                     GameSection.ResumeEvent(donate_success, null);
                     GameSection.BackSection();
                 });
             });
         }
         else
         {
             GameSection.BackSection();
         }
     }
     else
     {
         GameSection.SetEventData(GetSliderNum().ToString());
         GameSection.BackSection();
     }
 }
Пример #19
0
 public void OnQuery_OK()
 {
     if (isDelivery)
     {
         GameSection.StayEvent();
         MonoBehaviourSingleton <QuestManager> .I.SendGetDeliveryList(delegate(bool b)
         {
             GameSection.ChangeStayEvent("FROM_DELIVERY", null);
             GameSection.ResumeEvent(b, null);
         });
     }
     else if (isStoryComplete)
     {
         GameSection.ChangeEvent("TO_SELECT", null);
     }
     else
     {
         GameSection.BackSection();
     }
 }
Пример #20
0
 protected void OnQuery_BACK()
 {
     GameSection.SetEventData(null);
     GameSection.BackSection();
 }
Пример #21
0
 private void OnQuery_CLOSE()
 {
     GameSection.BackSection();
 }
    protected override void OnDecision()
    {
        List <GameSectionHistory.HistoryData> historyList = MonoBehaviourSingleton <GameSceneManager> .I.GetHistoryList();

        string sectionName = historyList[historyList.Count - 2].sectionName;
        bool   flag        = sectionName == "ItemDetailSkillDialog" || sectionName == "ItemDetailSkill";

        if (selectIndex == -1)
        {
            if (equipSkillItem == null)
            {
                GameSection.BackSection();
            }
            else
            {
                GameSection.ChangeEvent("DETACH", null);
                SendDetachEquipSkill();
            }
        }
        else
        {
            SortCompareData sortCompareData = inventory.datas[selectIndex];
            if (equipSkillItem != null && equipSkillItem.uniqueID == sortCompareData.GetUniqID())
            {
                GameSection.BackSection();
            }
            else
            {
                EquipItemInfo equipItemInfo = null;
                SkillItemInfo skillItemInfo = sortCompareData.GetItemData() as SkillItemInfo;
                if (skillItemInfo.IsCurrentEquipSetAttached)
                {
                    EquipSetSkillData equipSetSkillData = skillItemInfo.equipSetSkill.Find((EquipSetSkillData x) => x.equipSetNo == MonoBehaviourSingleton <StatusManager> .I.GetCurrentEquipSetNo());
                    equipItemInfo = MonoBehaviourSingleton <InventoryManager> .I.equipItemInventory.Find(equipSetSkillData.equipItemUniqId);
                }
                if (equipSkillItem != null)
                {
                    if (!skillItemInfo.IsCurrentEquipSetAttached)
                    {
                        GameSection.ChangeEvent((!flag) ? "EQUIP" : "EQUIP_DETAIL", null);
                        CheckSendEquipSkill();
                    }
                    else
                    {
                        GameSection.ChangeEvent((!flag) ? "STEAL" : "STEAL_DETAIL", new object[5]
                        {
                            equipSkillItem.tableData.name,
                            equipSkillItem.level.ToString(),
                            equipItemInfo.tableData.name,
                            sortCompareData.GetName(),
                            sortCompareData.GetLevel().ToString()
                        });
                    }
                }
                else if (skillItemInfo.IsCurrentEquipSetAttached)
                {
                    GameSection.ChangeEvent((!flag) ? "REPLACE" : "REPLACE_DETAIL", new object[3]
                    {
                        equipItemInfo.tableData.name,
                        sortCompareData.GetName(),
                        sortCompareData.GetLevel().ToString()
                    });
                }
                else
                {
                    GameSection.ChangeEvent((!flag) ? "EQUIP" : "EQUIP_DETAIL", null);
                    CheckSendEquipSkill();
                }
            }
        }
    }
 private void OnQuery_FILTERING()
 {
     GameSection.SetEventData(filter);
     GameSection.BackSection();
 }
 private void OnQuery_OK()
 {
     GameSection.BackSection();
 }
Пример #25
0
 private void OnQuery_CLOSE()
 {
     GameSection.SetEventData("0");
     GameSection.BackSection();
 }
Пример #26
0
    private IEnumerator DoInitialize()
    {
        bool connect = false;

        lb = null;
        if (GameSection.GetEventData() != null)
        {
            Protocol.Send <LoginBonusConfirmModel.RequestSendForm, LoginBonusConfirmModel>(post_data: new LoginBonusConfirmModel.RequestSendForm
            {
                loginBonusId = (int)GameSection.GetEventData()
            }, url : LoginBonusConfirmModel.URL, call_back : (Action <LoginBonusConfirmModel>) delegate(LoginBonusConfirmModel ret)
            {
                if (ret.Error == Error.None)
                {
                    if (ret != null && ret.result != null && ret.result.Count > 0)
                    {
                        ((_003CDoInitialize_003Ec__Iterator8D) /*Error near IL_0071: stateMachine*/)._003C_003Ef__this.lb = ret.result[0];
                    }
                    ((_003CDoInitialize_003Ec__Iterator8D) /*Error near IL_0071: stateMachine*/)._003Cconnect_003E__0 = true;
                }
            }, get_param: string.Empty);
            while (!connect)
            {
                yield return((object)null);
            }
        }
        if (!connect)
        {
            lb = MonoBehaviourSingleton <AccountManager> .I.logInBonus[0];
            MonoBehaviourSingleton <AccountManager> .I.logInBonus.Remove(lb);
        }
        if (lb == null)
        {
            base.Initialize();
            while (MonoBehaviourSingleton <GameSceneManager> .I.isChangeing)
            {
                yield return((object)null);
            }
            GameSection.BackSection();
        }
        else
        {
            arrayNow = 0;
            int i = 0;
            for (int count = lb.next.Count; i < count; i++)
            {
                if (lb.next[i].count == lb.nowCount)
                {
                    arrayNow = i;
                    break;
                }
                if (lb.next[i].count > lb.nowCount)
                {
                    arrayNow = i;
                    break;
                }
            }
            int logbo_column_num = 1 + (lb.next.Count - 1) / 5;
            int logbo_now_column = 1 + arrayNow / 5;
            if (logbo_column_num > 3)
            {
                if (logbo_now_column > logbo_column_num - 2)
                {
                    logbo_now_column = logbo_column_num - 2;
                }
                startScrPos = scrollStartHeight + iconHeight * (float)(logbo_now_column - 1);
                isFirst     = true;
            }
            else
            {
                isFirst = false;
            }
            SetPickUp();
            float rotateSpeed = 35f;
            if (pickUpReward.type == 5)
            {
                uint modelID3 = (uint)pickUpReward.itemId;
                texModelRenderTexture_.InitSkillItem(texModelTexture_, modelID3, true, false, 45f);
                texInnerModelRenderTexture_.InitSkillItemSymbol(texInnerModelTexture_, modelID3, true, 17f);
                isModel = true;
            }
            else if (pickUpReward.type == 4)
            {
                SetRenderEquipModel((Enum)UI.TEX_MODEL, (uint)pickUpReward.itemId, -1, -1, pickUpReward.GetScale());
                isModel = true;
            }
            else if (pickUpReward.type == 1 || pickUpReward.type == 2)
            {
                uint modelID = GetItemModelID((REWARD_TYPE)pickUpReward.type, pickUpReward.itemId);
                texModelRenderTexture_.InitItem(texModelTexture_, modelID, true);
                isModel = true;
            }
            else if (pickUpReward.type == 3 && IsDispItem3D(pickUpReward.itemId))
            {
                uint modelID2 = GetItemModelID((REWARD_TYPE)pickUpReward.type, pickUpReward.itemId);
                texModelRenderTexture_.InitItem(texModelTexture_, modelID2, true);
                isModel = true;
            }
            texModelRenderTexture_.SetRotateSpeed(rotateSpeed);
            texInnerModelRenderTexture_.SetRotateSpeed(rotateSpeed);
            LoadingQueue loadingQueue = new LoadingQueue(this);
            string       topImgName   = ResourceName.GetLoginBonusTopImage(lb.loginBonusId);
            topImageLoadObj = loadingQueue.Load(RESOURCE_CATEGORY.LOGINBONUS_IMAGE, topImgName, false);
            if (loadingQueue.IsLoading())
            {
                yield return((object)loadingQueue.Wait());
            }
            base.Initialize();
        }
    }