| | |
| | | using System.Collections; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | using Cysharp.Threading.Tasks; |
| | | |
| | | /// <summary> |
| | | /// 加入公会界面 :公会查找列表,也是排行榜 |
| | |
| | | [SerializeField] Button quicklyJoinGuildBtn; |
| | | [SerializeField] ScrollerController guildListScroller; |
| | | [SerializeField] Transform noGuildTf; |
| | | [SerializeField] Button serversBtn; |
| | | |
| | | string lastQuery = ""; |
| | | int lastPage = 0; |
| | |
| | | findBtn.AddListener(() => OnFindBtnClick()); |
| | | createGuildBtn.AddListener(OnCreateGuildBtnClick); |
| | | quicklyJoinGuildBtn.AddListener(OnQuicklyJoinGuildBtnClick); |
| | | serversBtn.AddListener(()=> |
| | | { |
| | | UIHelper.ShowServersPanel(GuildManager.Instance.crossServerIDList); |
| | | }); |
| | | } |
| | | protected override void OnPreOpen() |
| | | { |
| | |
| | | |
| | | void Display() |
| | | { |
| | | serversBtn.SetActive(GuildManager.Instance.zoneID != 0); |
| | | CreateScroller(); |
| | | } |
| | | |
| | |
| | | |
| | | private void OnCreateGuildBtnClick() |
| | | { |
| | | UIManager.Instance.OpenWindow<GuildCreateWin>(); |
| | | UIManager.Instance.OpenWindowAsync<GuildCreateWin>().Forget(); |
| | | } |
| | | |
| | | private void OnQuicklyJoinGuildBtnClick() |