Пример #1
0
        public void OnPlayerCheckClick(ArenaChallengerController param)
        {
            if (!canBtnClick)
            {
                return;
            }
            Hashtable mainData = Johny.HashtablePool.Claim();

            mainData.Add("name", param.Challenger.name);
            string icon = Hotfix_LT.Data.CharacterTemplateManager.Instance.GetHeroInfo(param.Challenger.charId, param.Challenger.skin).icon;

            mainData.Add("icon", icon);
            mainData.Add("level", param.Challenger.level);
            mainData.Add("headFrame", EconemyTemplateManager.Instance.GetHeadFrame(param.Challenger.frame).iconId);
            string allianceName = EB.Localizer.GetString("ID_codefont_in_ArenaHudUI_9210");

            if (!string.IsNullOrEmpty(param.Challenger.allianceName))
            {
                allianceName = param.Challenger.allianceName;
            }
            mainData.Add("allianceName", allianceName);

            Hashtable data = Johny.HashtablePool.Claim();

            data.Add(SmallPartnerPacketRule.REQUEST_OTHER_PLAYER_DATA_PARAM3_TYPE0, param.Challenger.rank);
            Hashtable viewData = Johny.HashtablePool.Claim();

            viewData["mainData"] = mainData;
            viewData[SmallPartnerPacketRule.REQUEST_OTHER_PLAYER_DATA_PARAM0] = param.Challenger.uid;
            viewData[SmallPartnerPacketRule.REQUEST_OTHER_PLAYER_DATA_PARAM1] = SmallPartnerPacketRule.REQUEST_OTHER_PLAYER_DATA_PARAM1_TYPE0;
            viewData[SmallPartnerPacketRule.REQUEST_OTHER_PLAYER_DATA_PARAM2] = SmallPartnerPacketRule.REQUEST_OTHER_PLAYER_DATA_PARAM2_TYPE0;
            viewData[SmallPartnerPacketRule.REQUEST_OTHER_PLAYER_DATA_PARAM3] = data;
            GlobalMenuManager.Instance.Open("LTCheckPlayerFormationInfoUI", viewData);
        }
Пример #2
0
        public void OnFastButtonClick(ArenaChallengerController param)
        {
            FusionAudio.PostEvent("UI/Battle/StartBattle");
            if (!canBtnClick || HasBtnClick)
            {
                return;
            }
            HasBtnClick = true;
            int residueNum = VIPTemplateManager.Instance.GetTotalNum(VIPPrivilegeKey.ArenaTimes) + ArenaManager.Instance.Info.buyTimes - ArenaManager.Instance.Info.usedTimes;

            if (residueNum <= 0)
            {
                OnBuyTimesButtonClick();
                return;
            }

            if (AllianceUtil.GetIsInTransferDart("ID_ARENA"))
            {
                return;
            }
            ArenaManager.Instance.fastChallenge(param.Challenger.uid, param.Challenger.rank, true);
        }