| | |
| | |
|
| | | Color32 conditionColor = new Color32(255, 244, 205, 255);
|
| | | Color32 conditionRedColor = new Color32(255, 1, 1, 255);
|
| | | PetMatType matType = PetMatType.None;
|
| | | PetOrMount matType = PetOrMount.None;
|
| | |
|
| | | protected override void BindController()
|
| | | {
|
| | |
| | | {
|
| | | petSkillDict = null;
|
| | | mountSkillDict = null;
|
| | | matType = PetMatType.None;
|
| | | matType = PetOrMount.None;
|
| | | if (itemTipsModel.curAttrData == null) return;
|
| | |
|
| | | if (itemTipsModel.unlockPetDict.ContainsKey(itemTipsModel.curAttrData.itemId))
|
| | | {
|
| | | matType = PetMatType.Pet;
|
| | | matType = PetOrMount.Pet;
|
| | | }
|
| | | else if (itemTipsModel.unlockMountDict.ContainsKey(itemTipsModel.curAttrData.itemId))
|
| | | {
|
| | | matType = PetMatType.Mount;
|
| | | matType = PetOrMount.Mount;
|
| | | }
|
| | |
|
| | | SetTopUI();
|
| | |
| | | Dictionary<int, int> itemEffectDict = null;
|
| | | switch (matType)
|
| | | {
|
| | | case PetMatType.Pet:
|
| | | case PetOrMount.Pet:
|
| | | PetInfoConfig petInfo = itemTipsModel.unlockPetDict[itemTipsModel.curAttrData.itemId];
|
| | | itemEffectDict = petmodel.GetPetAttrAddDict(petInfo.ID);
|
| | | break;
|
| | | case PetMatType.Mount:
|
| | | case PetOrMount.Mount:
|
| | | HorseConfig horseConfig = itemTipsModel.unlockMountDict[itemTipsModel.curAttrData.itemId];
|
| | | itemEffectDict = mountModel.GetMountAttrAddDict(horseConfig.HorseID);
|
| | | break;
|
| | |
| | | {
|
| | | switch (matType)
|
| | | {
|
| | | case PetMatType.Pet:
|
| | | case PetOrMount.Pet:
|
| | | PetInfoConfig petInfo = itemTipsModel.unlockPetDict[itemTipsModel.curAttrData.itemId];
|
| | | petSkillDict = itemTipsModel.GetPetSkillDict(itemTipsModel.curAttrData.itemId);
|
| | | modelShow.SetModelShow(petInfo.ID, ModelShowType.pet, Language.Get("TreasureEffect103"), petInfo.ShowFightPower);
|
| | | modelShow.SetModelShow(petInfo.ID, ModelShowType.Pet, Language.Get("TreasureEffect103"), petInfo.ShowFightPower);
|
| | | break;
|
| | | case PetMatType.Mount:
|
| | | case PetOrMount.Mount:
|
| | | HorseConfig horseConfig = itemTipsModel.unlockMountDict[itemTipsModel.curAttrData.itemId];
|
| | | mountSkillDict = itemTipsModel.GetMountSkillDict(itemTipsModel.curAttrData.itemId);
|
| | | modelShow.SetModelShow(horseConfig.Model, ModelShowType.mount, Language.Get("TreasureEffect103"), horseConfig.ShowFightPower);
|
| | | modelShow.SetModelShow(horseConfig.Model, ModelShowType.Mount, Language.Get("TreasureEffect103"), horseConfig.ShowFightPower);
|
| | | break;
|
| | | }
|
| | |
|