| | |
| | | [SerializeField] GameObject bottomPartObj;
|
| | | [SerializeField] Text resourceText;
|
| | |
|
| | | [Header("获取途径")]
|
| | | [SerializeField] GameObject getWaysObj;
|
| | | [SerializeField] ScrollerController _waysCtrl;
|
| | | [SerializeField] Transform waysLineCell;
|
| | | [SerializeField] TipGetWayEntranceWidget m_GetWayEntranceWidget; |
| | | [SerializeField] TipGetWaysWidget m_GetWaysWidget;
|
| | |
|
| | | ItemTipUtility.GetWay getWay;
|
| | |
|
| | | FashionDress fashionDress = null;
|
| | | ItemConfig itemConfig = null;
|
| | |
| | | DebugEx.Log("物品ID:" + itemId);
|
| | | alpha.alpha = 0;
|
| | | itemConfig = ItemConfig.Get(itemId);
|
| | | getWay = new ItemTipUtility.GetWay();
|
| | | if (itemConfig != null && itemConfig.GetWay != null)
|
| | | {
|
| | | getWay.ways = new List<int>(itemConfig.GetWay);
|
| | | }
|
| | | SetTopUI();
|
| | | SetMidUI();
|
| | | SetBotttomUI();
|
| | | bool isShowGetWays = itemConfig != null && itemConfig.GetWay != null && itemConfig.GetWay.Length > 0 ? true : false;
|
| | | getWaysObj.SetActive(isShowGetWays);
|
| | | if (isShowGetWays)
|
| | | {
|
| | | }
|
| | | DisplayGetWays();
|
| | | }
|
| | |
|
| | | #region 时装详情
|
| | |
| | | resourceText.text = itemConfig.Description;
|
| | | }
|
| | |
|
| | | private void DisplayGetWays() |
| | | { |
| | | var hasGetWay = !getWay.ways.IsNullOrEmpty(); |
| | | m_GetWayEntranceWidget.gameObject.SetActive(hasGetWay); |
| | | m_GetWaysWidget.gameObject.SetActive(false); |
| | | if (hasGetWay) |
| | | { |
| | | m_GetWayEntranceWidget.SetListener(() => |
| | | { |
| | | if (!m_GetWaysWidget.gameObject.activeSelf) |
| | | { |
| | | m_GetWaysWidget.Display(getWay); |
| | | m_GetWaysWidget.Bind("FashionDetailsWin"); |
| | | } |
| | | else |
| | | { |
| | | m_GetWaysWidget.Hide(); |
| | | } |
| | | }); |
| | | } |
| | | }
|
| | |
|
| | | IEnumerator DelayShow()
|
| | | {
|
| | | yield return null;
|
| | |
| | | yield return null;
|
| | | alpha.alpha = 1;
|
| | | }
|
| | | #endregion
|
| | |
|
| | | #region getWaysTips逻辑
|
| | | private List<GetItemWaysConfig> getWayslist;
|
| | |
|
| | | #endregion
|
| | | }
|
| | | }
|