| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Linq;
|
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | |
|
| | |
| | | itemIcon.SetOrgSprite(config.IconKey);
|
| | | ItemConfig itemConfig = ItemConfig.Get(itemId);
|
| | | bgIcon.SetItemBackGround(ItemLogicUtility.Instance.GetItemQuality(itemId, useDataDic));
|
| | | if (packModel.textCountShow.ContainsKey(itemId))
|
| | | {
|
| | | countText.SetActive(true);
|
| | | countText.text = count > 0 ? packModel.textCountShow[itemId] + "x" + count : packModel.textCountShow[itemId];
|
| | | }
|
| | | else if (packModel.gameCashShow.Contains(itemId))
|
| | | if (packModel.gameCashShow.Contains(itemId))
|
| | | {
|
| | | //代金券
|
| | | countText.SetActive(true);
|
| | | countText.text = count > 1000000 ? UIHelper.ReplaceLargeNum(count / 100.0f) : (count / 100.0f).ToString("0.#");
|
| | | }
|
| | | else if (Array.IndexOf(packModel.textCountShow2, itemId) != -1)
|
| | | {
|
| | | countText.SetActive(true);
|
| | | countText.text = UIHelper.ReplaceLargeNum(count * (ulong)config.EffectValueA1);
|
| | | }
|
| | | else
|
| | | {
|