10271 优化IsFuncOpen()函数,仙盟徽章功能未开启时显示提示
| | |
| | | emblemCell.InitUI(EmblemHelper.GetMyEmblemModel()); |
| | | emblemCell.button.SetListener(() =>
|
| | | {
|
| | | if (!FuncOpen.Instance.IsFuncOpen(fairyEmblemModel.FuncId))
|
| | | if (!FuncOpen.Instance.IsFuncOpen(fairyEmblemModel.FuncId, true))
|
| | | return;
|
| | | if (!WindowCenter.Instance.IsOpen<FairyEmblemWin>())
|
| | | {
|
| | |
| | | return true;
|
| | | }
|
| | |
|
| | | public bool IsFuncOpen(int key)
|
| | | public bool IsFuncOpen(int key, bool tip = false)
|
| | | {
|
| | | if (tip)
|
| | | ProcessorFuncErrorTip(key);
|
| | |
|
| | | if (funcOpenState.ContainsKey(key))
|
| | | {
|
| | | return funcOpenState[key];
|
| | | }
|
| | |
|
| | | return false;
|
| | | }
|
| | |
|