public void SetParam(FacilityConditionM data, string assetValue, FacilityM faciltyData)
    {
        FacilityKeyM facilityKeyMaster = FarmDataManager.GetFacilityKeyMaster(assetValue);

        if (facilityKeyMaster != null)
        {
            this.titleLabel.text = facilityKeyMaster.facilityKeyName;
        }
        this.textLabel.text = faciltyData.description;
        FacilityM facilityMasterByReleaseId = FarmDataManager.GetFacilityMasterByReleaseId(data.releaseId);
        string    iconPath = facilityMasterByReleaseId.GetIconPath();

        this.iconSprite.gameObject.SetActive(false);
        this.iconTexture.gameObject.SetActive(true);
        NGUIUtil.ChangeUITextureFromFile(this.iconTexture, iconPath, false);
    }
    private string GetTexturePath(MasterDataMng.AssetCategory assetCategoryId, string objectId)
    {
        string result = string.Empty;

        switch (assetCategoryId)
        {
        case MasterDataMng.AssetCategory.SOUL:
            result = ClassSingleton <EvolutionData> .Instance.GetEvolveItemIconPathByID(objectId);

            break;

        default:
            if (assetCategoryId == MasterDataMng.AssetCategory.ITEM)
            {
                GameWebAPI.RespDataMA_GetItemM.ItemM itemM = MasterDataMng.Instance().RespDataMA_ItemM.GetItemM(objectId);
                if (itemM != null)
                {
                    result = itemM.GetLargeImagePath();
                }
            }
            break;

        case MasterDataMng.AssetCategory.FACILITY_KEY:
        {
            FacilityConditionM[] facilityCondition         = FarmDataManager.GetFacilityCondition(objectId);
            FacilityConditionM   facilityConditionM        = facilityCondition.FirstOrDefault((FacilityConditionM x) => int.Parse(x.conditionType) == 1);
            FacilityM            facilityMasterByReleaseId = FarmDataManager.GetFacilityMasterByReleaseId(facilityConditionM.releaseId);
            result = facilityMasterByReleaseId.GetIconPath();
            break;
        }

        case MasterDataMng.AssetCategory.DUNGEON_TICKET:
        {
            GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM dungeonTicketM = MasterDataMng.Instance().RespDataMA_DungeonTicketMaster.dungeonTicketM.FirstOrDefault((GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM x) => objectId == x.dungeonTicketId);
            if (dungeonTicketM != null)
            {
                result = dungeonTicketM.img;
            }
            break;
        }
        }
        return(result);
    }
Example #3
0
        private static CommonDialog CreatePopupFacilityKeyDetail(string assetCategoryId, string assetValue)
        {
            FacilityConditionM[] facilityCondition  = FarmDataManager.GetFacilityCondition(assetValue);
            FacilityConditionM   facilityConditionM = null;

            foreach (FacilityConditionM facilityConditionM2 in facilityCondition)
            {
                if (facilityConditionM2.conditionType == "1")
                {
                    facilityConditionM = facilityConditionM2;
                    break;
                }
            }
            CommonDialog result = null;

            if (facilityConditionM != null)
            {
                FacilityM facilityMasterByReleaseId = FarmDataManager.GetFacilityMasterByReleaseId(facilityConditionM.releaseId);
                result = CMD_QuestItemPOP.Create(facilityConditionM, assetValue, facilityMasterByReleaseId);
            }
            return(result);
        }
    public void ItemIconOnTap()
    {
        if (this.numUpButtonCollider.isTouching || this.numDownButtonCollider.isTouching)
        {
            return;
        }
        MasterDataMng.AssetCategory assetCategory = (MasterDataMng.AssetCategory) int.Parse(this.exchangeInfoData.assetCategoryId);
        GameWebAPI.RespDataMA_GetAssetCategoryM.AssetCategoryM assetCategory2 = MasterDataMng.Instance().RespDataMA_AssetCategoryM.GetAssetCategory(this.exchangeInfoData.assetCategoryId);
        switch (assetCategory)
        {
        case MasterDataMng.AssetCategory.MONSTER:
            if (!string.IsNullOrEmpty(this.exchangeInfoData.monsterFixedValueId))
            {
                MonsterFixedM fixedValues = MonsterFixedData.GetMonsterFixedMaster(this.exchangeInfoData.monsterFixedValueId);
                if (fixedValues != null)
                {
                    CMD_MonsterParamPop cmd_MonsterParamPop          = GUIMain.ShowCommonDialog(null, "CMD_MonsterParamPop", null) as CMD_MonsterParamPop;
                    MonsterData         digimonData                  = MonsterDataMng.Instance().CreateMonsterDataByMID(this.exchangeInfoData.assetValue);
                    GameWebAPI.RespDataMA_GetSkillM.SkillM[] skillM  = MasterDataMng.Instance().RespDataMA_SkillM.skillM;
                    GameWebAPI.RespDataMA_GetSkillM.SkillM   skillM2 = skillM.FirstOrDefault((GameWebAPI.RespDataMA_GetSkillM.SkillM x) => x.skillGroupId == digimonData.monsterM.skillGroupId && x.skillGroupSubId == fixedValues.defaultSkillGroupSubId);
                    if (int.Parse(fixedValues.level) > int.Parse(digimonData.monsterM.maxLevel))
                    {
                        fixedValues.level = digimonData.monsterM.maxLevel;
                    }
                    int lvMAXExperienceInfo = DataMng.Instance().GetLvMAXExperienceInfo(int.Parse(fixedValues.level));
                    DataMng.ExperienceInfo experienceInfo = DataMng.Instance().GetExperienceInfo(lvMAXExperienceInfo);
                    digimonData.userMonster.luck                   = fixedValues.luck;
                    digimonData.userMonster.friendship             = "0";
                    digimonData.userMonster.level                  = fixedValues.level;
                    digimonData.userMonster.hpAbility              = fixedValues.hpAbility;
                    digimonData.userMonster.hpAbilityFlg           = fixedValues.hpAbilityFlg.ToString();
                    digimonData.userMonster.attackAbility          = fixedValues.attackAbility;
                    digimonData.userMonster.attackAbilityFlg       = fixedValues.attackAbilityFlg.ToString();
                    digimonData.userMonster.defenseAbility         = fixedValues.defenseAbility;
                    digimonData.userMonster.defenseAbilityFlg      = fixedValues.defenseAbilityFlg.ToString();
                    digimonData.userMonster.spAttackAbility        = fixedValues.spAttackAbility;
                    digimonData.userMonster.spAttackAbilityFlg     = fixedValues.spAttackAbilityFlg.ToString();
                    digimonData.userMonster.spDefenseAbility       = fixedValues.spDefenseAbility;
                    digimonData.userMonster.spDefenseAbilityFlg    = fixedValues.spDefenseAbilityFlg.ToString();
                    digimonData.userMonster.speedAbility           = fixedValues.speedAbility;
                    digimonData.userMonster.speedAbilityFlg        = fixedValues.speedAbilityFlg.ToString();
                    digimonData.userMonster.commonSkillId          = fixedValues.commonSkillId;
                    digimonData.userMonster.leaderSkillId          = fixedValues.leaderSkillId;
                    digimonData.userMonster.defaultSkillGroupSubId = fixedValues.defaultSkillGroupSubId;
                    digimonData.userMonster.uniqueSkillId          = skillM2.skillId;
                    digimonData.InitSkillInfo();
                    cmd_MonsterParamPop.MonsterDataSet(digimonData, experienceInfo, int.Parse(this.exchangeInfoData.maxExtraSlotNum), this.exchangeItemData.eventExchangeId);
                }
            }
            break;

        case MasterDataMng.AssetCategory.DIGI_STONE:
            CMD_QuestItemPOP.Create(assetCategory2);
            break;

        case MasterDataMng.AssetCategory.LINK_POINT:
            CMD_QuestItemPOP.Create(assetCategory2);
            break;

        case MasterDataMng.AssetCategory.TIP:
            CMD_QuestItemPOP.Create(assetCategory2);
            break;

        default:
            switch (assetCategory)
            {
            case MasterDataMng.AssetCategory.SOUL:
            {
                GameWebAPI.RespDataMA_GetSoulM.SoulM soul = MasterDataMng.Instance().RespDataMA_SoulM.GetSoul(this.exchangeInfoData.assetValue);
                CMD_QuestItemPOP.Create(soul);
                break;
            }

            case MasterDataMng.AssetCategory.FACILITY_KEY:
            {
                FacilityConditionM[] facilityCondition         = FarmDataManager.GetFacilityCondition(this.exchangeInfoData.assetValue);
                FacilityConditionM   facilityConditionM        = facilityCondition.FirstOrDefault((FacilityConditionM x) => int.Parse(x.conditionType) == 1);
                FacilityM            facilityMasterByReleaseId = FarmDataManager.GetFacilityMasterByReleaseId(facilityConditionM.releaseId);
                CMD_QuestItemPOP.Create(facilityConditionM, this.exchangeInfoData.assetValue, facilityMasterByReleaseId);
                break;
            }

            case MasterDataMng.AssetCategory.CHIP:
            {
                GameWebAPI.RespDataMA_ChipM.Chip chipMainData = ChipDataMng.GetChipMainData(this.exchangeInfoData.assetValue);
                CMD_QuestItemPOP.Create(chipMainData);
                break;
            }

            case MasterDataMng.AssetCategory.DUNGEON_TICKET:
            {
                string ticketValue = this.exchangeInfoData.assetValue;
                GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM data = MasterDataMng.Instance().RespDataMA_DungeonTicketMaster.dungeonTicketM.FirstOrDefault((GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM x) => x.dungeonTicketId == ticketValue);
                CMD_QuestItemPOP.Create(data);
                break;
            }
            }
            break;

        case MasterDataMng.AssetCategory.ITEM:
        {
            GameWebAPI.RespDataMA_GetItemM.ItemM itemM = MasterDataMng.Instance().RespDataMA_ItemM.GetItemM(this.exchangeInfoData.assetValue);
            CMD_QuestItemPOP.Create(itemM);
            break;
        }
        }
    }
    private void ExchangeIconSet(GameWebAPI.RespDataMS_EventExchangeInfoLogic.Result.Detail exchangeInfo)
    {
        this.exchangeViewIcon.gameObject.SetActive(false);
        this.exchangeViewTexture.gameObject.SetActive(false);
        MasterDataMng.AssetCategory assetCategory = (MasterDataMng.AssetCategory) int.Parse(exchangeInfo.item.assetCategoryId);
        string text = string.Empty;

        switch (assetCategory)
        {
        case MasterDataMng.AssetCategory.MONSTER:
            text = string.Empty;
            break;

        case MasterDataMng.AssetCategory.DIGI_STONE:
            text = "Common02_Icon_Stone";
            this.exchangeViewIcon.gameObject.SetActive(true);
            break;

        case MasterDataMng.AssetCategory.LINK_POINT:
            text = "Common02_LB_Link";
            this.exchangeViewIcon.gameObject.SetActive(true);
            break;

        case MasterDataMng.AssetCategory.TIP:
            text = "Common02_LB_Chip";
            this.exchangeViewIcon.gameObject.SetActive(true);
            break;

        default:
            switch (assetCategory)
            {
            case MasterDataMng.AssetCategory.MEAT:
                text = "Common02_item_meat";
                this.exchangeViewIcon.gameObject.SetActive(true);
                goto IL_29E;

            case MasterDataMng.AssetCategory.SOUL:
            {
                this.exchangeViewTexture.gameObject.SetActive(true);
                string evolveItemIconPathByID = ClassSingleton <EvolutionData> .Instance.GetEvolveItemIconPathByID(exchangeInfo.item.assetValue);

                NGUIUtil.ChangeUITextureFromFile(this.exchangeViewTexture, evolveItemIconPathByID, false);
                goto IL_29E;
            }

            case MasterDataMng.AssetCategory.FACILITY_KEY:
            {
                FacilityConditionM[] facilityCondition         = FarmDataManager.GetFacilityCondition(exchangeInfo.item.assetValue);
                FacilityConditionM   facilityConditionM        = facilityCondition.FirstOrDefault((FacilityConditionM x) => int.Parse(x.conditionType) == 1);
                FacilityM            facilityMasterByReleaseId = FarmDataManager.GetFacilityMasterByReleaseId(facilityConditionM.releaseId);
                this.exchangeViewTexture.gameObject.SetActive(true);
                NGUIUtil.ChangeUITextureFromFile(this.exchangeViewTexture, facilityMasterByReleaseId.GetIconPath(), false);
                goto IL_29E;
            }

            case MasterDataMng.AssetCategory.CHIP:
                goto IL_29E;

            case MasterDataMng.AssetCategory.DUNGEON_TICKET:
            {
                GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM dungeonTicketM = MasterDataMng.Instance().RespDataMA_DungeonTicketMaster.dungeonTicketM.FirstOrDefault((GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM x) => exchangeInfo.item.assetValue == x.dungeonTicketId);
                if (dungeonTicketM != null)
                {
                    global::Debug.Log(dungeonTicketM.img);
                    this.exchangeViewTexture.gameObject.SetActive(true);
                    NGUIUtil.ChangeUITextureFromFile(this.exchangeViewTexture, dungeonTicketM.img, false);
                    this.exchangeDetailName = dungeonTicketM.name;
                }
                goto IL_29E;
            }
            }
            text = string.Empty;
            this.exchangeDetailName = StringMaster.GetString("Present-10");
            break;

        case MasterDataMng.AssetCategory.ITEM:
        {
            GameWebAPI.RespDataMA_GetItemM.ItemM itemM = MasterDataMng.Instance().RespDataMA_ItemM.GetItemM(exchangeInfo.item.assetValue);
            if (itemM != null)
            {
                this.exchangeViewTexture.gameObject.SetActive(true);
                string largeImagePath = itemM.GetLargeImagePath();
                NGUIUtil.ChangeUITextureFromFile(this.exchangeViewTexture, largeImagePath, false);
            }
            break;
        }
        }
IL_29E:
        if (!string.IsNullOrEmpty(text) && assetCategory != MasterDataMng.AssetCategory.MONSTER)
        {
            this.exchangeViewIcon.spriteName = text;
        }
    }
    public void SetDetail(GameWebAPI.RespDataMS_EventExchangeInfoLogic.Result.Detail exchangeInfo, int selectItemNum, Action <ExchangeItem> touchEvent)
    {
        this.onPushedButton = touchEvent;
        GUICollider component = this.pushedButton.GetComponent <GUICollider>();

        component.onTouchEnded += delegate(Touch touch, Vector2 pos, bool flag)
        {
            this.onPushedButton(this);
        };
        this.selectNum = selectItemNum;
        int.TryParse(exchangeInfo.eventExchangeDetailId, out this.exchangeDetailId);
        this.exchangeItemData = exchangeInfo.item;
        string text  = string.Empty;
        string value = string.Empty;

        this.exchangeInfoData = exchangeInfo;
        this.viewIcon.gameObject.SetActive(true);
        this.viewIconTexture.gameObject.SetActive(false);
        GameWebAPI.RespDataMA_GetAssetCategoryM.AssetCategoryM assetCategory = MasterDataMng.Instance().RespDataMA_AssetCategoryM.GetAssetCategory(exchangeInfo.assetCategoryId);
        string text2 = string.Empty;

        if (assetCategory != null)
        {
            text2 = assetCategory.assetTitle;
        }
        this.exchangeDetailCategoryID = exchangeInfo.assetCategoryId;
        MasterDataMng.AssetCategory assetCategory2 = (MasterDataMng.AssetCategory) int.Parse(exchangeInfo.assetCategoryId);
        this.numCountLabel.text = "1";
        switch (assetCategory2)
        {
        case MasterDataMng.AssetCategory.MONSTER:
        {
            text = string.Empty;
            if (this.micon != null)
            {
                UnityEngine.Object.Destroy(this.micon.gameObject);
            }
            this.viewIcon.gameObject.SetActive(false);
            MonsterData monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(exchangeInfo.assetValue);
            this.exchangeDetailName = monsterData.monsterMG.monsterName;
            this.micon = GUIMonsterIcon.MakePrefabByMonsterData(monsterData, new Vector3(1f, 1f, 1f), new Vector3(-165f, 25f, 0f), this.iconRoot.transform, true, false);
            UIWidget component2 = base.gameObject.GetComponent <UIWidget>();
            if (component2 != null)
            {
                DepthController component3 = this.micon.GetComponent <DepthController>();
                if (component3 != null)
                {
                    component3.AddWidgetDepth(this.micon.transform, component2.depth + 10);
                }
            }
            this.micon.GetDepthController();
            BoxCollider component4 = this.micon.gameObject.GetComponent <BoxCollider>();
            if (component4 != null)
            {
                component4.enabled = false;
            }
            break;
        }

        case MasterDataMng.AssetCategory.DIGI_STONE:
            text = "Common02_LB_Stone";
            this.exchangeDetailName = text2;
            break;

        case MasterDataMng.AssetCategory.LINK_POINT:
            text = "Common02_LB_Link";
            this.exchangeDetailName = text2;
            break;

        case MasterDataMng.AssetCategory.TIP:
            text = "Common02_LB_Chip";
            this.exchangeDetailName = text2;
            break;

        default:
            switch (assetCategory2)
            {
            case MasterDataMng.AssetCategory.MEAT:
                text = "Common02_item_meat";
                this.exchangeDetailName = text2;
                goto IL_567;

            case MasterDataMng.AssetCategory.SOUL:
            {
                this.exchangeDetailName = text2;
                GameWebAPI.RespDataMA_GetSoulM.SoulM soul = MasterDataMng.Instance().RespDataMA_SoulM.GetSoul(exchangeInfo.assetValue);
                value = soul.soulName;
                this.viewIconTexture.gameObject.SetActive(true);
                string evolveItemIconPathByID = ClassSingleton <EvolutionData> .Instance.GetEvolveItemIconPathByID(exchangeInfo.assetValue);

                NGUIUtil.ChangeUITextureFromFile(this.viewIconTexture, evolveItemIconPathByID, false);
                this.viewIcon.gameObject.SetActive(false);
                goto IL_567;
            }

            case MasterDataMng.AssetCategory.FACILITY_KEY:
            {
                this.viewIconTexture.gameObject.SetActive(true);
                this.viewIcon.gameObject.SetActive(false);
                FacilityConditionM[] facilityCondition         = FarmDataManager.GetFacilityCondition(exchangeInfo.assetValue);
                FacilityConditionM   facilityConditionM        = facilityCondition.FirstOrDefault((FacilityConditionM x) => int.Parse(x.conditionType) == 1);
                FacilityM            facilityMasterByReleaseId = FarmDataManager.GetFacilityMasterByReleaseId(facilityConditionM.releaseId);
                NGUIUtil.ChangeUITextureFromFile(this.viewIconTexture, facilityMasterByReleaseId.GetIconPath(), false);
                FacilityKeyM facilityKeyMaster = FarmDataManager.GetFacilityKeyMaster(exchangeInfo.assetValue);
                if (facilityKeyMaster != null)
                {
                    this.exchangeDetailName = facilityKeyMaster.facilityKeyName;
                }
                goto IL_567;
            }

            case MasterDataMng.AssetCategory.CHIP:
            {
                GameWebAPI.RespDataMA_ChipM.Chip chipMainData = ChipDataMng.GetChipMainData(exchangeInfo.assetValue);
                ChipDataMng.MakePrefabByChipData(chipMainData, this.viewIcon.gameObject, this.viewIcon.gameObject.transform.localPosition, this.viewIcon.gameObject.transform.localScale, null, 128, 128, false);
                this.exchangeDetailName = chipMainData.name;
                this.viewIcon.gameObject.SetActive(false);
                goto IL_567;
            }

            case MasterDataMng.AssetCategory.DUNGEON_TICKET:
            {
                this.viewIconTexture.gameObject.SetActive(true);
                this.viewIcon.gameObject.SetActive(false);
                GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM dungeonTicketM = MasterDataMng.Instance().RespDataMA_DungeonTicketMaster.dungeonTicketM.FirstOrDefault((GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM x) => exchangeInfo.assetValue == x.dungeonTicketId);
                if (dungeonTicketM != null)
                {
                    global::Debug.Log(dungeonTicketM.img);
                    NGUIUtil.ChangeUITextureFromFile(this.viewIconTexture, dungeonTicketM.img, false);
                    this.exchangeDetailName = dungeonTicketM.name;
                }
                goto IL_567;
            }
            }
            text = string.Empty;
            this.exchangeDetailName = StringMaster.GetString("Present-10");
            break;

        case MasterDataMng.AssetCategory.ITEM:
        {
            GameWebAPI.RespDataMA_GetItemM.ItemM itemM = MasterDataMng.Instance().RespDataMA_ItemM.GetItemM(exchangeInfo.assetValue);
            if (itemM != null)
            {
                this.exchangeDetailName = itemM.name;
                this.viewIconTexture.gameObject.SetActive(true);
                this.viewIcon.gameObject.SetActive(false);
                string largeImagePath = itemM.GetLargeImagePath();
                NGUIUtil.ChangeUITextureFromFile(this.viewIconTexture, largeImagePath, false);
            }
            break;
        }
        }
IL_567:
        if (!string.IsNullOrEmpty(text) && assetCategory2 != MasterDataMng.AssetCategory.MONSTER)
        {
            this.viewIcon.spriteName = text;
        }
        if (assetCategory2 == MasterDataMng.AssetCategory.TIP)
        {
            this.exchangeDetailNum = StringFormat.Cluster(exchangeInfo.assetNum);
        }
        else
        {
            this.exchangeDetailNum = exchangeInfo.assetNum;
        }
        if (assetCategory2 != MasterDataMng.AssetCategory.MONSTER)
        {
            this.titleLabel.text = string.Format(StringMaster.GetString("SystemItemCount"), this.exchangeDetailName, this.exchangeDetailNum);
        }
        else
        {
            this.titleLabel.text = this.exchangeDetailName;
        }
        if (!string.IsNullOrEmpty(value))
        {
            this.exchangeDetailName = value;
        }
        this.exchangeConsumeNum = exchangeInfo.needNum;
        this.buildNumLabel.text = this.exchangeConsumeNum;
        this.ExchangeIconSet(exchangeInfo);
        this.ResetNum(exchangeInfo);
        this.SetButton(exchangeInfo);
        this.ShowGUI();
    }
Example #7
0
        private bool SetTexture(MasterDataMng.AssetCategory category, string assetsValue, UITexture texture)
        {
            bool   result = true;
            string text   = string.Empty;

            switch (category)
            {
            case MasterDataMng.AssetCategory.GATHA_TICKET:
                break;

            default:
                if (category != MasterDataMng.AssetCategory.ITEM)
                {
                    result = false;
                }
                else
                {
                    GameWebAPI.RespDataMA_GetItemM.ItemM itemM = MasterDataMng.Instance().RespDataMA_ItemM.GetItemM(assetsValue);
                    if (itemM != null)
                    {
                        text = itemM.GetLargeImagePath();
                    }
                }
                break;

            case MasterDataMng.AssetCategory.SOUL:
            {
                GameWebAPI.RespDataMA_GetSoulM.SoulM soul = MasterDataMng.Instance().RespDataMA_SoulM.GetSoul(assetsValue);
                if (soul != null)
                {
                    text = ClassSingleton <EvolutionData> .Instance.GetEvolveItemIconPathByID(assetsValue);
                }
                break;
            }

            case MasterDataMng.AssetCategory.FACILITY_KEY:
            {
                FacilityM facilityMasterByReleaseId = FarmDataManager.GetFacilityMasterByReleaseId(assetsValue);
                if (facilityMasterByReleaseId != null)
                {
                    text = facilityMasterByReleaseId.GetIconPath();
                }
                break;
            }

            case MasterDataMng.AssetCategory.DUNGEON_TICKET:
            {
                GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM ticketMaster = MasterDataMng.Instance().RespDataMA_DungeonTicketMaster.GetTicketMaster(assetsValue);
                if (ticketMaster != null)
                {
                    text = ticketMaster.img;
                }
                break;
            }
            }
            if (!string.IsNullOrEmpty(text))
            {
                NGUIUtil.ChangeUITextureFromFile(texture, text, false);
            }
            return(result);
        }
Example #8
0
    protected string GetRewardIcon(GameWebAPI.RespDataCM_LoginBonus.LoginReward lr)
    {
        int    num    = int.Parse(lr.assetCategoryId);
        string result = string.Empty;

        MasterDataMng.AssetCategory assetCategory = (MasterDataMng.AssetCategory)num;
        switch (assetCategory)
        {
        case MasterDataMng.AssetCategory.MONSTER:
            result = "monster_dummy";
            break;

        case MasterDataMng.AssetCategory.DIGI_STONE:
            result = "Common02_LB_Stone";
            break;

        case MasterDataMng.AssetCategory.LINK_POINT:
            result = "Common02_LB_Link";
            break;

        case MasterDataMng.AssetCategory.TIP:
            result = "Common02_LB_Chip";
            break;

        default:
            switch (assetCategory)
            {
            case MasterDataMng.AssetCategory.MEAT:
                result = "Common02_item_meat";
                break;

            case MasterDataMng.AssetCategory.SOUL:
                result = ClassSingleton <EvolutionData> .Instance.GetEvolveItemIconPathByID(lr.assetValue);

                break;

            case MasterDataMng.AssetCategory.FACILITY_KEY:
            {
                FacilityConditionM[] facilityCondition         = FarmDataManager.GetFacilityCondition(lr.assetValue);
                FacilityConditionM   facilityConditionM        = facilityCondition.FirstOrDefault((FacilityConditionM x) => int.Parse(x.conditionType) == 1);
                FacilityM            facilityMasterByReleaseId = FarmDataManager.GetFacilityMasterByReleaseId(facilityConditionM.releaseId);
                result = facilityMasterByReleaseId.GetIconPath();
                break;
            }

            case MasterDataMng.AssetCategory.CHIP:
                result = "chip_dummy";
                break;

            case MasterDataMng.AssetCategory.DUNGEON_TICKET:
            {
                GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM dungeonTicketM = MasterDataMng.Instance().RespDataMA_DungeonTicketMaster.dungeonTicketM.FirstOrDefault((GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM x) => lr.assetValue == x.dungeonTicketId);
                if (dungeonTicketM != null)
                {
                    result = dungeonTicketM.img;
                }
                break;
            }
            }
            break;

        case MasterDataMng.AssetCategory.ITEM:
        {
            GameWebAPI.RespDataMA_GetItemM.ItemM itemM = MasterDataMng.Instance().RespDataMA_ItemM.GetItemM(lr.assetValue);
            if (itemM != null)
            {
                result = itemM.GetLargeImagePath();
            }
            break;
        }
        }
        return(result);
    }
    private void ActCallBackDropItem(int idx)
    {
        if (this.isClosed)
        {
            return;
        }
        MasterDataMng.AssetCategory assetCategoryId = (MasterDataMng.AssetCategory) this.dropAssetList[idx].assetCategoryId;
        string text = this.dropAssetList[idx].assetValue.ToString();

        GameWebAPI.RespDataMA_GetAssetCategoryM.AssetCategoryM assetCategory = MasterDataMng.Instance().RespDataMA_AssetCategoryM.GetAssetCategory(this.dropAssetList[idx].assetCategoryId.ToString());
        switch (assetCategoryId)
        {
        case MasterDataMng.AssetCategory.MONSTER:
            break;

        case MasterDataMng.AssetCategory.DIGI_STONE:
            CMD_QuestItemPOP.Create(assetCategory);
            break;

        case MasterDataMng.AssetCategory.LINK_POINT:
            CMD_QuestItemPOP.Create(assetCategory);
            break;

        case MasterDataMng.AssetCategory.TIP:
            CMD_QuestItemPOP.Create(assetCategory);
            break;

        default:
            switch (assetCategoryId)
            {
            case MasterDataMng.AssetCategory.SOUL:
            {
                GameWebAPI.RespDataMA_GetSoulM.SoulM soul = MasterDataMng.Instance().RespDataMA_SoulM.GetSoul(text);
                CMD_QuestItemPOP.Create(soul);
                break;
            }

            case MasterDataMng.AssetCategory.FACILITY_KEY:
            {
                FacilityConditionM[] facilityCondition         = FarmDataManager.GetFacilityCondition(text);
                FacilityConditionM   facilityConditionM        = facilityCondition.FirstOrDefault((FacilityConditionM x) => int.Parse(x.conditionType) == 1);
                FacilityM            facilityMasterByReleaseId = FarmDataManager.GetFacilityMasterByReleaseId(facilityConditionM.releaseId);
                CMD_QuestItemPOP.Create(facilityConditionM, text, facilityMasterByReleaseId);
                break;
            }

            case MasterDataMng.AssetCategory.CHIP:
            {
                GameWebAPI.RespDataMA_ChipM.Chip chipMainData = ChipDataMng.GetChipMainData(text);
                CMD_QuestItemPOP.Create(chipMainData);
                break;
            }

            case MasterDataMng.AssetCategory.DUNGEON_TICKET:
            {
                string ticketValue = text;
                GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM data = MasterDataMng.Instance().RespDataMA_DungeonTicketMaster.dungeonTicketM.FirstOrDefault((GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM x) => x.dungeonTicketId == ticketValue);
                CMD_QuestItemPOP.Create(data);
                break;
            }
            }
            break;

        case MasterDataMng.AssetCategory.ITEM:
        {
            GameWebAPI.RespDataMA_GetItemM.ItemM itemM = MasterDataMng.Instance().RespDataMA_ItemM.GetItemM(text);
            CMD_QuestItemPOP.Create(itemM);
            break;
        }
        }
    }