|
@@ -154,7 +154,7 @@ namespace GFGGame
|
|
|
_ui.m_btnLeft.grayed = true;
|
|
|
_ui.m_btnLeft.touchable = false;
|
|
|
}
|
|
|
- else if (nowIndex >= cardList.Count)
|
|
|
+ else if (nowIndex >= cardList.Count - 1)
|
|
|
{
|
|
|
_ui.m_btnRight.grayed = true;
|
|
|
_ui.m_btnRight.touchable = false;
|
|
@@ -198,6 +198,7 @@ namespace GFGGame
|
|
|
this.UpdateUpStarView();
|
|
|
this.UpdateUpSkillView();
|
|
|
this.UpdateRedDot();
|
|
|
+ this.RefLeftAndRight();
|
|
|
_comFosterBottom.m_ctrlTab.selectedIndex = this._selectTab;
|
|
|
_comFosterBottom.m_listSkill.selectedIndex = 0;
|
|
|
_comFosterBottom.m_btnClearAll.visible = false;
|
|
@@ -225,8 +226,6 @@ namespace GFGGame
|
|
|
nowIndex = _cardData.index;
|
|
|
_comFosterBottom = _ui.m_ComFosterBottom;
|
|
|
|
|
|
- RefCardFosterInfo();
|
|
|
-
|
|
|
cardList = CardDataManager.GetCardListByRarity(0);
|
|
|
if (CardDataManager.isFilter == true)
|
|
|
{
|
|
@@ -234,6 +233,8 @@ namespace GFGGame
|
|
|
cardList = CardDataManager.FilterCardList(cardList);
|
|
|
}
|
|
|
cardList = CardDataManager.SortItemList(cardList);
|
|
|
+
|
|
|
+ RefCardFosterInfo();
|
|
|
}
|
|
|
protected override void AddEventListener()
|
|
|
{
|
|
@@ -1012,13 +1013,17 @@ namespace GFGGame
|
|
|
float diffValueX = touchBeginX - inputEvent.x;
|
|
|
if (diffValueX > 20 && showCard == false)
|
|
|
{
|
|
|
- if (nowIndex < cardList.Count)
|
|
|
+ if (nowIndex < cardList.Count - 1) {
|
|
|
OnClickBtnRight();
|
|
|
+ RefLeftAndRight();
|
|
|
+ }
|
|
|
}
|
|
|
else if (diffValueX < - 20 && showCard == false)
|
|
|
{
|
|
|
- if (nowIndex > 0)
|
|
|
- OnClickBtnLeft();
|
|
|
+ if (nowIndex > 0) {
|
|
|
+ OnClickBtnLeft();
|
|
|
+ RefLeftAndRight();
|
|
|
+ }
|
|
|
}
|
|
|
else if (diffValueX <= 20 && diffValueX >= - 20)
|
|
|
OnClickComCard();
|
|
@@ -1030,13 +1035,17 @@ namespace GFGGame
|
|
|
float diffValueX = touchBeginX - inputEvent.x;
|
|
|
if (diffValueX > 20 && showCard == false)
|
|
|
{
|
|
|
- if (nowIndex < cardList.Count)
|
|
|
+ if (nowIndex < cardList.Count - 1) {
|
|
|
OnClickBtnRight();
|
|
|
+ RefLeftAndRight();
|
|
|
+ }
|
|
|
}
|
|
|
else if (diffValueX < - 20 && showCard == false)
|
|
|
{
|
|
|
- if (nowIndex > 0)
|
|
|
+ if (nowIndex > 0) {
|
|
|
OnClickBtnLeft();
|
|
|
+ RefLeftAndRight();
|
|
|
+ }
|
|
|
}
|
|
|
else if(diffValueX <= 20 && diffValueX >= - 20)
|
|
|
OnClickLoaCard();
|