|
@@ -113,7 +113,7 @@ namespace GFGGame
|
|
|
protected override void AddEventListener()
|
|
|
{
|
|
|
base.AddEventListener();
|
|
|
- EventAgent.AddEventListener(ConstMessage.CARD_CHOOSE, OnClickBtnPhotograph);
|
|
|
+ EventAgent.AddEventListener(ConstMessage.CARD_CHOOSE, StartCalculateScore);
|
|
|
EventAgent.AddEventListener(ConstMessage.DRESS_FILTER, UpdatePartsListSort);
|
|
|
EventAgent.AddEventListener(ConstMessage.DRESS_SEARCH, UpdatePartsListSort);
|
|
|
EventAgent.AddEventListener(ConstMessage.DRESS_UP_SCORE_CHANGED, UpdateScore);
|
|
@@ -212,7 +212,7 @@ namespace GFGGame
|
|
|
protected override void RemoveEventListener()
|
|
|
{
|
|
|
base.RemoveEventListener();
|
|
|
- EventAgent.RemoveEventListener(ConstMessage.CARD_CHOOSE, OnClickBtnPhotograph);
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.CARD_CHOOSE, StartCalculateScore);
|
|
|
EventAgent.RemoveEventListener(ConstMessage.DRESS_FILTER, UpdatePartsListSort);
|
|
|
EventAgent.RemoveEventListener(ConstMessage.DRESS_SEARCH, UpdatePartsListSort);
|
|
|
EventAgent.RemoveEventListener(ConstMessage.DRESS_UP_SCORE_CHANGED, UpdateScore);
|
|
@@ -411,15 +411,7 @@ namespace GFGGame
|
|
|
AlertUI.Show("未穿戴必需品。").SetRightButton(true, "好的");
|
|
|
return;
|
|
|
}
|
|
|
- // if (CardDataManager.GetCardListByRarity(0).Count > 0)
|
|
|
- // {
|
|
|
-
|
|
|
- // ViewManager.Show<StoryCardChoose>(_fightCfg.scoreType);
|
|
|
- // }
|
|
|
- // else
|
|
|
- // {
|
|
|
- // // StartCalculateScore();
|
|
|
- // }
|
|
|
+
|
|
|
OnClickBtnPhotograph();
|
|
|
}
|
|
|
|
|
@@ -932,36 +924,7 @@ namespace GFGGame
|
|
|
EquipDataCache.cacher.autoPlay = _ui.m_btnAutoPlay.selected;
|
|
|
}
|
|
|
|
|
|
- // private void OnClickBtnShow()
|
|
|
- // {
|
|
|
- // Timers.inst.Remove(SetBtnShowVisable);
|
|
|
- // _ui.m_c1.selectedIndex = 0;
|
|
|
- // _ui.m_btnHide.visible = true;
|
|
|
- // _ui.m_loaShow.visible = false;
|
|
|
- // _ui.m_btnShow.visible = false;
|
|
|
- // }
|
|
|
- // private void OnClickBtnHide()
|
|
|
- // {
|
|
|
- // _ui.m_c1.selectedIndex = 1;
|
|
|
- // _ui.m_btnHide.visible = false;
|
|
|
- // _ui.m_btnShow.visible = true;
|
|
|
- // _ui.m_loaShow.visible = true;
|
|
|
- // Timers.inst.Add(2f, 1, SetBtnShowVisable);
|
|
|
- // }
|
|
|
- // private void OnClickLoaShow()
|
|
|
- // {
|
|
|
- // Timers.inst.Remove(SetBtnShowVisable);
|
|
|
- // _ui.m_btnShow.alpha = 1;
|
|
|
- // Timers.inst.Add(2f, 1, SetBtnShowVisable);
|
|
|
- // _ui.m_btnShow.enabled = true;
|
|
|
-
|
|
|
- // }
|
|
|
-
|
|
|
- // private void SetBtnShowVisable(object param)
|
|
|
- // {
|
|
|
- // _ui.m_btnShow.enabled = false;
|
|
|
- // GTween.To(1, 0, 0.3f).SetTarget(_ui.m_btnShow, TweenPropType.Alpha);
|
|
|
- // }
|
|
|
+
|
|
|
private void OnClickComNeed()
|
|
|
{
|
|
|
if (_fightCfg.needItemId <= 0 && _fightCfg.needSuitId <= 0)
|