浏览代码

VIP等级礼包最低级界面去掉向左滑动箭头,最高级去掉向右滑动箭头

zhaoyang 2 年之前
父节点
当前提交
d15a097944
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      GameClient/Assets/Game/HotUpdate/Views/Store/StoreChargeAddUpView.cs

+ 4 - 0
GameClient/Assets/Game/HotUpdate/Views/Store/StoreChargeAddUpView.cs

@@ -80,6 +80,8 @@ namespace GFGGame
             _curSelectIndex = Math.Max(0, RoleDataManager.vipLv - 1);
             _ui.m_list.selectedIndex = _curSelectIndex;
             _ui.m_list.ScrollToView(_curSelectIndex);
+            _ui.m_btnLeft.visible = _curSelectIndex == 0 ? false : true;
+            _ui.m_btnRight.visible = _curSelectIndex < _ui.m_list.numItems - 1 ? true : false;
             ShopViewManager.Instance.UpdateVipProgressCom(_ui.m_comVipLv.target);
             UpdateRedDot();
         }
@@ -245,6 +247,8 @@ namespace GFGGame
         {
             _curSelectIndex = _ui.m_list.GetFirstChildInView();
             _ui.m_list.selectedIndex = _curSelectIndex;
+            _ui.m_btnLeft.visible = _curSelectIndex == 0 ? false : true;
+            _ui.m_btnRight.visible = _curSelectIndex < _ui.m_list.numItems - 1 ? true : false;
         }
 
         private void UpdateRedDot()