public override void UpdateUI()
    {
        //IL_017c: Unknown result type (might be due to invalid IL or missing references)
        Desc desc = GameSection.GetEventData() as Desc;

        if (desc != null)
        {
            QuestTable.QuestTableData questData = desc.questData;
            if (questData != null)
            {
                EnemyTable.EnemyData enemyData = Singleton <EnemyTable> .I.GetEnemyData((uint)questData.GetMainEnemyID());

                if (enemyData != null)
                {
                    int mainEnemyLv = questData.GetMainEnemyLv();
                    SetLabelText((Enum)UI.LBL_NAME, enemyData.name);
                    SetLabelText((Enum)UI.NUM_LV, mainEnemyLv.ToString());
                    SetElementSprite((Enum)UI.STR_ELEM, (int)enemyData.weakElement);
                    if (enemyData.weakElement != ELEMENT_TYPE.MAX)
                    {
                        SetActive((Enum)UI.STR_WEAK_NONE, false);
                    }
                    int num  = (int)(questData.limitTime / 60f);
                    int num2 = (int)(questData.limitTime % 60f);
                    SetLabelText((Enum)UI.NUM_TIMER, $"{num:D2}:{num2:D2}");
                    UI[] array = new UI[10]
                    {
                        UI.OBJ_DIFFICULT_STAR_1,
                        UI.OBJ_DIFFICULT_STAR_2,
                        UI.OBJ_DIFFICULT_STAR_3,
                        UI.OBJ_DIFFICULT_STAR_4,
                        UI.OBJ_DIFFICULT_STAR_5,
                        UI.OBJ_DIFFICULT_STAR_6,
                        UI.OBJ_DIFFICULT_STAR_7,
                        UI.OBJ_DIFFICULT_STAR_8,
                        UI.OBJ_DIFFICULT_STAR_9,
                        UI.OBJ_DIFFICULT_STAR_10
                    };
                    int num3 = (int)(questData.difficulty + 1);
                    int i    = 0;
                    for (int num4 = array.Length; i < num4; i++)
                    {
                        SetActive((Enum)array[i], i < num3);
                    }
                    PlayTween((Enum)UI.TWN_DIFFICULT_STAR, true, (EventDelegate.Callback)null, false, 0);
                    QuestInfoData.Mission[] array2 = QuestInfoData.CreateMissionData(questData);
                    if (array2 != null)
                    {
                        GetCtrl(UI.MISSION).get_gameObject().SetActive(true);
                        UI[] array3 = new UI[3]
                        {
                            UI.MISSION_LABEL_01,
                            UI.MISSION_LABEL_02,
                            UI.MISSION_LABEL_03
                        };
                        UI[] array4 = new UI[3]
                        {
                            UI.MISSION_CROWN_ON_01,
                            UI.MISSION_CROWN_ON_02,
                            UI.MISSION_CROWN_ON_03
                        };
                        UI[] array5 = new UI[3]
                        {
                            UI.MISSION_CROWN_OFF_01,
                            UI.MISSION_CROWN_OFF_02,
                            UI.MISSION_CROWN_OFF_03
                        };
                        int num5 = Mathf.Min(array2.Length, 3);
                        for (int j = 0; j < num5; j++)
                        {
                            QuestInfoData.Mission mission = array2[j];
                            SetActive((Enum)array4[j], CLEAR_STATUS.CLEAR == mission.state);
                            SetActive((Enum)array5[j], CLEAR_STATUS.CLEAR != mission.state);
                            SetLabelText((Enum)array3[j], mission.tableData.missionText);
                        }
                    }
                    if (desc.reward != null)
                    {
                        Array.Sort(desc.reward, (QuestInfoData.Quest.Reward l, QuestInfoData.Quest.Reward r) => l.priority - r.priority);
                    }
                    SetFontStyle((Enum)UI.LBL_NAME, 2);
                    SetFontStyle((Enum)UI.NUM_LV, 2);
                    SetFontStyle((Enum)UI.LBL_LV, 2);
                    countAnimStep = 0;
                    timeLimit     = MonoBehaviourSingleton <InGameSettingsManager> .I.happenQuestDirection.confirmUITime;
                    prevTime      = -1;
                    isAnswer      = false;
                    Update();
                    UpdateAnchors();
                    PlayTween((Enum)UI.OBJ_FRAME, true, (EventDelegate.Callback)null, true, 0);
                    PlayTween((Enum)UI.COUNT_ANIM_0, true, (EventDelegate.Callback)null, false, 0);
                }
            }
        }
    }
 public override void Initialize()
 {
     data = (GameSection.GetEventData() as SortCompareData);
     base.Initialize();
 }
 public override void Initialize()
 {
     base.Initialize();
     starValue = (int)GameSection.GetEventData();
 }
Exemplo n.º 4
0
 public override void Initialize()
 {
     desc = (GameSection.GetEventData() as string);
     base.Initialize();
 }
    private void OnQuery_RARITY()
    {
        int index = (int)GameSection.GetEventData();

        filter.FlipBit(Filter.CATEGORY.RARITY, index);
    }
    protected virtual IEnumerator DoInitialize()
    {
        LoadingQueue load_queue = new LoadingQueue(this);

        if (!isInGameScene)
        {
            bool is_recv_delivery = false;
            load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_questselect_new");
            load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_questselect_complete");
            MonoBehaviourSingleton <QuestManager> .I.SendGetDeliveryList(delegate
            {
                ((_003CDoInitialize_003Ec__IteratorB2) /*Error near IL_007a: stateMachine*/)._003Cis_recv_delivery_003E__1 = true;
            });

            while (!is_recv_delivery)
            {
                yield return((object)null);
            }
            sortSettings = SortSettings.CreateMemSortSettings(SortBase.DIALOG_TYPE.QUEST, SortSettings.SETTINGS_TYPE.ORDER_QUEST);
            InitQuestInfoData();
            if (load_queue.IsLoading())
            {
                yield return((object)load_queue.Wait());
            }
        }
        GetDeliveryList();
        string tab = GameSection.GetEventData() as string;

        switch (tab)
        {
        case "DAILY":
            selectedTab = UI.BTN_TAB_DAILY;
            break;

        case "WEEKLY":
            selectedTab = UI.BTN_TAB_WEEKLY;
            break;

        case "NORMAL":
            selectedTab = UI.BTN_TAB_NORMAL;
            break;

        default:
            selectedTab = SelectTabByPriority();
            break;
        }
        openRegionIds = MonoBehaviourSingleton <WorldMapManager> .I.GetOpenRegionIdListInWorldMap(REGION_DIFFICULTY_TYPE.NORMAL);

        Array.Reverse(openRegionIds);
        for (int i = 0; i < openRegionIds.Length; i++)
        {
            int        regionId   = (int)openRegionIds[i];
            string     bannerName = ResourceName.GetAreaBanner(regionId);
            LoadObject bannerObj  = load_queue.Load(RESOURCE_CATEGORY.AREA_BANNER, bannerName, false);
            if (load_queue.IsLoading())
            {
                yield return((object)load_queue.Wait());
            }
            Texture2D bannerTex = bannerObj.loadedObject as Texture2D;
            areaBanners.Add(bannerTex);
        }
        EndInitialize();
    }
    private void OnQuery_DETAIL()
    {
        int index = (int)GameSection.GetEventData();

        GameSection.SetEventData(CreateDetailEventData(index));
    }
Exemplo n.º 8
0
    private IEnumerator DoInitialize()
    {
        EventData eventData = GameSection.GetEventData() as EventData;

        if (eventData == null)
        {
            base.Initialize();
        }
        else
        {
            uint regionId = eventData.regionId;
            fromBoss_   = eventData.fromBoss;
            toBoss_     = eventData.toBoss;
            portalData_ = Singleton <FieldMapTable> .I.GetPortalData(eventData.portalId);

            if (portalData_ == null)
            {
                base.Initialize();
            }
            else
            {
                LoadingQueue loadQueue                = new LoadingQueue(this);
                LoadObject   loadedExploreMapFrame    = loadQueue.Load(RESOURCE_CATEGORY.WORLDMAP, "ExploreMapFrame", false);
                LoadObject   loadedExploreMap         = loadQueue.Load(RESOURCE_CATEGORY.WORLDMAP, "ExploreMap_" + regionId.ToString("D3"), false);
                LoadObject   loadedPlayerMarker       = loadQueue.Load(RESOURCE_CATEGORY.WORLDMAP, "ExplorePlayerMarker", false);
                LoadObject   loadedCircle             = loadQueue.Load(RESOURCE_CATEGORY.WORLDMAP, "ExploreCircle", false);
                LoadObject   loadedBattleIcon         = loadQueue.Load(RESOURCE_CATEGORY.WORLDMAP, "ExploreBattleMarker", false);
                LoadObject   loadedFootprint          = loadQueue.Load(RESOURCE_CATEGORY.WORLDMAP, "ExploreTraceMarker", false);
                LoadObject   loadedEncounterBossCutIn = null;
                if (toBoss_)
                {
                    loadedEncounterBossCutIn = loadQueue.Load(RESOURCE_CATEGORY.UI, "InGameFieldQuestWarning", false);
                }
                if (loadQueue.IsLoading())
                {
                    yield return((object)loadQueue.Wait());
                }
                if (null == loadedExploreMap.loadedObject)
                {
                    base.Initialize();
                }
                else
                {
                    if (loadedEncounterBossCutIn != null)
                    {
                        fieldQuestWarningRoot = ResourceUtility.Realizes(loadedEncounterBossCutIn.loadedObject, -1).get_gameObject();
                        UIPanel panel2 = fieldQuestWarningRoot.GetComponentInChildren <UIPanel>();
                        if (panel2 != null)
                        {
                            panel2.depth = 12000;
                        }
                        if (MonoBehaviourSingleton <UIInGameFieldQuestWarning> .IsValid())
                        {
                            MonoBehaviourSingleton <UIInGameFieldQuestWarning> .I.Load(loadQueue);
                        }
                    }
                    mapFrame_ = ResourceUtility.Realizes(loadedExploreMapFrame.loadedObject, base._transform, -1);
                    if (toBoss_)
                    {
                        UIPanel panel = mapFrame_.GetComponent <UIPanel>();
                        panel.renderQueue         = UIPanel.RenderQueue.StartAt;
                        panel.startingRenderQueue = 2900;
                    }
                    map_ = ResourceUtility.Realizes(loadedExploreMap.loadedObject, mapFrame_, -1);
                    Transform map = map_.FindChild("Map");
                    map.get_gameObject().SetActive(true);
                    mapRoot_ = map_.GetComponent <ExploreMapRoot>();
                    ExploreMapLocation[] locations = mapRoot_.locations;
                    for (int k = 0; k < locations.Length; k++)
                    {
                        Transform active   = locations[k].get_transform().FindChild("ExploreSpotActive");
                        Transform inactive = locations[k].get_transform().FindChild("ExploreSpotInactive");
                        Transform sonar    = locations[k].get_transform().FindChild("ExploreSpotSonar");
                        active.get_gameObject().SetActive(true);
                        inactive.get_gameObject().SetActive(false);
                        List <FieldMapTable.FieldGimmickPointTableData> gimmicks = Singleton <FieldMapTable> .I.GetFieldGimmickPointListByMapID((uint)locations[k].mapId);

                        if (gimmicks != null && sonar != null)
                        {
                            for (int i = 0; i < gimmicks.Count; i++)
                            {
                                if (gimmicks[i].gimmickType == FieldMapTable.FieldGimmickPointTableData.GIMMICK_TYPE.SONAR)
                                {
                                    active.get_gameObject().SetActive(false);
                                    inactive.get_gameObject().SetActive(false);
                                    sonar.get_gameObject().SetActive(true);
                                }
                            }
                        }
                    }
                    mapRoot_.UpdatePortals(false);
                    from_ = mapRoot_.FindLocation((int)portalData_.srcMapID);
                    to_   = mapRoot_.FindLocation((int)portalData_.dstMapID);
                    if (null == to_)
                    {
                        base.Initialize();
                    }
                    else
                    {
                        ExploreMapFrame frame = mapFrame_.GetComponent <ExploreMapFrame>();
                        frame.SetMap(mapRoot_);
                        RegionTable.Data regionData = Singleton <RegionTable> .I.GetData(regionId);

                        if (regionData != null)
                        {
                            frame.SetCaption(regionData.regionName);
                        }
                        for (int j = 0; j < playerMarkers_.Length; j++)
                        {
                            playerMarkers_[j] = ResourceUtility.Realizes(loadedPlayerMarker.loadedObject, mapFrame_, -1);
                            ExplorePlayerMarker marker = playerMarkers_[j].GetComponent <ExplorePlayerMarker>();
                            if (null != marker)
                            {
                                marker.SetIndex(j);
                            }
                            marker.get_gameObject().SetActive(false);
                        }
                        selfMarker_ = playerMarkers_[0];
                        Transform bg = mapFrame_.FindChild("BG");
                        bg.get_gameObject().SetActive(true);
                        bgEventListener = UIEventListener.Get(bg.get_gameObject());
                        mapFrame_.FindChild("TaptoSkip").get_gameObject().SetActive(!toBoss_);
                        mapFrame_.FindChild("CaptionRoot/Close").get_gameObject().SetActive(false);
                        mapRoot_.SetMarkers(playerMarkers_, false);
                        ExploreStatus.TraceInfo[] traceHistory = MonoBehaviourSingleton <QuestManager> .I.GetBossTraceHistory();

                        if (traceHistory != null && traceHistory.Length > 0)
                        {
                            Transform lastFootprint          = ResourceUtility.Realizes(loadedFootprint.loadedObject, map_, -1);
                            ExploreStatus.TraceInfo lastInfo = traceHistory[traceHistory.Length - 1];
                            Vector3 lastPos = mapRoot_.GetPositionOnMap(lastInfo.mapId);
                            lastFootprint.set_localPosition(new Vector3(lastPos.x + MarkerOffsetX, lastPos.y + MarkerOffsetY, lastPos.z));
                            lastFootprint.get_gameObject().SetActive(true);
                            if (traceHistory.Length > 1)
                            {
                                Transform lastSecondFootprint          = ResourceUtility.Realizes(loadedFootprint.loadedObject, map_, -1);
                                ExploreStatus.TraceInfo lastSecondInfo = traceHistory[traceHistory.Length - 2];
                                Vector3 lastSecondPos = mapRoot_.GetPositionOnMap(lastSecondInfo.mapId);
                                lastSecondFootprint.set_localPosition(new Vector3(lastSecondPos.x + MarkerOffsetX, lastSecondPos.y + MarkerOffsetY, lastSecondPos.z));
                                lastSecondFootprint.get_gameObject().SetActive(true);
                            }
                        }
                        redCircle = ResourceUtility.Realizes(loadedCircle.loadedObject, map_, -1);
                        redCircle.set_localScale(new Vector3(0.6f, 0.6f, 0.6f));
                        battleIcon = ResourceUtility.Realizes(loadedBattleIcon.loadedObject, map_, -1);
                        if (mapRoot_.showBattleMarker)
                        {
                            int bossMapId = MonoBehaviourSingleton <QuestManager> .I.GetExploreBossAppearMapId();

                            Vector3 pos = mapRoot_.GetPositionOnMap(bossMapId);
                            redCircle.set_localPosition(pos);
                            battleIcon.set_localPosition(new Vector3(pos.x + MarkerOffsetX, pos.y + MarkerOffsetY, pos.z));
                            TweenAlpha tweenAlpha = redCircle.GetComponent <TweenAlpha>();
                            if (null != tweenAlpha)
                            {
                                tweenAlpha.from = tweenAlpha.to;
                            }
                            redCircle.get_gameObject().SetActive(true);
                            battleIcon.get_gameObject().SetActive(true);
                        }
                        else
                        {
                            redCircle.get_gameObject().SetActive(false);
                            battleIcon.get_gameObject().SetActive(false);
                        }
                        base.Initialize();
                    }
                }
            }
        }
    }
 private void OnQuery_CHOSE_MATERIAL()
 {
     chooseIndex = (int)GameSection.GetEventData();
     GameSection.ChangeEvent("OPEN_SEND_DIALOG", null);
 }
Exemplo n.º 10
0
    protected void OnQuery_ORDER_TYPE()
    {
        bool orderTypeAsc = (int)GameSection.GetEventData() == 0;

        sortOrder.orderTypeAsc = orderTypeAsc;
    }
 public override void Initialize()
 {
     sellItem = (GameSection.GetEventData() as List <QuestItem.SellItem>);
     sellItem.Sort((QuestItem.SellItem l, QuestItem.SellItem r) => l.pri - r.pri);
     base.Initialize();
 }
Exemplo n.º 12
0
    protected void OnQuery_REQUIREMENT()
    {
        SORT_REQUIREMENT requirement = (SORT_REQUIREMENT)(int)GameSection.GetEventData();

        sortOrder.requirement = requirement;
    }
Exemplo n.º 13
0
 public override void Initialize()
 {
     sortOrder     = (SortSettings)GameSection.GetEventData();
     baseSortOrder = sortOrder.Clone();
     base.Initialize();
 }
    private void OnQuery_SELECT_EXPLORE()
    {
        int  num  = (int)GameSection.GetEventData();
        bool flag = MonoBehaviourSingleton <DeliveryManager> .I.IsCompletableDelivery(deliveryInfo[num].dId);

        int delivery_id = deliveryInfo[num].dId;

        if (flag)
        {
            DeliveryTable.DeliveryData table = Singleton <DeliveryTable> .I.GetDeliveryTableData((uint)deliveryInfo[num].dId);

            changeToDeliveryClearEvent = true;
            bool is_tutorial        = !TutorialStep.HasFirstDeliveryCompleted();
            bool enable_clear_event = table.clearEventID != 0;
            GameSection.StayEvent();
            MonoBehaviourSingleton <DeliveryManager> .I.isStoryEventEnd = false;
            MonoBehaviourSingleton <DeliveryManager> .I.SendDeliveryComplete(deliveryInfo[num].uId, enable_clear_event, delegate(bool is_success, DeliveryRewardList recv_reward)
            {
                if (is_success)
                {
                    List <FieldMapTable.PortalTableData> deliveryRelationPortalData = Singleton <FieldMapTable> .I.GetDeliveryRelationPortalData((uint)delivery_id);
                    for (int i = 0; i < deliveryRelationPortalData.Count; i++)
                    {
                        GameSaveData.instance.newReleasePortals.Add(deliveryRelationPortalData[i].portalID);
                    }
                    if (is_tutorial)
                    {
                        TutorialStep.isSendFirstRewardComplete = true;
                    }
                    if (!enable_clear_event)
                    {
                        MonoBehaviourSingleton <DeliveryManager> .I.isStoryEventEnd = false;
                        GameSection.ChangeStayEvent("EXPLORE_REWARD", new object[2]
                        {
                            delivery_id,
                            recv_reward
                        });
                    }
                    else
                    {
                        GameSection.ChangeStayEvent("CLEAR_EVENT", new object[3]
                        {
                            (int)table.clearEventID,
                            delivery_id,
                            recv_reward
                        });
                    }
                }
                else
                {
                    changeToDeliveryClearEvent = false;
                }
                GameSection.ResumeEvent(is_success, null);
            });
        }
        else
        {
            int num2 = (from x in MonoBehaviourSingleton <InventoryManager> .I.abilityItemInventory.GetAll()
                        where x.equipUniqueId == 0
                        select x).Count();
            if (num2 >= MonoBehaviourSingleton <UserInfoManager> .I.userStatus.maxAbilityItem)
            {
                GameSection.ChangeEvent("LIMIT_ABILITY_ITEM", null);
            }
            else
            {
                GameSection.SetEventData(new object[2]
                {
                    delivery_id,
                    null
                });
            }
        }
    }
Exemplo n.º 15
0
 private void OnQuery_PP_TO_BUY()
 {
     pp = (GameSection.GetEventData() as string);
     SendGoldCanPurchase();
 }
Exemplo n.º 16
0
    private void OnQuery_MESSAGE()
    {
        FriendCharaInfo talkUser = GameSection.GetEventData() as FriendCharaInfo;

        MonoBehaviourSingleton <GuildManager> .I.SetTalkUser(talkUser);
    }
    public void OnQuery_SELECT_DELIVERY()
    {
        int  index = (int)GameSection.GetEventData();
        bool is_enough_material = MonoBehaviourSingleton <DeliveryManager> .I.IsCompletableDelivery(deliveryInfo[index].dId);

        int  delivery_id     = deliveryInfo[index].dId;
        bool is_happen_quest = false;

        DeliveryTable.DeliveryData deliveryTableData = Singleton <DeliveryTable> .I.GetDeliveryTableData((uint)delivery_id);

        if (deliveryTableData != null)
        {
            QuestTable.QuestTableData questData = deliveryTableData.GetQuestData();
            if (questData != null && questData.questType == QUEST_TYPE.HAPPEN)
            {
                is_happen_quest = true;
            }
        }
        if (is_enough_material)
        {
            if (isInGameScene && deliveryTableData.IsInvalidClearIngame())
            {
                GameSection.ChangeEvent("DELIVERY_ITEM_COMPLETE", null);
            }
            else if (isInGameScene)
            {
                GameSection.StayEvent();
                MonoBehaviourSingleton <CoopManager> .I.coopStage.fieldRewardPool.SendFieldDrop(delegate(bool b)
                {
                    if (b)
                    {
                        SendDeliveryComplete(index, delivery_id, is_enough_material, is_happen_quest);
                        if (Singleton <FieldMapTable> .I.GetDeliveryRelationPortalData((uint)delivery_id) != null)
                        {
                            MonoBehaviourSingleton <DeliveryManager> .I.CheckAnnouncePortalOpen();
                        }
                    }
                });
            }
            else
            {
                GameSection.StayEvent();
                SendDeliveryComplete(index, delivery_id, is_enough_material, is_happen_quest);
            }
        }
        else if (is_happen_quest)
        {
            GameSection.ChangeEvent("SELECT_DELIVERY_HAPPEN", new object[2]
            {
                delivery_id,
                null
            });
        }
        else
        {
            GameSection.SetEventData(new object[2]
            {
                delivery_id,
                null
            });
        }
    }
 public override void Initialize()
 {
     object[] array = GameSection.GetEventData() as object[];
     mapData = (array[3] as RegionMap.SpotEventData);
     base.Initialize();
 }
Exemplo n.º 19
0
    private void OnQuery_DETAIL()
    {
        int num = (int)GameSection.GetEventData();

        GameSection.ChangeEvent("USE_ITEM_SELECT", inventory.datas[num]);
    }
 public override void Initialize()
 {
     //IL_0017: Unknown result type (might be due to invalid IL or missing references)
     _clanId = (int)GameSection.GetEventData();
     this.StartCoroutine(DoInitialize());
 }
Exemplo n.º 21
0
 private void OnQuery_SELECT_EXPLORE()
 {
     Network.EventData ev = GameSection.GetEventData() as Network.EventData;
     if (ev != null)
     {
         if (ev.HasEndDate() && ev.GetRest() < 0)
         {
             GameSection.ChangeEvent("SELECT_ENDED", null);
         }
         else
         {
             Version nativeVersionFromName = NetworkNative.getNativeVersionFromName();
             if (!ev.IsPlayableWith(nativeVersionFromName))
             {
                 string event_data = string.Format(base.sectionData.GetText("REQUIRE_HIGHER_VERSION"), ev.minVersion);
                 GameSection.ChangeEvent("SELECT_VERSION", event_data);
             }
             else
             {
                 if (!ev.readPrologueStory)
                 {
                     GameSection.StayEvent();
                     MonoBehaviourSingleton <QuestManager> .I.SendQuestReadEventStory(ev.eventId, delegate(bool success, Error error)
                     {
                         if (success)
                         {
                             if (ev.prologueStoryId > 0)
                             {
                                 GameSceneTables.EventData eventData = base.sectionData.GetEventData("STORY");
                                 if (eventData != null)
                                 {
                                     string name       = (!MonoBehaviourSingleton <LoungeMatchingManager> .I.IsInLounge()) ? "MAIN_MENU_HOME" : "MAIN_MENU_LOUNGE";
                                     EventData[] array = new EventData[3]
                                     {
                                         new EventData(name, null),
                                         new EventData("EXPLORE", null),
                                         new EventData("SELECT_EXPLORE", ev.eventId)
                                     };
                                     GameSection.ChangeStayEvent("STORY", new object[4]
                                     {
                                         ev.prologueStoryId,
                                         string.Empty,
                                         string.Empty,
                                         array
                                     });
                                 }
                             }
                             ev.readPrologueStory = true;
                         }
                         if (ev.eventType == 12)
                         {
                             GameSection.ChangeStayEvent("SELECT_RUSH", ev);
                         }
                         GameSection.ResumeEvent(true, null);
                     });
                 }
                 if (ev.eventType == 12)
                 {
                     GameSection.ChangeEvent("SELECT_RUSH", ev);
                 }
             }
         }
     }
 }
 protected void OnCloseDialog_QuestAcceptChallengeRoomCondition()
 {
     QuestAcceptChallengeRoomCondition.ChallengeSearchRequestParam challengeSearchRequestParam = GameSection.GetEventData() as QuestAcceptChallengeRoomCondition.ChallengeSearchRequestParam;
     if (challengeSearchRequestParam != null && challengeSearchRequestParam.order == 1)
     {
         param     = challengeSearchRequestParam;
         nowPage   = 1;
         isResetUI = true;
         RefreshUI();
     }
 }
    public override void Initialize()
    {
        //IL_0186: Unknown result type (might be due to invalid IL or missing references)
        //IL_0197: Expected O, but got Unknown
        object[] array  = GameSection.GetEventData() as object[];
        Filter   filter = array[0] as Filter;

        if (filter == null)
        {
            filter            = new Filter();
            filter.typeFilter = new Filter.CheckFilterBase[12]
            {
                new Filter.TicketCheckFilter(UI.BTN_TICKET),
                new Filter.MoneyCheckFilter(UI.BTN_MONEY),
                new Filter.UseItemCheckFilter(UI.BTN_USE_ITEM),
                new Filter.LithographCheckFilter(UI.BTN_LITHOGRAPH),
                new Filter.MetalCheckFilter(UI.BTN_METAL),
                new Filter.MaterialCheckFilter(UI.BTN_MATERIAL),
                new Filter.QuestCheckFilter(UI.BTN_QUEST),
                new Filter.SkillCheckFilter(UI.BTN_SKILL),
                new Filter.EquipCheckFilter(UI.BTN_EQUIP),
                new Filter.StampCheckFilter(UI.BTN_STAMP),
                new Filter.AvatarCheckFilter(UI.BTN_AVATAR),
                new Filter.DegreeCheckFilter(UI.BTN_DEGREE)
            };
            filter.typeBit      = filter.GetAllTrueBit(Filter.CATEGORY.TYPE);
            filter.rarityFilter = new Filter.CheckFilterBase[6]
            {
                new Filter.RarityCheckFilter(UI.BTN_RARITY_D, RARITY_TYPE.D),
                new Filter.RarityCheckFilter(UI.BTN_RARITY_C, RARITY_TYPE.C),
                new Filter.RarityCheckFilter(UI.BTN_RARITY_B, RARITY_TYPE.B),
                new Filter.RarityCheckFilter(UI.BTN_RARITY_A, RARITY_TYPE.A),
                new Filter.RarityCheckFilter(UI.BTN_RARITY_S, RARITY_TYPE.S),
                new Filter.RarityCheckFilter(UI.BTN_RARITY_SS, RARITY_TYPE.SS)
            };
            filter.rarityBit = filter.GetAllTrueBit(Filter.CATEGORY.RARITY);
        }
        this.filter = filter;
        List <PointShopItem> list = array[1] as List <PointShopItem>;

        Filter.CheckFilterBase[] typeFilter = this.filter.typeFilter;
        foreach (Filter.CheckFilterBase checkFilterBase in typeFilter)
        {
            SetEvent((Enum)checkFilterBase.checkboxUI, "TYPE", (int)checkFilterBase.type);
            if (list != null)
            {
                bool flag = checkFilterBase.IsInclude(list);
                SetActive((Enum)checkFilterBase.checkboxUI, flag);
                SetActive(GetCtrl(checkFilterBase.checkboxUI).get_parent(), UI.SPR_GRAY, !flag);
            }
        }
        Filter.CheckFilterBase[] rarityFilter = this.filter.rarityFilter;
        foreach (Filter.CheckFilterBase checkFilterBase2 in rarityFilter)
        {
            SetEvent((Enum)checkFilterBase2.checkboxUI, "RARITY", (int)checkFilterBase2.rarity);
        }
        SetEvent((Enum)UI.BTN_ALL_DESELECT, "ALL", 0);
        SetEvent((Enum)UI.BTN_ALL_SELECT, "ALL", 1);
        RefreshUI();
        base.Initialize();
    }
Exemplo n.º 24
0
 public override void Initialize()
 {
     data = (GameSection.GetEventData() as FriendCharaInfo);
     base.Initialize();
 }
Exemplo n.º 25
0
 public override void Initialize()
 {
     setNo = (int)(GameSection.GetEventData() as object[])[0];
     info  = ((GameSection.GetEventData() as object[])[1] as EquipSetInfo);
     base.Initialize();
 }
 public override void Initialize()
 {
     data = (GameSection.GetEventData() as SortCompareData);
     GameSaveData.instance.RemoveNewIconAndSave(ITEM_ICON_TYPE.USE_ITEM, data.GetUniqID());
     base.Initialize();
 }
Exemplo n.º 27
0
 public override void InitializeReopen()
 {
     equipItemInfo = (GameSection.GetEventData() as EquipItemInfo);
     base.InitializeReopen();
 }
Exemplo n.º 28
0
 public override void Initialize()
 {
     selectEquipSetData = (GameSection.GetEventData() as StatusEquip.LocalEquipSetData);
     base.Initialize();
 }