少年修仙传客户端代码仓库
client_Zxw
2018-09-25 513652ab5e0c60f9352cc208b7a35cabc627818c
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
3个文件已修改
44 ■■■■■ 已修改文件
System/Store/PetAndMountPushWin.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Store/StoreModel.cs 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Store/StoreWin.cs 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Store/PetAndMountPushWin.cs
@@ -83,6 +83,7 @@
        private void ClickGoTo()
        {
            CloseImmediately();
            storeModel.SetJumpModel(StoreFunc.BindStore, storeModel.currentPushId);
            WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.StoreFunc4);
        }
        private void ClickCloseBtn()
System/Store/StoreModel.cs
@@ -58,6 +58,7 @@
    {
        IsMustBuyDay = false;
        isLogin = true;
        ClearJumpModel();
        StageManager.Instance.onStageLoadFinish -= OnStageLoadFinish;
        FuncOpen.Instance.OnFuncStateChangeEvent -= FuncStateChange;
        WindowCenter.Instance.windowAfterCloseEvent -= windowAfterOpen;
@@ -1242,6 +1243,24 @@
    }
    #endregion
    #region 处理跳转数据
    public int funcOrder { get; private set; }
    public int jumpShopId { get; private set; }
    public void SetJumpModel(StoreFunc storeFunc,int shopId)
    {
        if (shopId == 0) return;
        funcOrder = (int)storeFunc - 1;
        jumpShopId = shopId;
    }
    public void ClearJumpModel()
    {
        funcOrder = -1;
        jumpShopId = 0;
    }
    #endregion
}
public enum StoreFunc
System/Store/StoreWin.cs
@@ -130,6 +130,11 @@
                    functionOrder = _integralStoreTitle.order;
                }
            }
            if(!WindowJumpMgr.Instance.IsJumpState && m_storeModel.funcOrder != -1)
            {
                functionOrder = m_storeModel.funcOrder;
            }
            _funcBtnGroup.TriggerByOrder(functionOrder);
            GlobalTimeEvent.Instance.secondEvent += RefreshResetTime;
        }
@@ -182,8 +187,25 @@
                    AchievementGoto.guideAchievementId = 0;
                }
            }
            else
            {
                if(m_storeModel.jumpShopId != 0)
                {
                    _tagStoreModellist = StoreConfig.GetTypeStoreModel((int)m_storeModel.storeFuncType);
                    for (int i = 0; i < _tagStoreModellist.Count; i++)
                    {
                        if (_tagStoreModellist[i].ID == m_storeModel.jumpShopId)
                        {
                            int index = i / 2 ;
                            _shopCtrl.JumpIndex(index > 2 ? index - 1 : index);
                            _shopCtrl.m_Scorller.RefreshActiveCellViews();
                            break;
                        }
                    }
                    m_storeModel.ClearJumpModel();
                }
            }
        }
        private void RefreshResetTime()
        {