少年修仙传客户端代码仓库
Client_PangDeRong
2018-11-22 dfbc2f2baa781245104eff074f44806738bbcf06
4933 【前端】【1.3】获取途径跳转后保留必增勾选情况
3个文件已修改
59 ■■■■■ 已修改文件
System/Strengthening/EquipReinforceWin.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Strengthening/EquipWashModel.cs 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Strengthening/WashTips.cs 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Strengthening/EquipReinforceWin.cs
@@ -189,6 +189,7 @@
        private void OnClickEquipSuit()
        {
            equipWashModel.SetCurWashModel(0);
            if (StrengthenPnl.gameObject.activeSelf)
            {
                StrengthenPnl.gameObject.SetActive(false);
@@ -202,6 +203,7 @@
        private void OnClickWingsRefine()
        {
            equipWashModel.SetCurWashModel(0);
            if (StrengthenPnl.gameObject.activeSelf)
            {
                StrengthenPnl.gameObject.SetActive(false);
@@ -216,6 +218,7 @@
        private void OnClickInlayTitle()
        {
            equipWashModel.SetCurWashModel(0);
            if (StrengthenPnl.gameObject.activeSelf)
            {
                StrengthenPnl.gameObject.SetActive(false);
@@ -229,6 +232,7 @@
        private void OnClickStrengthTitle()
        {
            equipWashModel.SetCurWashModel(0);
            StrengthenPnl.gameObject.SetActive(true);
            _InlaidGemPanel.gameObject.SetActive(false);
            WashTip.gameObject.SetActive(false);
System/Strengthening/EquipWashModel.cs
@@ -160,6 +160,14 @@
        CheckIsMasterLv();
    }
    #region 设置当前洗练的数据
    public int curWashEquip { get; private set;}
    public void SetCurWashModel(int index)
    {
        curWashEquip = index;
    }
    #endregion
    #region 解析本地数据
    public int mustWashMatId { get; private set;}
    private void ParseFuncConfig()
System/Strengthening/WashTips.cs
@@ -54,8 +54,6 @@
    private ItemModel _itemModel; //洗练的装备
    private int[] _costMoneylist = null;
    private List<WashProCount> _washInfolist;
    private int curWashEquip = 0;
    EquipWashModel _equipWashModel;
    EquipWashModel equipWashModel
    {
@@ -116,16 +114,17 @@
    private void OnEnable()
    {    
        jumpToWashId = 0;
        guideEffect = null;
        //_equipWashCtrl.mScrollRect.verticalNormalizedPosition = 1;
        #region 初始化监听和数据
        curWashEquip = 0;
        isOpenPrompting = true;
        if(equipWashModel.curWashEquip == 0)
        {
        _attackWashPro.toggleIsOn = false;
        _lifeWashPro.toggleIsOn = false;
        _ignoreDefenceWashPro.toggleIsOn = false;
            isOpenPrompting = true;
            jumpToWashId = 0;
        }
        _equipWashCtrl.lockType = EnhanceLockType.KeepVertical;
        _cancelBtn.onClick.AddListener(OnClickCancelBtn);
        _upgradeBtn.onClick.AddListener(OnClickUpGradeBtn);
@@ -145,6 +144,10 @@
        _washMasterBtn.onClick.RemoveAllListeners();
        equipWashModel.RefreshWashModelEvent -= RefreshModel;
        playerPack.RefreshItemCountAct -= RefreshCostItem;
        if(!WindowJumpMgr.Instance.IsJumpState)
        {
            equipWashModel.SetCurWashModel(0);
        }
    }
    private void CheckJumpToModel()
@@ -152,11 +155,8 @@
        _attackWashPro.isShowPerfectEffect = false;
        _lifeWashPro.isShowPerfectEffect = false;
        _ignoreDefenceWashPro.isShowPerfectEffect = false;
        if (AchievementGoto.guideAchievementId != 0)
        {
            SuccessConfig successConfig = Config.Instance.Get<SuccessConfig>(AchievementGoto.guideAchievementId);
            if(successConfig.Type == 66)
        if (successConfig != null && successConfig.Type == 66)
            {
                bool isWash = false;
                for(int i = 0; i < _washInfolist.Count; i++)
@@ -172,8 +172,8 @@
                        {
                            jumpToWashId = washPro.EquipPlace;
                            isWash = true;
                            curWashEquip = i;
                            _equipWashCtrl.JumpIndex(curWashEquip);
                        equipWashModel.SetCurWashModel(i);
                        _equipWashCtrl.JumpIndex(equipWashModel.curWashEquip);
                            _equipWashCtrl.m_Scorller.RefreshActiveCellViews();
                            break;
                        }
@@ -191,22 +191,29 @@
                }
                AchievementGoto.guideAchievementId = 0;
            }
        else
        {
            if(equipWashModel.curWashEquip != 0)
            {
                _equipWashCtrl.JumpIndex(equipWashModel.curWashEquip);
                _equipWashCtrl.m_Scorller.RefreshActiveCellViews();
        }
        else
        {
            curWashEquip = equipWashModel.JumpToIndex;
            _equipWashCtrl.JumpIndex(curWashEquip);
                equipWashModel.SetCurWashModel(equipWashModel.JumpToIndex);
                _equipWashCtrl.JumpIndex(equipWashModel.curWashEquip);
            _equipWashCtrl.m_Scorller.RefreshActiveCellViews();
        }
        }
        OnClickWashCellToggle(_washInfolist[curWashEquip],curWashEquip);
        OnClickWashCellToggle(_washInfolist[equipWashModel.curWashEquip], equipWashModel.curWashEquip);
        StartCoroutine(SetOffestPos());
    }
    private IEnumerator SetOffestPos()
    {
        yield return null;
        if (curWashEquip != 0)
        if (equipWashModel.curWashEquip != 0)
        {
            _equipWashCtrl.JumpIndex(-offest, 0, EnhancedUI.EnhancedScroller.EnhancedScroller.TweenType.immediate);
        }
@@ -227,7 +234,7 @@
    public void RefreshModel()
    {
        CreateEquipWashCell();
        OnClickWashCellToggle(_washInfolist[curWashEquip], curWashEquip);
        OnClickWashCellToggle(_washInfolist[equipWashModel.curWashEquip], equipWashModel.curWashEquip);
    }
@@ -237,7 +244,7 @@
        if(equipWashCell != null)
        {
            WashProCount washPro = _washInfolist[cell.index];
            equipWashCell.SetDisplayModel(washPro, equipWashModel.washEquipRedPointlist[cell.index].id,cell.index,curWashEquip);
            equipWashCell.SetDisplayModel(washPro, equipWashModel.washEquipRedPointlist[cell.index].id,cell.index, equipWashModel.curWashEquip);
            equipWashCell.cellToggle.RemoveAllListeners();
            equipWashCell.cellToggle.AddListener(()=>
            {
@@ -249,7 +256,7 @@
    private void OnClickWashCellToggle(WashProCount washPro,int index)
    {
        if (curWashEquip != index)
        if (equipWashModel.curWashEquip != index)
        {
            _attackWashPro.isShowPerfectEffect = false;
            _lifeWashPro.isShowPerfectEffect = false;
@@ -313,7 +320,7 @@
        RefreshSpecWashUI();
        ChangeBtn();
        curWashEquip = index;
        equipWashModel.SetCurWashModel(index);
        equipWashModel.washBtnRedpoint.state = equipWashModel.washEquipRedPointlist[index].state;
        _equipWashCtrl.m_Scorller.RefreshActiveCellViews();
    }