|
@@ -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()
|