| | |
| | | [SerializeField] Button closeBtn;
|
| | | [SerializeField] RichText m_Goto;
|
| | | [SerializeField] Text fightPower;
|
| | | [SerializeField] Text qualityText;
|
| | | [SerializeField] Image desImg;
|
| | |
|
| | | StoreModel storeModel { get { return ModelCenter.Instance.GetModel<StoreModel>(); } }
|
| | | ItemTipsModel tipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
|
| | |
| | | rawImag.gameObject.SetActive(true);
|
| | | if(itemConfig != null)
|
| | | {
|
| | | titleText.text = itemConfig.ItemName;
|
| | | titleText.color = UIHelper.GetUIColor(itemConfig.ItemColor,true);
|
| | | switch (itemConfig.Type)
|
| | | {
|
| | | case 26:
|
| | | titleText.text = Language.Get("StorePetPush");
|
| | | PetInfoConfig petInfo = tipsModel.unlockPetDict[storeConfig.ItemID];
|
| | | var config = Config.Instance.Get<NPCConfig>(petInfo.ID);
|
| | | fightPower.text = petInfo.ShowFightPower.ToString();
|
| | | qualityText.text = tipsModel.GetQualityName(petInfo.Quality);
|
| | | desImg.SetSprite(petInfo.DescribeIconKey);
|
| | | desImg.SetNativeSize();
|
| | | UI3DModelExhibition.Instance.ShowNPC(petInfo.ID, config.UIModeLOffset, config.UIModelRotation,rawImag);
|
| | | break;
|
| | | case 41:
|
| | | titleText.text = Language.Get("StoreMountPush");
|
| | | HorseConfig horseConfig = tipsModel.unlockMountDict[storeConfig.ItemID];
|
| | | fightPower.text = horseConfig.ShowFightPower.ToString();
|
| | | qualityText.text = tipsModel.GetQualityName(horseConfig.Quality);
|
| | | desImg.SetSprite(horseConfig.DescribeIconKey);
|
| | | desImg.SetNativeSize();
|
| | | UI3DModelExhibition.Instance.ShowHourse(horseConfig.Model,rawImag);
|
| | | break;
|
| | | }
|