protected override void OnQuery_SELECT_ITEM()
	{
		if (localInventoryEquipData == null || localInventoryEquipData.Length == 0)
		{
			GameSection.StopEvent();
		}
		else
		{
			SmithManager.SmithGrowData smithData = MonoBehaviourSingleton<SmithManager>.I.GetSmithData<SmithManager.SmithGrowData>();
			if (smithData == null)
			{
				GameSection.StopEvent();
			}
			else
			{
				EquipItemInfo selectEquipData = smithData.selectEquipData;
				if (selectEquipData.IsLevelMax())
				{
					if (selectEquipData.tableData.IsEvolve())
					{
						GameSection.ChangeEvent("EVOLVE", null);
					}
					else if (selectEquipData.IsExceedMax() && !selectEquipData.tableData.IsShadow())
					{
						GameSection.ChangeEvent("ALREADY_LV_MAX", null);
					}
				}
			}
		}
	}
Beispiel #2
0
    private void OnQuery_SKILL_DETAIL()
    {
        uint itemId;

        if (GameSection.GetEventData() is int)
        {
            int num   = (int)GameSection.GetEventData();
            int count = MonoBehaviourSingleton <GachaManager> .I.gachaResult.reward.Count;
            if (num < 0 || num >= count)
            {
                GameSection.StopEvent();
                return;
            }
            itemId = (uint)MonoBehaviourSingleton <GachaManager> .I.gachaResult.reward[num].itemId;
        }
        else
        {
            itemId = (uint)nextGuachaGuarantee.itemId;
        }
        SkillItemTable.SkillItemData skillItemData = Singleton <SkillItemTable> .I.GetSkillItemData(itemId);

        if (skillItemData == null)
        {
            GameSection.StopEvent();
        }
        else
        {
            GameSection.SetEventData(new object[2]
            {
                ItemDetailEquip.CURRENT_SECTION.GACHA_RESULT,
                skillItemData
            });
        }
    }
Beispiel #3
0
    private void OnQuery_SKIP()
    {
        switch (animState)
        {
        case RESULT_ANIM_STATE.TITLE:
        case RESULT_ANIM_STATE.WAVE:
        case RESULT_ANIM_STATE.TIME:
        case RESULT_ANIM_STATE.ARRIVAL:
            SkipTween((Enum)UI.OBJ_TITLE, true, 0);
            SkipTween((Enum)UI.OBJ_WAVE, true, 0);
            SkipTween((Enum)UI.OBJ_TIME, true, 0);
            SkipTween((Enum)UI.OBJ_ARRIVAL_EFFECT, true, 1);
            SkipTween((Enum)UI.OBJ_ARRIVAL_EFFECT, true, 2);
            SkipTween((Enum)UI.OBJ_ARRIVAL_EFFECT, true, 3);
            break;

        case RESULT_ANIM_STATE.ARRIVAL_NEXT:
            SkipTween((Enum)UI.OBJ_ARRIVAL_EFFECT, true, 4);
            SkipTween((Enum)UI.OBJ_ARRIVAL_BONUS, true, 0);
            break;

        case RESULT_ANIM_STATE.TREASURE:
            SkipTween((Enum)UI.OBJ_POINT_SHOP_RESULT_ROOT, true, 0);
            SkipTween((Enum)UI.OBJ_MONEY, true, 0);
            SkipTween((Enum)UI.OBJ_TREASURE_ROOT, true, 0);
            break;
        }
        is_skip = true;
        GameSection.StopEvent();
    }
    private void OnQuery_QUEST_DETAIL()
    {
        int num   = (int)GameSection.GetEventData();
        int count = MonoBehaviourSingleton <GachaManager> .I.gachaResult.reward.Count;

        if (num < 0 || num >= count)
        {
            GameSection.StopEvent();
        }
        else
        {
            QuestItemInfo questItem = MonoBehaviourSingleton <InventoryManager> .I.GetQuestItem((uint)MonoBehaviourSingleton <GachaManager> .I.gachaResult.reward[num].itemId);

            if (questItem == null)
            {
                GameSection.StopEvent();
            }
            else
            {
                QuestSortData questSortData = new QuestSortData();
                questSortData.SetItem(questItem);
                GameSection.SetEventData(questSortData);
            }
        }
    }
    public void OnQuery_SELECT_ORDER_FROM_ITEM_DETAIL()
    {
        uint num = (uint)GameSection.GetEventData();

        if (num == 0)
        {
            GameSection.StopEvent();
        }
        else if (!MonoBehaviourSingleton <GameSceneManager> .I.CheckQuestAndOpenUpdateAppDialog(num, true))
        {
            GameSection.StopEvent();
        }
        else
        {
            QuestInfoData questInfoData = MonoBehaviourSingleton <QuestManager> .I.GetQuestInfoData(num);

            if (questInfoData == null)
            {
                GameSection.StopEvent();
            }
            else
            {
                MonoBehaviourSingleton <QuestManager> .I.SetCurrentQuestID(num, true);

                GameSection.SetEventData(questInfoData);
                isScrollViewReady = false;
            }
        }
    }
Beispiel #6
0
    protected void OnQuery_CHANGE()
    {
        if (localEquipSetData == null)
        {
            GameSection.StopEvent();
        }
        else
        {
            MonoBehaviourSingleton <StatusManager> .I.SetEquippingItem(localEquipSetData.equipSetInfo.item[localEquipSetData.index]);

            MonoBehaviourSingleton <InventoryManager> .I.changeInventoryType = StatusTop.GetInventoryType(localEquipSetData.equipSetInfo, localEquipSetData.index);
            if (!MonoBehaviourSingleton <UserInfoManager> .I.CheckTutorialBit(TUTORIAL_MENU_BIT.GACHA2))
            {
                List <EquipItemInfo> weaponInventory = MonoBehaviourSingleton <InventoryManager> .I.GetWeaponInventory();

                for (int i = 0; i < weaponInventory.Count; i++)
                {
                    if (weaponInventory[i].tableData.rarity >= RARITY_TYPE.S)
                    {
                        MonoBehaviourSingleton <InventoryManager> .I.changeInventoryType = (InventoryManager.INVENTORY_TYPE)(UIBehaviour.GetEquipmentTypeIndex(weaponInventory[i].tableData.type) + 1);
                        break;
                    }
                }
            }
            DetailEquipEventData detailEquipEventData = new DetailEquipEventData(gameEventData, localEquipSetData);
            GameSection.SetEventData(detailEquipEventData);
        }
    }
    public void OnQuery_GACHA_DETAIL_MAX_PARAM_FROM_NEWS()
    {
        object[] array = GameSection.GetEventData() as object[];
        uint     num   = (uint)array[0];
        int      num2  = (int)array[1];

        CreateEquipItemTable.CreateEquipItemData[] sortedCreateEquipItemsByPart = Singleton <CreateEquipItemTable> .I.GetSortedCreateEquipItemsByPart(num);

        if (num2 >= sortedCreateEquipItemsByPart.Length || num2 <= -1)
        {
            GameSection.StopEvent();
        }
        else
        {
            CreateEquipItemTable.CreateEquipItemData createEquipItemData = sortedCreateEquipItemsByPart[num2];
            uint equipItemID = createEquipItemData.equipItemID;
            EquipItemTable.EquipItemData equipItemData = Singleton <EquipItemTable> .I.GetEquipItemData(equipItemID);

            GameSection.ChangeEvent("DETAIL_MAX_PARAM", new object[3]
            {
                ItemDetailEquip.CURRENT_SECTION.GACHA_EQUIP_PREVIEW,
                equipItemData,
                num
            });
        }
    }
Beispiel #8
0
 protected override void OnQuery_FOLLOW()
 {
     if (!CheckExistTarget())
     {
         GameSection.StopEvent();
         DispatchEvent("NON_TARGET_PLAYER", null);
     }
     else
     {
         GameSection.SetEventData(new object[1]
         {
             data.name
         });
         List <int> list = new List <int>();
         list.Add(data.userId);
         SendFollow(list, delegate(bool is_success)
         {
             if (is_success)
             {
                 dataFollowing = !dataFollowing;
                 SetFollowLoungeCharaInfo(data.userId, true);
             }
         });
     }
 }
    private void OnQuery_NEED()
    {
        if (smithData == null)
        {
            GameSection.StopEvent();
        }
        else
        {
            int num     = (int)GameSection.GetEventData();
            int exceed  = smithData.selectEquipData.exceed;
            int needNum = (int)exceedData.exceed[num].getNeedNum(exceed + 1);
            ItemTable.ItemData itemData = Singleton <ItemTable> .I.GetItemData(exceedData.exceed[num].itemId);

            uint id = 7u;
            if (itemData.type == ITEM_TYPE.LAPIS)
            {
                id = (uint)((!Singleton <EquipItemExceedTable> .I.IsFreeLapis(itemData.rarity, itemData.id, itemData.eventId)) ? 4 : 3);
                if (Singleton <LimitedEquipItemExceedTable> .I.IsLimitedLapis(itemData.id))
                {
                    id = 8u;
                }
            }
            string text = string.Format(StringTable.Get(STRING_CATEGORY.ITEM_DETAIL, id), itemData.rarity.ToString());
            GameSection.SetEventData(new object[4]
            {
                itemData.name,
                needNum,
                smithData.selectEquipData.tableData.name,
                text
            });
        }
    }
 protected void OnQuery_ItemDetailEquipSetExtConfirm_YES()
 {
     if (equipSetExtEventData == null)
     {
         Log.Error(LOG.OUTGAME, "EQUIP_SET_EXT data is NULL");
         GameSection.StopEvent();
     }
     else
     {
         GameSection.SetEventData(equipSetExtEventData);
         GameSection.StayEvent();
         MonoBehaviourSingleton <InventoryManager> .I.SendInventoryEquipSetExt(data.GetUniqID().ToString(), delegate(bool is_success)
         {
             if (is_success)
             {
                 if (MonoBehaviourSingleton <StatusManager> .IsValid())
                 {
                     MonoBehaviourSingleton <StatusManager> .I.ResetEquipSetInfo();
                 }
                 MonoBehaviourSingleton <GameSceneManager> .I.SetNotify(NOTIFY_FLAG.UPDATE_EQUIP_SET_INFO);
             }
             GameSection.ResumeEvent(is_success, null);
         });
     }
 }
 private void OnQuery_STAR()
 {
     starValue = (int)GameSection.GetEventData() + 1;
     SetEnableYesButton(true);
     UpdateStarUI();
     GameSection.StopEvent();
 }
Beispiel #12
0
    private void OnQuery_SLOT_DETAIL()
    {
        int num = (int)GameSection.GetEventData();

        selectEquipIndex = num >> 16;
        selectSkillIndex = num % 65536;
        if (lookOnly || selectSkillIndex < 0 || selectEquipIndex < 0)
        {
            GameSection.StopEvent();
        }
        else
        {
            SkillItemInfo itemData      = equipAndSkill[selectEquipIndex].skillSlotUIData[selectSkillIndex].itemData;
            EquipItemInfo equipItemInfo = equipAndSkill[selectEquipIndex].equipItemInfo;
            if (itemData == null)
            {
                GameSection.StopEvent();
            }
            else
            {
                SkillItemSortData skillItemSortData = new SkillItemSortData();
                skillItemSortData.SetItem(itemData);
                GameSection.SetEventData(new object[4]
                {
                    ItemDetailEquip.CURRENT_SECTION.STATUS_SKILL_LIST,
                    skillItemSortData,
                    equipItemInfo,
                    selectSkillIndex
                });
            }
        }
    }
Beispiel #13
0
    protected virtual void OnQuery_SLOT()
    {
        int num = (int)GameSection.GetEventData();

        selectEquipIndex = num >> 16;
        selectSkillIndex = num % 65536;
        if (lookOnly || selectSkillIndex < 0 || selectEquipIndex < 0)
        {
            GameSection.StopEvent();
        }
        else if (MonoBehaviourSingleton <InventoryManager> .I.skillItemInventory.GetCount() <= 0)
        {
            GameSection.ChangeEvent("NOT_HAVE_SKILL_ITEM", null);
        }
        else
        {
            GameSection.ChangeEvent("ATTACH", null);
            EquipItemInfo equipItemInfo = equipAndSkill[selectEquipIndex].equipItemInfo;
            GameSection.SetEventData(new object[4]
            {
                callSection,
                equipItemInfo.GetSkillItem(selectSkillIndex),
                equipItemInfo,
                selectSkillIndex
            });
        }
    }
    private void OnQuery_ABILITY()
    {
        int num = (int)GameSection.GetEventData();
        EquipItemAbility equipItemAbility = null;
        EquipItemInfo    equipItemInfo    = resultData.itemData as EquipItemInfo;

        if (equipItemInfo != null)
        {
            equipItemAbility = new EquipItemAbility(equipItemInfo.ability[num].id, -1);
        }
        else
        {
            SkillItemInfo skillItemInfo = resultData.itemData as SkillItemInfo;
            if (skillItemInfo == null)
            {
                Debug.LogError((object)("err : result data is unknown : atk " + resultData.beforeAtk + " : def " + resultData.beforeDef));
            }
        }
        if (equipItemAbility == null)
        {
            GameSection.StopEvent();
        }
        else
        {
            GameSection.SetEventData(equipItemAbility);
        }
    }
    public override void OnQuery_FOLLOW_INFO()
    {
        //IL_00af: Unknown result type (might be due to invalid IL or missing references)
        //IL_00b4: Expected O, but got Unknown
        int index = (int)GameSection.GetEventData();

        FriendMessageUserListModel.MessageUserInfo messageUserInfo = recvdata[index];
        if (messageUserInfo == null)
        {
            GameSection.StopEvent();
        }
        else if (!messageUserInfo.isPermitted)
        {
            GameSection.ChangeEvent("NOT_PERMITTED", null);
        }
        else
        {
            GameSection.ChangeEvent("TO_MESSAGE", null);
            GameSection.StayEvent();
            MonoBehaviourSingleton <FriendManager> .I.SendGetMessageDetailList(messageUserInfo.userId, 0, delegate(bool is_success)
            {
                GameSection.ResumeEvent(is_success, null);
            });

            MonoBehaviourSingleton <FriendManager> .I.SetNoReadMessageNum(MonoBehaviourSingleton <FriendManager> .I.noReadMessageNum - messageUserInfo.noReadNum);

            messageUserInfo.noReadNum = 0;
            Transform t = GetCtrl(UI.GRD_LIST).FindChild(index.ToString());
            SetBadge(t, messageUserInfo.noReadNum, 3, -10, -6, false);
        }
    }
Beispiel #16
0
 protected void OnQuery_RELEASE_ABILITY()
 {
     //IL_007d: Unknown result type (might be due to invalid IL or missing references)
     //IL_00db: Unknown result type (might be due to invalid IL or missing references)
     //IL_00ec: Unknown result type (might be due to invalid IL or missing references)
     if (!(infoDetail == null) && !(info == null))
     {
         if (isDetail)
         {
             SetLabelText(infoDetail, UI.LBL_INFODETAIL_NAME, string.Empty);
             SetLabelText(infoDetail, UI.LBL_INFODETAIL_DESC, string.Empty);
             SetLabelText(infoDetail, UI.LBL_INFODETAIL_NUM, string.Empty);
             infoDetail.get_gameObject().SetActive(false);
         }
         else
         {
             SetLabelText(infoDetail, UI.LBL_INFODETAIL_NAME, string.Empty);
             SetLabelText(infoDetail, UI.LBL_INFODETAIL_DESC, string.Empty);
             SetLabelText(infoDetail, UI.LBL_INFODETAIL_NUM, string.Empty);
         }
         infoDetail.get_gameObject().SetActive(false);
         info.get_gameObject().SetActive(false);
         GameSection.StopEvent();
     }
 }
Beispiel #17
0
    private void OnQuery_SEND()
    {
        //IL_002c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0031: Expected O, but got Unknown
        int       index      = (int)GameSection.GetEventData();
        Transform t          = GetCtrl(UI.TBL_LIST).FindChild(index.ToString());
        string    inputValue = GetInputValue(t, UI.IPT_CODE);

        if (string.IsNullOrEmpty(inputValue))
        {
            GameSection.StopEvent();
        }
        else
        {
            GameSection.StayEvent();
            SendInputSerialCode(serialList.serials[index].serialId, inputValue, delegate(bool is_success, string msg)
            {
                if (is_success)
                {
                    GameSection.SetEventData(msg);
                    SetInputValue(t, UI.IPT_CODE, string.Empty);
                }
                GameSection.ResumeEvent(is_success, null);
            });
        }
    }
Beispiel #18
0
 private void OnQuery_BATTLE()
 {
     if (data == null)
     {
         GameSection.StopEvent();
     }
 }
    private void JoinField(int fieldMapId)
    {
        if (MonoBehaviourSingleton <InGameProgress> .IsValid())
        {
            if (fieldMapId == MonoBehaviourSingleton <FieldManager> .I.currentMapID)
            {
                GameSection.StopEvent();
            }
            else
            {
                FieldMapTable.FieldMapTableData fieldMapData = Singleton <FieldMapTable> .I.GetFieldMapData((uint)fieldMapId);

                if (fieldMapData == null || fieldMapData.jumpPortalID == 0)
                {
                    Log.Error("RegionMap.OnQuery_SELECT() jumpPortalID is not found.");
                }
                else if (!MonoBehaviourSingleton <GameSceneManager> .I.CheckPortalAndOpenUpdateAppDialog(fieldMapData.jumpPortalID, false, true))
                {
                    GameSection.StopEvent();
                }
                else if (!MonoBehaviourSingleton <FieldManager> .I.CanJumpToMap(fieldMapData))
                {
                    DispatchEvent("CANT_JUMP", null);
                }
                else
                {
                    MonoBehaviourSingleton <InGameProgress> .I.PortalNext(fieldMapData.jumpPortalID);

                    MonoBehaviourSingleton <FieldManager> .I.useFastTravel = true;
                }
            }
        }
    }
Beispiel #20
0
    protected virtual void OnQuery_ABILITY()
    {
        switch (callSection)
        {
        default:
            GameSection.StopEvent();
            break;

        case CURRENT_SECTION.STATUS_TOP:
        case CURRENT_SECTION.STATUS_SKILL_LIST:
        case CURRENT_SECTION.STATUS_EQUIP:
        case CURRENT_SECTION.STATUS_EQUIP_SKILL:
        case CURRENT_SECTION.ITEM_STORAGE:
        case CURRENT_SECTION.EQUIP_SET_DETAIL_STATUS:
        {
            EquipItemInfo equipItemInfo = detailItemData as EquipItemInfo;
            if (equipItemInfo == null || MonoBehaviourSingleton <InventoryManager> .I.GetEquipItem(equipItemInfo.uniqueID) == null)
            {
                GameSection.StopEvent();
            }
            else
            {
                SmithManager.SmithGrowData smithGrowData = MonoBehaviourSingleton <SmithManager> .I.CreateSmithData <SmithManager.SmithGrowData>();

                smithGrowData.selectEquipData = equipItemInfo;
            }
            break;
        }
        }
    }
 protected override void OnQuery_DETAIL()
 {
     if (isVisualMode)
     {
         GameSection.ChangeEvent("VISUAL_DETAIL", null);
         OnQuery_VISUAL_DETAIL();
     }
     else
     {
         int num = (int)GameSection.GetEventData();
         if (localEquipSet.item[num] == null)
         {
             GameSection.StopEvent();
         }
         else if (isSelfData)
         {
             GameSection.SetEventData(CreateSelfEventData(num));
         }
         else
         {
             GameSection.SetEventData(new object[4]
             {
                 ItemDetailEquip.CURRENT_SECTION.QUEST_RESULT,
                 GetEquipSetAttachSkillListData(record.charaInfo.equipSet)[num],
                 record.charaInfo.sex,
                 record.charaInfo.faceId
             });
         }
     }
 }
Beispiel #22
0
    protected void OnQuery_ABILITY()
    {
        int num = (int)GameSection.GetEventData();
        EquipItemAbility equipItemAbility = null;
        EquipItemInfo    equipData        = GetEquipData();

        if (equipData != null)
        {
            equipItemAbility = new EquipItemAbility(equipData.ability[num].id, -1);
        }
        else
        {
            EquipItemTable.EquipItemData equipTableData = GetEquipTableData();
            if (smithType == SmithType.EVOLVE)
            {
                SmithManager.SmithGrowData smithData = MonoBehaviourSingleton <SmithManager> .I.GetSmithData <SmithManager.SmithGrowData>();

                equipItemAbility = new EquipItemAbility(smithData.selectEquipData.ability[num].id, -1);
            }
            else
            {
                equipItemAbility = new EquipItemAbility((uint)equipTableData.fixedAbility[num].id, -1);
            }
        }
        if (equipItemAbility == null)
        {
            GameSection.StopEvent();
        }
        else
        {
            GameSection.SetEventData(equipItemAbility);
        }
    }
    private void OnQuery_SKIP()
    {
        switch (animState)
        {
        case RESULT_ANIM_STATE.TITLE:
        case RESULT_ANIM_STATE.DROP:
        case RESULT_ANIM_STATE.REMAIN_TIME:
            SkipTween((Enum)UI.OBJ_TITLE, true, 0);
            SkipTween((Enum)UI.OBJ_POINT_SHOP_RESULT_ROOT, true, 0);
            SkipTween((Enum)UI.OBJ_EXP, true, 0);
            SkipTween((Enum)UI.OBJ_MONEY, true, 0);
            SkipTween((Enum)UI.OBJ_REMAIN_TIME, true, 0);
            break;

        case RESULT_ANIM_STATE.BEST_SCORE:
            SkipTween((Enum)UI.SPR_BESTSCORE, true, 0);
            break;

        case RESULT_ANIM_STATE.CLEAR_EFFECT:
            SkipTween((Enum)UI.OBJ_RANK_UP, true, 0);
            break;
        }
        is_skip = true;
        GameSection.StopEvent();
    }
Beispiel #24
0
    public void OnQuery_JOIN_ROOM()
    {
        string text = (string)GameSection.GetEventData();

        if (string.IsNullOrEmpty(text))
        {
            GameSection.StopEvent();
        }
        GameSection.SetEventData(new object[1]
        {
            false
        });
        GameSection.StayEvent();
        MonoBehaviourSingleton <PartyManager> .I.SendEntry(text, true, delegate(bool is_success)
        {
            if (is_success && !MonoBehaviourSingleton <GameSceneManager> .I.CheckQuestAndOpenUpdateAppDialog(MonoBehaviourSingleton <PartyManager> .I.GetQuestId(), true))
            {
                Protocol.Force(delegate
                {
                    MonoBehaviourSingleton <PartyManager> .I.SendLeave(delegate
                    {
                    });
                });
            }
            else
            {
                GameSection.ResumeEvent(is_success, null);
            }
        });
    }
    private void OnQuery_SELECT()
    {
        int num = (int)GameSection.GetEventData();

        ShopList.ShopLineup lineup = MonoBehaviourSingleton <ShopManager> .I.GetLineup(num);

        if (lineup == null)
        {
            Log.Error(LOG.OUTGAME, "lineup_id=" + num + " is not found.");
            GameSection.StopEvent();
        }
        else
        {
            selectEventData = new object[7]
            {
                num,
                lineup,
                lineup.name,
                lineup.description,
                lineup.crystalNum,
                MonoBehaviourSingleton <UserInfoManager> .I.userStatus.crystal,
                MonoBehaviourSingleton <UserInfoManager> .I.userStatus.crystal - lineup.crystalNum
            };
            GameSection.SetEventData(selectEventData);
        }
    }
Beispiel #26
0
    protected virtual void OnQuery_SELECT_LOUNGE()
    {
        int num = (int)GameSection.GetEventData();

        if (LoungeMatchingManager.IsValidInLounge())
        {
            GameSection.StopEvent();
            if (!(lounges[num].id == MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeData.id))
            {
                EventData[] autoEvents = new EventData[5]
                {
                    new EventData("LOUNGE", null),
                    new EventData("LOUNGE_SETTINGS", null),
                    new EventData("EXIT", null),
                    new EventData("LOUNGE", null),
                    new EventData("FRIEND_INVITED_LOUNGE", lounges[num].id)
                };
                MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(autoEvents);
            }
        }
        else
        {
            GameSection.StayEvent();
            MonoBehaviourSingleton <LoungeMatchingManager> .I.SendEntry(lounges[num].id, delegate(bool isSuccess)
            {
                GameSection.ResumeEvent(isSuccess, null);
            });
        }
    }
Beispiel #27
0
    protected void OnQuery_ABILITY_DATA_POPUP()
    {
        object[]         array            = GameSection.GetEventData() as object[];
        int              num              = (int)array[0];
        Transform        targetTrans      = array[1] as Transform;
        EquipItemAbility equipItemAbility = null;

        if (detailItemData is EquipItemInfo)
        {
            EquipItemInfo equipItemInfo = detailItemData as EquipItemInfo;
            equipItemAbility = equipItemInfo.ability[num];
        }
        else if (detailItemData is EquipItemTable.EquipItemData)
        {
            EquipItemTable.EquipItemData equipItemData = detailItemData as EquipItemTable.EquipItemData;
            EquipItem.Ability            ability       = equipItemData.fixedAbility[num];
            equipItemAbility = new EquipItemAbility((uint)ability.id, ability.pt);
        }
        if (equipItemAbility != null)
        {
            if (abilityDetailPopUp == null)
            {
                abilityDetailPopUp = CreateAndGetAbilityDetail((Enum)UI.OBJ_DETAIL_ROOT);
            }
            abilityDetailPopUp.ShowAbilityDetail(targetTrans);
            abilityDetailPopUp.SetAbilityDetailText(equipItemAbility);
            GameSection.StopEvent();
        }
    }
 private void OnQuery_GO_BACK()
 {
     if (!MonoBehaviourSingleton <GameSceneManager> .I.GetHistoryList().Exists((GameSectionHistory.HistoryData x) => x.sectionName == "SmithAbilityChangeSelect"))
     {
         GameSection.StopEvent();
         DispatchEvent("MAIN_MENU_STATUS", null);
     }
 }
Beispiel #29
0
 private void OnQuery_TO_SELECT()
 {
     if (!MonoBehaviourSingleton <GameSceneManager> .I.ExistHistory("SmithGrowItemSelect"))
     {
         GameSection.StopEvent();
         OnQuery_MAIN_MENU_STATUS();
     }
 }
Beispiel #30
0
 protected void OnQuery_RELEASE_ABILITY()
 {
     if (!(abilityDetailPopUp == null))
     {
         abilityDetailPopUp.Hide();
         GameSection.StopEvent();
     }
 }