| | |
| | | findBtn.AddListener(() => OnFindBtnClick()); |
| | | createGuildBtn.AddListener(OnCreateGuildBtnClick); |
| | | quicklyJoinGuildBtn.AddListener(OnQuicklyJoinGuildBtnClick); |
| | | serversBtn.AddListener(()=> |
| | | serversBtn.AddListener(() => |
| | | { |
| | | UIHelper.ShowServersPanel(GuildManager.Instance.crossServerIDList); |
| | | }); |
| | |
| | | GuildManager.Instance.MyRequestJoinEvent += MyRequestJoinEvent; |
| | | PlayerDatas.Instance.fairyData.OnRefreshFairyInfo += OnRefreshFairyInfo; |
| | | guildListScroller.OnRefreshCell += RefreshCell; |
| | | GuildManager.Instance.OnUpdateViewFamilyInfo += OnUpdateViewFamilyInfo; |
| | | Display(); |
| | | } |
| | | |
| | |
| | | GuildManager.Instance.MyRequestJoinEvent -= MyRequestJoinEvent; |
| | | guildListScroller.OnRefreshCell -= RefreshCell; |
| | | PlayerDatas.Instance.fairyData.OnRefreshFairyInfo -= OnRefreshFairyInfo; |
| | | GuildManager.Instance.OnUpdateViewFamilyInfo -= OnUpdateViewFamilyInfo; |
| | | |
| | | UIManager.Instance.GetUI<MainWin>()?.RestoreFuncBtn(); |
| | | |
| | |
| | | guildListScroller.m_Scorller.RefreshActiveCellViews(); |
| | | } |
| | | |
| | | |
| | | |
| | | //列表变小的话 重新创建;列表变大的话,只添加 |
| | | void CreateScroller() |
| | | { |
| | |
| | | _cell.Display(cell.index); |
| | | } |
| | | |
| | | void OnUpdateViewFamilyInfo(int familyID) |
| | | { |
| | | UIManager.Instance.OpenWindowAsync<GuildPreviewWin>(familyID).Forget(); |
| | | } |
| | | |
| | | private void OnFindBtnClick() |
| | | { |
| | | var nowQuery = findText.text; |