| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | |
| | | public class ArenaWin : UIBase |
| | | { |
| | |
| | | [SerializeField] ButtonEx btnAward; |
| | | [SerializeField] ButtonEx btnChallage; |
| | | [SerializeField] RedpointBehaviour rpChallage; |
| | | [SerializeField] ButtonEx btnDeployTroops; |
| | | // [SerializeField] ButtonEx btnDeployTroops; |
| | | [SerializeField] List<ArenaPlayerTop3Cell> playerTop3Cells; |
| | | [SerializeField] ScrollerController scrollerController; |
| | | [SerializeField] ArenaPlayerRankCell myRankCell; |
| | | [SerializeField] ArenaChallengeVoucher voucher; |
| | | [SerializeField] Button funPresetBtn; |
| | | |
| | | [HideInInspector] public int groupValue1 = 0; //一般用于跨服 |
| | | [HideInInspector] public int groupValue2 = 0; //一般用于跨服 |
| | | [HideInInspector] public string valueFormat = "{0}"; |
| | |
| | | ArenaManager.Instance.SendArenaMatch(); |
| | | UIManager.Instance.OpenWindow<ArenaChallengeWin>(); |
| | | }); |
| | | btnDeployTroops.SetListener(() => |
| | | funPresetBtn.AddListener(()=> |
| | | { |
| | | HeroUIManager.Instance.selectTeamType = TeamManager.Instance.GetTeamID((int)BattlePreSetType.Arena); |
| | | UIManager.Instance.OpenWindow<HeroPosWin>(1); // 竞技场标签页 |
| | | FuncPresetManager.Instance.ClickBattlePreset((int)BattlePreSetType.Arena); |
| | | }); |
| | | } |
| | | |
| | |
| | | RankModel.Instance.ResetQueryParam(); |
| | | RankModel.Instance.QueryRankByPage(ArenaManager.Instance.rankType, watchID: (int)PlayerDatas.Instance.baseData.PlayerID); |
| | | rpChallage.redpointId = ArenaManager.Instance.GetRedPonitId(1); |
| | | |
| | | } |
| | | |
| | | protected override void NextFrameAfterOpen() |
| | |
| | | void DisplayDeployTroop() |
| | | { |
| | | bool isOpen = FuncOpen.Instance.IsFuncOpen(ArenaManager.Instance.DeployTroopsFuncId); |
| | | btnDeployTroops.SetActive(isOpen); |
| | | // btnDeployTroops.SetActive(isOpen); |
| | | } |
| | | |
| | | |
| | |
| | | DisplayMyRank(); |
| | | DisplayTop3(); |
| | | DisplayDeployTroop(); |
| | | |
| | | funPresetBtn.SetActive(FuncPresetManager.Instance.IsPreShow()); |
| | | } |
| | | |
| | | void CreateScroller() |